C About & History

1. Who is the father of Programming Language C?

A. Ada Lovelace
B. Dennis Ritchie
C. Tim Berners-Lee
D. Alan Turing

Ans : B
Explanation:  C programming language was  developed by Dennis Ritchie in  1972 at the Bell Laboratories of the AT & T that is located in U.S.A. So we call  Dennis Ritchie is the founder of c language. . 

2. where was the c language developed ?

A. Stanford Lab
B. MIT Lab
C. Harvard University
D. AT & T Bell Laboratory

Ans : A
Explanation:  The C programming language was developed  at AT & T Bell laboratories during 1970-72s

3. Many features of C were derived from which language ?

A. PASCAL
B. B
C. BASIC
D. FORTRAN

Ans : B
Explanation: Richie and Thompson wanted to rewrite the operating system in B, a language they had previously developed, but B were type worthy, 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

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

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

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

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

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

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

Ans : B
Explanation: Pycharm used for python While Turbo and Code:: Blocks are IDE of C

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

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

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

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

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;

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.

Ans : D
Explanation: Variable may he absent in a declaration is the correct statement

17. An escape sequence commence with

A. \
B. /
C. ?
D. #

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 improves the readability of the program.
D. # define uses a statement terminator.

Ans : D
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 initialize ( ) function.
B. Every C program starts in the begin ( ) function.
C. Every C program starts in the main () function.
D. Every C program starts in the start ( ) function.

Ans : C
Explanation: The execution of every C program starts from  main function – main()

20. Identify the separator(s) in C?

A. white space character
B. Comments
C. Both A and B
D. None of these 

Ans : C
Explanation: comments and white space character are the  separator(s) in C.

21. A program which translates a high level language into a machine level  language  is know as 

A. Compiler
B. Interpreter
C. Both A and B
D. none of the above

Ans : C
Explanation: A program which translates a high level language  into a machine level language is know as both 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

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. logical error
B. semantic error
C. Syntax errors
D. All of above

Ans : C
Explanation: The errors that can be pointed out by the compiler are syntax errors

24. Which of the following statements is not true?

A. A FORTRAN program written for the IBM-PC, is totally different from a FORTRAN program written for the execution of SUN machine.
B. FORTRAN is a high-level language
C. FORTRAN is extensively used write program for performing scientific computations
D. None of the above

Ans : A
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 machine language
C. a third generation high level language
D. none of the above

Ans : C
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 instructions that can run on a machine is know as  ?

A. editor
B. debugger
C. compiler
D. All of  above

Ans : C
Explanation: A program that converts a high level language program to a set of instructions that can run on a machine is called  compiler.

27. The mapping from assembly language instructions into machine language instructions is?

A. one-one
B. many-many
C. many-one
D. one-many

Ans : A
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

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

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

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. Compiler
B. Translator
C. Assembler
D. System software

Ans : A
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

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

Ans : D
Explanation: The following is related to machine language is all.

34. C is a

A. High level language with low level features
B. Completely low level language
C. Completely high level language
D. none of the above

Ans : A
Explanation: C is a High level language with low level features.