Imperative Programming MCQs - 1 | 100+ MCQ Questions with Answers

Imperative Programming MCQs - 1

Q 1. Who is called as Father of C Programming Language ?
  1. Dennis Ritchie
  2. Bill Gates
  3. Steve Jobs
  4. Ken Thompson
Ans: Dennis Ritchie

Q 2. What is Full Name of Dennis Ritchie?
  1. Dennis George Ritchie
  2. Dennis Stephen Ritchie
  3. Dennis MacAlistair Ritchie
  4. Dennis Bill Ritchie
Ans: Dennis MacAlistair Ritchie

Q 3. C Programming was created at ..............................
  1. L&T Laboratories
  2. MIT University
  3. Havard University
  4. AT & T Bell Laboratories
Ans: AT & T Bell Laboratories

Q 4. C programming was created in the year............
  1. 1976
  2. 1980
  3. 1972
  4. 1967
Ans: 1972

Q 5. Which of the following is appropriate position for writing comment in C Programming?
  1. before header filesection
  2. before calling the main function
  3. before variable declaration section
  4. anywhere in the code
Ans: anywhere in the code

Q 6. Which of the following Comments are used in C Programming ?
  1. Multiple Line Comments
  2. Single Line Comments
  3. Enhanced Comments
  4. Line Comments
Ans: Single Line Comments

Q 7. Comments in C Program are enclosed in which of the following pattern?
  1. \\*....*\\
  2. /*.....*/
  3. //*.....*//
  4. \*....*\
Ans: /*.....*/

Q 8. A Single C Program can have _______ Single Line and multiple line comments ?
  1. 1 to 10
  2. Depends on the lines of code
  3. Any number of comments are allowed
  4. 20 to 30
Ans: Any number of comments are allowed

Q 9 . This symbol represents which of the following in a flowchart?






  1. A Decision
  2. Processig
  3. User Defined Function
  4. Input-Output
Ans: A Decision

Q 10. This symbol represents which of the following in a flowchart?




  1. A Decision
  2. Processig
  3. User Defined Function
  4. Terminal (Start/Stop)
Ans: Terminal (Start/Stop)

Q 11. This symbol represents which of the following in a flowchart?




  1. Predefined Process/ Function
  2. Processig
  3. User Defined Function
  4. Terminal (Start/Stop)
Ans: Predefined Process/ Function

Q 12. This symbol represents which of the following in a flowchart?





  1. A Decision
  2. Processig
  3. User Defined Function
  4. Input-Output
Ans: Input-Output

Q 13. This symbol represents which of the following in a flowchart?





  1. A Decision
  2. Processig
  3. User Defined Function
  4. Input-Output
Ans: Processig

Q 14. When declaring an array of n-elements the subscripts range from ...............
  1. n to n-1
  2. 0 to n-1
  3. 0 to n+2
  4. 0 to n+2
Ans: 0 to n-1

Q 15. Suppose that the string "California" is to be stored in a one-dimensional character array called letter. Which of the following is the appropriate way of declaring the variable array?
  1. char letter[11]
  2. char letter[10]
  3. char [letter 11]
  4. char [letter 10]
Ans: char letter[11]

Q 16. The................ decides the portion of the program within which the variables are recognized.
  1. storage class
  2. variable
  3. data type
  4. constants
Ans: storage class

Q 17. If a variable is  declared before the main is called the ...................
  1. local variable
  2. global variable.
  3. default 
  4. register
Ans: global variable.

Q 18. A global variable is also known as ............... variable.
  1. static
  2. auto
  3. external
  4. local
Ans: external

Q 19. Variables declared inside a function are called as .............. vairables
  1. external
  2. global
  3. local
  4. internal
Ans: local

Q 20. The maximum value that an integer constant can have is
  1. 32767
  2. 256
  3. 128
  4. 2147438647
Ans: 32767

Q 21. Which one is not a type of Statement
  1. Expression Statement
  2. Control Statement
  3. Compound Statement
  4. Variable Statement
Ans: Variable Statement

Q 22. When a program is compiled each occurences of ________ will be replaced by corresponding character sequence
  1. Variable
  2. data type
  3. expression
  4. symbolic constant
Ans: symbolic constant

Q 23. ______________ is an identifier that is used to represent a single data item
  1. variable
  2. constant
  3. expression
  4. array
Ans: variable

Q 24. __________ is the identifier that refers to a collection of data items that all have same name & same data type.
  1. variable
  2. constant
  3. expression
  4. array
Ans: array

Q 25. The individual array elements are distinguished from one another by the value that is assigned to
  1. subscript
  2. superscript
  3. variable
  4. constant
Ans: subscript

Q 26. An n character string will require _________ element array   
  1. n+1
  2. n-1
  3. n
  4. n-2
Ans: n+1

Q 27. _______Escape sequence is used to mention newline character in statement
  1. \n
  2. \v
  3. \t
  4. \0
Ans: \n

Q 28. _______escape sequence is used to mention end of character string
  1. \n
  2. \v
  3. \t
  4. \0
Ans: \0

Q 29. Memory requirement for int datatype
  1. 2 byte
  2. 1 byte
  3. 4 byte
  4. 8byte
Ans: 2 byte

Q 30. Memory requirement for float datatype
  1. 2 byte
  2. 1 byte
  3. 4 byte
  4. 8byte
Ans: 4 byte

Q 31. A compound statement consists of several individual statements enclosed within a pair of braces
  1. []
  2. ()
  3. {}
  4. <>
Ans: {}

Page 1 Next