CPR MCQ'S: JSPM Group of Institutes, Pune Sberct'S, Bhagwant Institute of Technology, Barshi

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

JSPM Group of Institutes, Pune

SBERCT’s, BHAGWANT INSTITUTE OF TECHNOLOGY, BARSHI


CPR MCQ’s
1) A computer program that converts assembly language to machine language is
A. Compiler
B. Interpreter
C. Assembler
D. None of the above
2) ASCII stands for
A. American standard code for information interchange
B. All-purpose scientific code for information interchange
C. American security code for information interchange
D. American Scientific code for information interchange

3) The list of coded instructions is called


A. Computer program
B. Algorithm
C. Flowchart
D. Utility programs
4) All keywords in C are in
a) LowerCase letters
b) UpperCase letters
c) CamelCase letters
d) None
5) Which of the following is not a valid C variable name?
a) int number;
b) float rate;
c) int variable_count;
d) int $main;
6) Which of the following is true for variable names in C?
a) They can contain alphanumeric characters as well as special characters
b) It is not an error to declare a variable to be one of the keywords (like goto, static)
c) Variable names cannot start with a digit
d) Variable can be of any length
7) The real constant in C can be expressed which of the following forms?
A) Fractional form only
B) Exponential form only
C) ASCII form only
D) Both Fractional and Exponential
8) C language has been developed by?
A) Ken Thompson
B) Dennis Ritchie
C) Peter Norton
D) Martin Richards
9) Which is correct with respect to size of the datatypes?
a) char > int > float
b) int > char > float
c) char < int < double
d) double > char > int
10) What is required in each C program?
a) The program must have at least one function.
b) The program does not require any function.
c) Input data
d) Output data

11) What is the output of this statement "printf("%d", (a++))"?


a) The value of (a + 1)
b) The current value of a
c) Error message
d) Garbage
12) What does this declaration mean?

a) X is a four-digit integer.
b) X cannot be greater than a four-digit integer.
c) X is a four-bit integer.
d) None of the these
13) How many characters can a string hold when declared as follows?
Char name[20];
a) 18
b) 19
c) 20
d) None of the these
14) C is the successor of ___ programming language.
a) C++
b) B++
c) B
d) Mini C
15) In C, what is the correct hierarchy of arithmetic operations?

a) */ + -
b) * +- /
c) / *+ -
d) + - / *
16) C is which level language.
A) Low Level
B) High Level
C) Low + High
D) None
17) C language was invented in which laboratories?
A) Uniliver Labs
B) IBM Labs
C) AT&T Bell Labs
D) Verizon Labs
18) C language was invented in the year?
A) 1999
B) 1978
C) 1972
D) 1990
19) Which one is not a reserve keyword in C Language?
A) auto
B) main
C) case
D) register
20) What will be the output of the following C code?

a) a = 1, b = 1
b) a = 2, b = 1
c) a = 1, b = 2
d) a = 2, b = 2
21) What will be the output of the following C code?

a) 0
b) 1
c) 2
d) Compile time error
22) What will be the output of the following C code?

a) Compile time error


b) -1
c) 1
d) Implementation defined

23) What will be the output of the following C code?

a) Implementation defined
b) 1
c) 3
d) Compile time error
24) What is constant?
A. Constants have fixed values that do not change during the execution of a
program
B. Constants have fixed values that change during the execution of a program
C. Constants have unknown values that may be change during the execution of a program
D. None of the above
25) What is Keywords?
A. Keywords have some predefine meanings and these meanings can be changed.
B. Keywords have some unknown meanings and these meanings cannot be changed.
C. Keywords have some predefine meanings and these meanings cannot be changed.
D. None of the above
26) What is C Tokens?
A. The smallest individual units of c program
B. The basic element recognized by the compiler
C. The largest individual units of program
D. A & B Both
27) Bitwise operators can operate upon?
A. double and chars
B. floats and doubles
C. ints and floats
D. ints and chars
28) Which of the following are tokens in C?
a) Keywords
b) Constant
c) Variable
d) All of the above
29) Which symbol is used as a statement terminator in C?
a) !
b) #
c) ~
d) ;
30) Which escape character can be used to begin a new line in C?
a) \a
b) \b
c) \m
d) \n

You might also like