
1. What is the first step in the Software Development Process?
[A] Code
[B] Test
[C] Requirements
[D] Design
2. Which of the following are valid C++ identifiers?
[A] age
[B] _grade
[C] return
[D] b234
[E] 3Numbers
[F] 123
3. A variable’s scope
[A] determines where it can be used in a program.
[B] can be changed during run time
[c] should be assigned to zero at the end of the program
[D] must be declared before the main function.
4. Constants
[A] are variables whose values can’t be changed.
[B] are identities with a fixed value
[C] must be defined before the main progtam
[D] can’t be used in function
5. Which of the following objects and functions are used for Standard
Input and Output in C++?
[A] print
[B] cin
[C] cout
[D]getline
5. Using the following code snippet what is the value of "grade"?
int A=11, B=9, grade;
grade = A-- * B++;
[A] 20
[B] 99
[C] 32
[D] 100
[E] 0
6. What is the value of animal after the if statement is executed?
bool cat=true, dog=false;
bool animal;