Bachelor Of Computer Science

C++ Quizzes

CS: C++ MCQs - Complete

Initializing in Declaration Quiz Questions and Answers p. 115

Practice Initializing in declaration quiz questions and answers PDF, initializing in declaration MCQ with answers worksheet 115 for online past papers exam. Practice "Introduction to C++ Programming" quiz questions with answers, initializing in declaration Multiple Choice Questions (MCQ) for online . Free initializing in declaration MCQs, pointers and references, data hierarchy, character and string literals, increment decrement operator, initializing in declaration test prep for online bachelor's degree computer science.

"Which statement is correct for chained assignment?", initializing in declaration Multiple Choice Questions (MCQ) with choices y=x=22;, y=22;, y=(x=22);, and both b and c for cheapest online computer science degree. Learn introduction to c++ programming questions and answers with free online certification courses for computer majors.

Quiz on Initializing in Declaration

1.

Which statement is correct for chained assignment?

y=22;
y=x=22;
y=(x=22);
Both B and C

2.

Input stream Cin reads the items form

Right to left
Left to right
Middle to end
None of them

3.

The length of a string literal is determined by

Changing it into the integer type
Putting it into an array
The number of characters it contain
None of them

4.

A field consisting of decimal digits could represents a

person's name
person's age
person's father name
person's age

5.

The address operator is denoted by

@
$
#
&