C Programming Multiple Choice Question - About and History
This section focuses on the "History and About" of the C programming. These Multiple Choice Questions (mcq) should be practiced to improve the C programming skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.
1. Who is father of C Language?
A. Bjarne Stroustrup
B. James A. Gosling
C. Dennis Ritchie
D. Dr. E.F. Codd
View Answer
Ans : C
Explanation: The C programming language was developed in 1972 by Dennis Ritchie in the Bell Laboratories of the AT & T (American Telephone & Telegraph),located in U.S.A.Dennis Ritchie is known as the founder of c language.
2. C Language was developed at ?
A. AT & T Bell Laboratory
B. MIT University
C. Harvard University
D. Stanford Lab
View Answer
Ans : A
Explanation: Dennis Ritchie developed the C programming language at Bell laboratories during 1970s
3. Many features of C were derived from which language ?
A. PASCAL
B. B
C. BASIC
D. FORTRAN
View Answer
Ans : B
Explanation: Richie and Thompson wanted to rewrite the operating system in B, a language they had previously developed, but B were typeworthy, and therefore mixed bits / words were not well suited for address and PDP-11 type . B was a simplified version of Thompson's BCPL, which was more ALGOL than the language.
4. What is C language?
A. C language is a structure/procedure oriented
B. C language is a middle level programming language
C. C language was invented for implementing UNIX operating system
D. All of the above
View Answer
Ans : D
Explanation: C language is just a high level computer language. High level languages help Human beings to express Logic. Computers dont understand this language. So, you need a mediator. This mediator is usually a Compiler or Interpreter. In case of C, we have a compiler. The compiler translates the logic expressed in C into Machine Code which is the language of computers.
5. First version of C Programming language is ____ .
A. K&R
B. C89
C. ANSI
D. R&K
View Answer
Ans : A
Explanation: In 1978, Brian Kernighan and Dennis Ritchie published the first edition of The C Programming Language known as "K&R" .
6. C was initially used for
A. General purpose
B. System development work
C. Data processing
D. None of these
View Answer
Ans : B
Explanation: C was initially used for system development work, particularly the programs that make-up the operating system.
7. C programming language is
A. Procedural language
B. Object Oriented language
C. Scripting languages
D. None of these
View Answer
Ans : A
Explanation: C programs follow a procedure of steps written in it, called functions. It follows a top-down approach i.e. much importance is given to flow of program rather than on data on which functions operate.
8. Which Committee standardize C Programming Language ?
A. IEEE
B. ISO
C. IEC
D. ANSI
View Answer
Ans : D
Explanation: American National Standards Institute.ANSI C (these days better known as C89) was the first standardized form of the C language.
9. Which year C language is developed?
A. 1970
B. 1971
C. 1972
D. 1973
View Answer
Ans : C
Explanation: C programming language was developed at Bell Laboratories in 1972 by Dennis Ritchie.
10. Which of these is not an example for IDE in C?
A. Turbo
B. Pycharm
C. Code::Blocks
D. Borland
View Answer
Ans : B
Explanation: Pycharm used for python
11. Which of these is true about embedded C?
i)Embedded C is the extension of C programming language
ii)Embedded C is used to develop micro controller based applications.
iii)Embedded C includes features not available in normal C like fixed-point arithmetic, named address spaces, and basic I/O hardware addressing.
A. Only i & ii
B. Only i & iii
C. Only ii & ii
D. All of the above
View Answer
Ans : D
Explanation: An Extension of C programming language with header files is known as embedded C. It provides the supportive framework to the processor functioning in the embedded devices for programs development. There are so many examples of embedded C programming, we use on the daily basis one of them is smart phone, other examples are RAM, ROM for limited resources. Embedded C is the extension of C programming language.Embedded C is used to develop micro controller based applications.Embedded C includes features not available in normal C like fixed-point arithmetic, named address spaces, and basic I/O hardware addressing
12. C can be used on?
A. Only MS-Dos operating System
B. Only Linux operating system
C. Only Windows operating system
D. All of the above
View Answer
Ans : D
Explanation: C can be used on all of the above operting system.MS-Dos operating SystemLinux operating systemWindows operating system
13. Which is not a character Of C?
A. $
B. ^
C. -
D. |
View Answer
Ans : A
Explanation: $ is not a character Of C
14. Which is true in case of ANSI C?
A. Comments are represented in /* and */
B. Nested comments are not allowed
C. Comments are not allowed within a string constant
D. Nested comments are allowed
View Answer
Ans : B
Explanation: Nested comments are not allowed in case of ANSI C.
15. Identify the wrong Statement?
A. #define /* symbolic constant */ Max 100
B. int /*declaration*/ a,b;
C. char c1,c2;
D. #define MAX 25;
View Answer
Ans : D
Explanation: #define MAX 25; is wrong Statement.
16. Identify the correct statement?
A. The variable names VOLUME and volume are identical
B. The variable names sun and sun are identical
C. Variables are not declared before use
D. Variable may he absent in a declaration.
View Answer
Ans : D
Explanation: Variable may he absent in a declaration is the correct statement
17. An escape sequence commence with
A. \
B. /
C. ?
D. #
View Answer
Ans : A
Explanation: An escape sequence commence with .
18. Identify the wrong statement?
A. # define is a preprocessor facility.
B. # define aids in modifying a constant value throughout the program.
C. # define uses a statement terminator.
D. # define improves the readability of the program.
View Answer
Ans : C
Explanation: # define uses a statement terminator is the wrong statement.
19. Where does the execution of every C program starts?
A. Every C program starts in the main () function.
B. Every C program starts in the begin ( ) function.
C. Every C program starts in the initialize ( ) function.
D. Every C program starts in the start ( ) function.
View Answer
Ans : A
Explanation: The execution of every C program starts from "every C program starts in the main () function".
20. Identify the separator(s) in C?
A. white space character
B. Comments
C. Semicolon
D. Both A and B
View Answer
Ans : D
Explanation: white space character and comments the separator(s) in C.
21. A program which translates a high level language program into a machine language program is called
A. Compiler
B. Interpreter
C. Both A and B
D. none of the above
View Answer
Ans : C
Explanation: A program which translates a high level language program into a machine language program is called Compiler and Interpreter.
22. Indicate which of the following is not true about an interpreter?
A. Interpreter generates an object program from the source program
B. Interpreter is a kind of translator
C. Interpreter analysis each source statement every time it is to be executed
D. None of the above
View Answer
Ans : D
Explanation: None of the above statement is indicate not true about an interpreter
23. The errors that can be pointed out by the compiler are?
A. syntax errors
B. semantic error
C. logical error
D. none of the above
View Answer
Ans : A
Explanation: The errors that can be pointed out by the compiler are syntax errors
24. Which of the following statements is not true?
A. FORTRAN is a high-level language
B. A FORTRAN program written for the IBM-PC, is totally different from a FORTRAN program written for the execution of SUN machine.
C. FORTRAN is extensively used write program for performing scientific computations
D. None of the above
View Answer
Ans : B
Explanation: A FORTRAN program written for the IBM-PC, is totally different from a FORTRAN program written for the execution of SUN machine is not true.
25. The language C is
A. an assembly language
B. a third generation high level language
C. a machine language
D. none of the above
View Answer
Ans : B
Explanation: The language C is a third generation high level language
26. A program that converts a high level language program to a set of instruc-tions that can run on a computer is called a ?
A. compiler
B. debugger
C. editor
D. none of the above
View Answer
Ans : A
Explanation: A program that converts a high level language program to a set of instruc-tions that can run on a computer is called a compiler.
27. The mapping from assembly language instructions into machine language instructions is?
A. many-one
B. many-many
C. one-one
D. one-many
View Answer
Ans : C
Explanation: The mapping from assembly language instructions into machine language instructions is one to one
28. A compiler is
A. a machine-independent and OS-independent
B. machine-dependent and OS-dependent
C. machine-dependent and OS-independent
D. machine-independent and OS-dependent
View Answer
Ans : B
Explanation: A compiler is machine-dependent and OS-dependent
29. Which one of the following statement is incorrect?
A. A compiler compiles the source program
B. An assembler takes an assembly program as input.
C. A compiler does the same type of function as interpreter
D. None of the above
View Answer
Ans : C
Explanation: A compiler does the same type of function as interpreter is not true.
30. C compiler traps
A. logical errors
B. syntax errors
C. Both A and B
D. none of the above
View Answer
Ans : B
Explanation: C compiler traps syntax errors .
31. A translator which reads an entire pro-gram written in high level and converts it into machine language code is?
A. Assembler
B. Translator
C. Compiler
D. System software
View Answer
Ans : C
Explanation: A translator which reads an entire pro-gram written in high level and converts it into machine language code is Compiler.
32. Which of the following is not one of the processes that a high level language program must go through before it is ready to be executed
A. Translation
B. Controlling
C. Loading
D. Linking
View Answer
Ans : B
Explanation: The following is not one of the processes that a high level language program must go through before it is ready to be executed is "Controlling".
33. Which of the following is related to machine language?
A. Difficult
B. First generation to learn language
C. Machine
D. All of the above
View Answer
Ans : D
Explanation: The following is related to machine language is all.
34. C is a
A. Completely high level language
B. Completely low level language
C. High level language with low level features
D. none of the above
View Answer
Ans : C
Explanation: C is a High level language with low level features.
Also check :
Discussion