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).

Assembly Language is what you usually use and machine language is what machine uses. All you type in assembly language gets converted to machine language through an assembler.

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
  1. <stdio.h>
  2. <conio.h>
  3. <math.h>
  4. <time.h>
  5. <string.h>
  6. <float.h>
  7. <assert.h>
  8. <threads.h>
  9. <complex.h>
  10. <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++



Comments

  1. Common questions! But certainly can't be termed as DUMB questions.
    Call the person dumb who can't answer these though!

    ReplyDelete
    Replies
    1. 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. :)

      Delete
  2. The Teacher Taking Our TPP Classes.. Asked Every Single Question you Listed Above ..!
    CURIOUS :O

    ReplyDelete
    Replies
    1. These are exactly the same question which were asked to my class during the TPP lecture :P
      That's why they are the same. Probably, our teachers are also same :P

      Delete
    2. Oh Yes ! .. That Person is Taking Tech Classes For both CSE And IT .. :P ..
      So This All Is Scripted Then .. :P ..

      Delete
    3. If Next Time He Tells You That IOS Is completely based upon Core C Language .. Then it Certainly Is Scripted :P .. ;)

      Delete
    4. He won't tell that coz I would tell him first :P
      I already knew this O:)
      Wrote an article about C Language once! So I know it already!

      Delete
    5. That Was Smart ! .. ;) .. It was A Huge Surprise for me when i heard this from him ! :O
      Then I'd look For Some New Loop Hole In this Scripted Issue :P ..

      Delete
    6. 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. :)

      Delete
    7. We 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

Post a Comment

Popular Posts