C. Declares a constant pathwidth whose value will be 100
d. Constructs an integer type variable with pathwidth as identifier and 100 as value
Question 10
In an assignment statement
a. The lvalue must always be a variable
b. The rvalue might be a constant, a variable, an expression or any combination of these
c. The assignment always takes place from right to left and never the other way
D. All of above
Question 1
Identify the correct statement
a. Programmer can use comments to include short explanations within the source code itself.
B. All lines beginning with two slash signs are considered comments.
c. Comments very important effect on the behaviour of the program
d. both
Question 2
The directives for the preprocessors begin with
a. Ampersand symbol (&
b. Two Slashes (//)
c. Number Sign (#)
d. Less than symbol (<
Question 3
The file iostream includes
A. The declarations of the basic standard input-output library.
b. The streams of includes and outputs of program effect.
c. Both of these
d. None of these
Question 4
There is a unique function in C++ program by where all C++ programs start their execution
a. Start()
b. Begin()
c. Main()
d. Output()
Question 5
Every function in C++ are followed by
a. Parameters
B. Parenthesis
c. Curly braces
d. None of these
Question 6
Which of the following is false?
a. Cout represents the standard output stream in c++.
b. Cout is declared in the iostream standard file
c. Cout is declared within the std namespace
D. None of above
Question 7
Every statement in C++ program should end with
a. A full stop (.)
b. A Comma (,)
c. A Semicolon (
d. A colon (
Question 8
Which of the following statement is true about preprocessor directives?
a. These are lines read and processed by the preprocessor
b. They do not produce any code by themselves
c. These must be written on their own line
D. They end with a semicolon
Question 9
A block comment can be written by
a. Starting every line with double slashes (//)
b. Starting with /* and ending with */
c. Starting with //* and ending with *//
d. Starting with <!- and ending with -!>
Question 10
When writing comments you can
a. Use code and /* comment on the same line
Date: 2016-03-03; view: 808
|