C Programming: MCQ Set – 07
C Programming: MCQ Set – 07
by
codecrucks
·
Published
· Updated
Q61: The spacing between character pairs is called
- (A) Kerning
- (B) x-height
- (C) intercap
- (D) serif
Q62: What is the only function all C++ programs must contain?
- (A) start()
- (B) system()
- (C) main()
- (D) program()
Q63: How many of the following declarations are correct ?
1.int z = 7.0;
2.double void = 0.000;
3.short array [2] = {0, 1, 2};
4.char c = “\n”
- (A) None
- (B) One is correct
- (C) Two are correct
- (D) All four are correct
Q64: The _______ operator is a technique to forcefully convert one data type to the others
- (A) Cast
- (B) Conversion
- (C) Type
- (D) Unary
Q65: If an integer needs two bytes of storage, then the maximum value of a signed integer is
- (A) 216 – 1
- (B) 215 – 1
- (C) 216
- (D) 215
Q66: Output of the following program fragment isprintf (“%d”, printf (“tim”));
- (A) results in a syntax error
- (B) outputs tim3
- (C) outputs garbage
- (D) outputs tim and terminates abruptly
Q67: What will be the output of following program
main ( )
{ float a = 0.5, b = 0.7;
if (b < 0.8)
if (a < 0.5) printf (“ABCD”);
else printf (“PQR”);
else printf (“JKLF);
}
- (A) ABCD
- (B) PQR
- (C) JKLF
- (D) None of these
Q68: What is the value of ‘b’ after the execution of the following code statements:
C=10;
B=++c+++c;
- (A) 20
- (B) 22
- (C) 23
- (D) None
Q69: A Compiler is _____________________.
- (A) A combination of computer hardware
- (B) A program which translates from one high-level language to another
- (C) A program which translates from one high-level to a machine level
- (D) None of these
Q70: The scheme of which interpreter translates the source program is known as
- (A) Paragraph by paragraph
- (B) Instruction by instruction
- (C) Line by line
- (D) None of the above
Answer:
Question | Q61 | Q62 | Q63 | Q64 | Q65 | Q66 | Q67 | Q68 | Q69 | Q70 |
Answer | A | C | C | A | B | B | – | D | C | C |