Shadowing Practice: Explain IEnumerable in C# ( C# Interview Questions) - Learn English Speaking with Video

Creando lección...
1
Welcome to Questpods YouTube channel and what are we learning today.
2
Today we will be discussing a very very very very simple C sharp interview question.
3
What is I Enumerable?
4
Why do we need I Enumerable?
5
What is the importance of it and so on.
6
Now this question is a very simple question
7
but it is very surprising that many developers either don't know the answer
8
or many of them who answer the question they just answer 50% part of it
9
and remember that questions around collections or simple questions fundamental questions like array list and iEnumerable and iQueryable,
10
iEnumerator, yield keyword these are some of the questions that
11
if you are not able to answer it sends a very wrong signal in the interview.
12
Let us try to answer this question
13
when this question comes up many developers would write away answers saying
14
that the goal of IEnumerable is to enable iterations or in other words to enable this fantastic foreach loop over a collection.
15
If you have an array list or if you have a list
16
and if you want to do a foreach loop over it then IEnumerable is needed or IEnumerable helps you to do that.
17
Now this answer is 50% right and if you are lucky and the interviewer does not cross question you you are good.
18
But let us say the interviewer cross questions you let us say
19
that if it is a bad day and the interviewer cross questions
20
and says
21
that well without the knowledge of IEnumerable you can see the
22
screen you can see the code on the screen without the
23
knowledge of IEnumerable we are still able to iterate over an ArrayList
24
or a List or a collection or a dictionary or anything.
25
When we are able to do
26
that why do we have to explicitly know about IANU variable
27
because you can always do a for each loop over ArrayList or a List you don't have to specifically do something.
28
Now you are stuck with this googly and
29
that is why always say a little bit of advertisement that is why always say that please go prepared for interviews.
30
Remember when you say that you want to crack an interview one is that you should know the technology.
31
For example let us say you want to go
32
and crack C sharp so you should know C sharp step by step you should do a project,
33
you should do MVC project but at the same time you should also do interview questions.
34
You should go through the basic concepts.
35
On questpond.com we have both the things you can learn step
36
by step as well as you can go through the interview questions.
37
You can learn MSB as step by step and you can have the interview question.
38
You can learn Angular step by step and then you will have somewhere an Angular interview question.
39
In same way you can learn ASP.NET MVC at the same time you will have interview questions.
40
We have this step by step and interview question both of them together and please this week also I am having
41
the weekend training on architecture so please attend my architecture training.
42
It's going on for I think now this would be the 10th
43
or the 11th session all the recordings are uploaded please go ahead
44
and join this training as well as exciting offline on Saturday
45
and Sunday in Mumbai we are having the learn angular training
46
so in case if you are interested you can join the same as well.
47
Let us go back to the topic that's why I always say go prepared
48
when you get such kind of cross questions it is something it's not
49
that you don't know the answer it is just that you have to be prepared.
50
The complete answer must be the complete answer is IEnumerable helps
51
to iterate without knowing the actual type of collection you have at the back.
52
It acts like an abstraction.
53
Let us try to understand it with an example remember that
54
when you say you are preparing for interviews it does not mean
55
that you have to mug up you have to understand the concept you have to know how to answer those cross questions.
56
We can see that here we have this simple get function out here
57
and this get function depending on situation
58
if it is Monday it is giving out an array list if it is not Monday it is giving out a list.
59
This get function is giving out different type of collections.
60
Now let us say you want to go and iterate over it.
61
If you want to do a for each over it then what you do you expose out an i enumerable.
62
You say just expose out an i enumerable that is it
63
and now you can go and you can do a for each loop over the get function easily.
64
So you can say for each over the get.
65
So you can see now this for each loop out here does not know
66
that he will get an array list or he will get a list.
67
That is what the use of IEnumerable is it is an abstraction.
68
Also this IEnumerable becomes very useful for example
69
if you want to pass a generic collection let us say if you have a method here called a sort.
70
In this sort you want to pass a collection but you want it to be generic.
71
This sort function actually can take any kind of collection it It can be a list,
72
it can be a dictionary and he can do the sort.
73
What you can do is you can again pass just IEnumerable.
74
And then the sort can go and sort take this IEnumerable collection
75
and he can say if it is a list then he will sort in a different way
76
if it is a dictionary it will sort in a different way and so on.
77
Now the client can call the sort function and he can pass in an ArrayList.
78
No problem in this.
79
can also go and pass in probably a list,
80
he can pass in a dictionary.
81
The sort function says that you just pass me IEnumerable.
82
I don't want to get into details of the data types
83
that it is a dictionary or it is a generic list or it is a list,
84
it is an array list.
85
I will just sort it out.
86
Must be the complete answer when this question comes up in C sharp interviews is
87
that that IEnumerable acts like an abstraction it acts like an abstraction
88
and it hides that what kind of collection exists at the back.
89
Must be the complete answer is IEnumerable helps to iterate without knowing the actual type of collection at the back
90
it acts like an abstraction.
91
Now
92
when this question comes up IEnumerable there are 80 to 90
93
percent chance the interviewer can ask you a question saying that what is the difference between iEnumerable and iEnumerator.
94
What is the difference between iEnumerable,
95
iQueryable, iEnumerator, yield keyword and so on.
96
Must be you can go prepared for these kind of situations.
97
Remember that a prepared developer has more chance of getting a job than an unprepared superhero.
98
You can be a super hero in your project but
99
when you get such kind of cross questions be prepared you are asking for a big salary so why not go prepared.
100
Please go to my website questpond.com and we have lots of these courses
101
which are specifically meant so that you clear interviews so that you get good knowledge.
102
Before I end this video I want to ask a simple question out here
103
and if you know the answer of this question below in the youtube comments please go ahead
104
and put the answer which design pattern which design pattern does I enumerable or I enumerator implement.
105
So which design pattern from Gango 4 does I enumerable and I enumerator implement.
106
That brings us to the end of this session please hit the like subscribe
107
and the bell icon so that
108
when such videos are uploaded you are informed right away who knows you know
109
that one of these questions you know can be a deciding factor in interviews so happy learning happy job hunting

Vocabulario y notas de pronunciación para esta lección

Este vídeo tiene 109 frases y 1388 palabras para practicar shadowing. La parte hablada dura 8:19. El hablante habla a un ritmo natural de unas 167 palabras por minuto, cercano a una conversación cotidiana. El 86 % de las palabras está entre las 3.000 más comunes del inglés; conviene repasar el resto antes de empezar.

Vocabulario clave de este vídeo

15 palabras menos comunes del vídeo, con su pronunciación y significado:

  • loop /luːp/ (sustantivo) — lazo, lazada. A length of thread, line or rope that is doubled over to make an opening.
  • array /əˈɹeɪ/ (sustantivo) — atavío, galas. Clothing and ornamentation; raiment.
  • dictionary /ˈdɪk.ʃəˌnɛ.ɹi/ (sustantivo) — diccionario, tumbaburros. A reference work listing words or names from one or more languages, usually ordered alphabetically, explaining each word's meanings or senses, oftentimes also…
  • sharp /ʃɑɹp/ (adjetivo) — agudo, afilado. Terminating in a point or edge, especially one that can cut or pierce easily; not dull, obtuse, or rounded.
  • interviewer /ˈɪntɚvjuɚ/ (sustantivo) — entrevistador, entrevistadora. One who interviews.
  • developer /dɪˈvɛləpɚ/ (sustantivo) — desarrollador. A person or entity engaged in the creation or improvement of certain classes of products.
  • generic /dʒɪˈnɛɹ.ɪk/ (adjetivo) — genérico. Very broad; pertaining or appropriate to large classes or groups as opposed to specific instances.
  • angular /ˈæŋ.ɡjə.lɚ/ (adjetivo) — angular, anguloso. Relating or pertaining to an angle, or angles.
  • architecture /ˈɑː.kɪˌtɛk.t͡ʃə/ (sustantivo) — arquitectura. The art and science of designing and managing the construction of buildings and other structures, particularly if they are well proportioned and decorated.
  • crack /kɹæk/ (sustantivo) — grieta. A thin and usually jagged space opened in a previously solid material.
  • enable /ɪˈneɪ.bəl/ (verbo) — habilitar, posibilitar. To make somebody able (to do, or to be, something); to give sufficient ability or power to do or to be; to give strength or ability to.
  • implement /ˈɪmpləmənt/ (verbo) — implementar. To bring about; to put into practice; to carry out.
  • yield /jiːld/ (verbo) — producir, dar. To give as a result or outcome; to produce or render.
  • upload /ˈʌpˌloʊd/ (verbo) — subir, cargar. To transfer data to a computer on a network, especially to a server on the Internet.
  • expose /ɪkˈspoʊz/ (verbo) — exponer, develar. To reveal; to uncover; to make visible; to bring to light.

Phrasal verbs que vas a escuchar

  • come up (verbo) — salir a relucir. To emerge or become known, especially unexpectedly.
  • go ahead /ˌɡoʊ əˈhɛd/ (verbo) — venga, adelante. To proceed with; to begin.
  • go through (verbo) — atravesar. To travel from one end of something to the other.
  • ask for (verbo) — pedir. To request; to order.
  • get into (verbo) — entrar en, entrar a. To move into (an object), such that one ends up inside it.

Pronunciación a tener en cuenta

El hablante usa 4 contracciones y formas reducidas, como don't. Dilas en su forma corta, tal como las oyes.

  • Los sonidos de “sh” y “zh”: dictionary /ˈdɪk.ʃəˌnɛ.ɹi/, sharp /ʃɑɹp/, collections /kəˈlɛkʃənz/, abstraction /æbˈstɹæk.ʃn̩/, iteration /ˌɪt.əˈɹeɪ.ʃən/
  • Palabras largas — cuida el acento: dictionary /ˈdɪk.ʃəˌnɛ.ɹi/, developer /dɪˈvɛləpɚ/, architecture /ˈɑː.kɪˌtɛk.t͡ʃə/, fundamental /ˌfʌn.dəˈmɛn.təl/, superhero /ˈs(j)upɚhɪɹoʊ/

Cómo practicar con este vídeo

  1. Escucha el vídeo entero una vez sin hablar y anota las palabras que no conoces.
  2. Empieza a velocidad 0,75×, haz shadowing frase por frase y vuelve a la velocidad normal cuando te resulte fácil.
  3. Grábate y compara con el original, prestando atención a palabras como loop, array, dictionary.

Gramática en este vídeo

Las estructuras que más usa el hablante, con las palabras exactas del vídeo:

EstructuraEn el vídeo
Oraciones condicionales if + oración, will/would + verbo — una condición y su resultadoif it is a dictionary it will sort
Voz pasiva be + participio pasado — importa lo que ocurre, no quién lo haceis needed · are stuck · are uploaded

¿Qué es la Técnica de Shadowing?

Shadowing es una técnica de aprendizaje de idiomas respaldada por la ciencia, desarrollada originalmente para la formación de intérpretes profesionales y popularizada por el políglota Dr. Alexander Arguelles. El método es simple pero poderoso: escuchas audio en inglés nativo y lo repites en voz alta de inmediato, como una sombra que sigue al hablante con solo 1-2 segundos de retraso. A diferencia de la escucha pasiva o los ejercicios de gramática, el shadowing obliga a tu cerebro y músculos de la boca a procesar y reproducir simultáneamente patrones de habla reales. Las investigaciones muestran que mejora significativamente la precisión de la pronunciación, la entonación, el ritmo, el habla conectada, la comprensión auditiva y la fluidez al hablar, convirtiéndola en una de las metodologías más efectivas para la preparación del IELTS Speaking y la comunicación en inglés en el mundo real.

Técnica de shadowing: lee la guía completa paso a paso →