181) Which of the following is not a fundamental type is not present in C but present in C++?

a. int

b. float

c. bool

d. void

Answer: C

182) What is the size of a boolean variable in C++?

a. 1 bit

b. 1 byte

c. 4 bytes

d. 2 bytes

Answer: A

183) Which of the following is C++ equivalent for scanf()?

a. cin

b. cout

c. print

d. input

Answer: A

184) Which of the following is C++ equivalent for printf()?

a. cin

b. cout

c. print

d. input

Answer: B

185) Which of the following is the correct difference between cin and scanf()?

a. both are the same

b. cin is a stream object whereas scanf() is a function

c. scanf() is a stream object whereas cin is a function

d. cin is used for printing whereas scanf() is used for reading input

Answer: B

error: Content is protected !!