5 Dumb Questions that Every Person in IT Department Must Know
Well, these are really not dumb questions. These are a few basic questions related to C and C++ which I didn't know even when I assume that I have studied C really nicely. Also, I believe one keeps forgetting these or gets unavoidably confused when someone asks such a simple and dumb question. I get confused and that's why I thought of preparing this list on my blog. All the dumb questions which I would never expect anyone to ask ( but which are one of the most basic and obvious questions of course) are listed out here.
This is part 1 of the series.
Q1. What is the difference between assembly language and machine language?
Ans. Machine language is the computer programming language
that is used to actually code the machine. It’s the lowest level language and
is in form of bits i.e. while coding in machine language, actual bits are used
to control the processor. It’s very difficult to code in machine language for
it requires 100% accuracy while coding which is very difficult to achieve.
For this reason, we use a simpler language for coding. That
language is assembly language. Through assembly language we can create a program much easily as compared to that in machine language and with help of an assembler; the program is converted into bits
(i.e. machine language).
Q2. What are alphanumeric symbols known as in assembly language?
Ans. Mnemonics (correct me if I’m wrong)
Q3. Mention at least 10 header files in C? Source
Ans. I am including the ones which I
find easy to remember :D
- <stdio.h>
- <conio.h>
- <math.h>
- <time.h>
- <string.h>
- <float.h>
- <assert.h>
- <threads.h>
- <complex.h>
- <stdlib.h>
Q4. Which is the function used to terminate a C program?
Ans. Exit() function. It simply
terminates the program and returns an exit status to the operating system.
Status can be either success or failure.
Q5. What are the major differences between C and C++? Source
Ans. 1. While C is procedure oriented, C++ is an object
oriented language.
2. Data is not secure in C while it
is hidden in C++ (this happens due to features like data hiding in C++)
3. C follows top down approach and C++
follows bottom up approach.
4. C is function driven while C++ is
an object driven language.
5. Functions cannot be used inside
structures in C while it is possible in C++.
6. Namespace feature is available in
C++. It’s not in C
7. Function overloading and
exception handling isn’t supported in C, but it is in C++
Common questions! But certainly can't be termed as DUMB questions.
ReplyDeleteCall the person dumb who can't answer these though!
I mentioned it in the first line that these are not dumb questions and you know, when we're asked such questions we usually forget the answers coz of nervousness because these are some obvious questions which are never taught to us in books. We ought to know them automatically. :)
DeleteThe Teacher Taking Our TPP Classes.. Asked Every Single Question you Listed Above ..!
ReplyDeleteCURIOUS :O
These are exactly the same question which were asked to my class during the TPP lecture :P
DeleteThat's why they are the same. Probably, our teachers are also same :P
Oh Yes ! .. That Person is Taking Tech Classes For both CSE And IT .. :P ..
DeleteSo This All Is Scripted Then .. :P ..
hahahah.. maybe :P
DeleteIf Next Time He Tells You That IOS Is completely based upon Core C Language .. Then it Certainly Is Scripted :P .. ;)
DeleteHe won't tell that coz I would tell him first :P
DeleteI already knew this O:)
Wrote an article about C Language once! So I know it already!
That Was Smart ! .. ;) .. It was A Huge Surprise for me when i heard this from him ! :O
DeleteThen I'd look For Some New Loop Hole In this Scripted Issue :P ..
oh! well, if we're talking about the same teacher, he is one of the few teachers I seriously respect in our college for their knowledge. :D He's actually a one you can learn from. :)
DeleteWe Indeed Are Talking About the same teacher ! .. Yes he is different from the rest ! .. but he has been around IT people more.. than the CSE People... so rite now we are still getting used to him .. Maybe i would have the same views as yours .. after a few more classes ! :)
Delete