Imperative Programming MCQs - 1 | 100+ MCQ Questions with Answers
Q 1. Who is called as Father of C Programming Language ?
- Dennis Ritchie
- Bill Gates
- Steve Jobs
- Ken Thompson
Ans: Dennis Ritchie
Q 2. What is Full Name of Dennis Ritchie?
- Dennis George Ritchie
- Dennis Stephen Ritchie
- Dennis MacAlistair Ritchie
- Dennis Bill Ritchie
Ans: Dennis MacAlistair Ritchie
Q 3. C Programming was created at ..............................
- L&T Laboratories
- MIT University
- Havard University
- AT & T Bell Laboratories
Ans: AT & T Bell Laboratories
Q 4. C programming was created in the year............
- 1976
- 1980
- 1972
- 1967
Ans: 1972
Q 5. Which of the following is appropriate position for writing comment in C Programming?
- before header filesection
- before calling the main function
- before variable declaration section
- anywhere in the code
Ans: anywhere in the code
Q 6. Which of the following Comments are used in C Programming ?
- Multiple Line Comments
- Single Line Comments
- Enhanced Comments
- Line Comments
Ans: Single Line Comments
Q 7. Comments in C Program are enclosed in which of the following pattern?
- \\*....*\\
- /*.....*/
- //*.....*//
- \*....*\
Ans: /*.....*/
Q 8. A Single C Program can have _______ Single Line and multiple line comments ?
- 1 to 10
- Depends on the lines of code
- Any number of comments are allowed
- 20 to 30
Ans: Any number of comments are allowed
Q 9 . This symbol represents which of the following in a flowchart?
- A Decision
- Processig
- User Defined Function
- Input-Output
Ans: A Decision
Q 10. This symbol represents which of the following in a flowchart?
- A Decision
- Processig
- User Defined Function
- Terminal (Start/Stop)
Ans: Terminal (Start/Stop)
Q 11. This symbol represents which of the following in a flowchart?
- Predefined Process/ Function
- Processig
- User Defined Function
- Terminal (Start/Stop)
Ans: Predefined Process/ Function
Q 12. This symbol represents which of the following in a flowchart?
- A Decision
- Processig
- User Defined Function
- Input-Output
Ans: Input-Output
Q 13. This symbol represents which of the following in a flowchart?
- A Decision
- Processig
- User Defined Function
- Input-Output
Ans: Processig
Q 14. When declaring an array of n-elements the subscripts range from ...............
- n to n-1
- 0 to n-1
- 0 to n+2
- 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?
- char letter[11]
- char letter[10]
- char [letter 11]
- char [letter 10]
Ans: char letter[11]
Q 16. The................ decides the portion of the program within which the variables are recognized.
- storage class
- variable
- data type
- constants
Ans: storage class
Q 17. If a variable is declared before the main is called the ...................
- local variable
- global variable.
- default
- register
Ans: global variable.
Q 18. A global variable is also known as ............... variable.
- static
- auto
- external
- local
Ans: external
Q 19. Variables declared inside a function are called as .............. vairables
- external
- global
- local
- internal
Ans: local
Q 20. The maximum value that an integer constant can have is
- 32767
- 256
- 128
- 2147438647
Ans: 32767
Q 21. Which one is not a type of Statement
- Expression Statement
- Control Statement
- Compound Statement
- Variable Statement
Ans: Variable Statement
Q 22. When a program is compiled each occurences of ________ will be replaced by corresponding character sequence
- Variable
- data type
- expression
- symbolic constant
Ans: symbolic constant
Q 23. ______________ is an identifier that is used to represent a single data item
- variable
- constant
- expression
- array
Ans: variable
Q 24. __________ is the identifier that refers to a collection of data items that all have same name & same data type.
- variable
- constant
- expression
- array
Ans: array
Q 25. The individual array elements are distinguished from one another by the value that is assigned to
- subscript
- superscript
- variable
- constant
Ans: subscript
Q 26. An n character string will require _________ element array
- n+1
- n-1
- n
- n-2
Ans: n+1
Q 27. _______Escape sequence is used to mention newline character in statement
- \n
- \v
- \t
- \0
Ans: \n
Q 28. _______escape sequence is used to mention end of character string
- \n
- \v
- \t
- \0
Ans: \0
Q 29. Memory requirement for int datatype
- 2 byte
- 1 byte
- 4 byte
- 8byte
Ans: 2 byte
Q 30. Memory requirement for float datatype
- 2 byte
- 1 byte
- 4 byte
- 8byte
Ans: 4 byte
Q 31. A compound statement consists of several individual statements enclosed within a pair of braces
- []
- ()
- {}
- <>
Ans: {}
Page 1 Next
Post a Comment