1.  The computer will carry out the instructions that follow the symbol //
Answer:  False

2.  A program must have a main function.
Answer:  True




3.  The following is an example of a declaration statement:
cout << “Enter a number: ”;
Answer:  False

4.  An identifier must start with a letter or an underscore.
Answer:  True

5.  It is best to use very short identifiers.
Answer:  False

6.  In the statement below: “Hello!” is called a string literal.
cout << “Hello!”
Answer:  True

7. There is no limit on the size of the numbers that can be stored in the int data type.
Answer:  False

8.  76.45e-2 is a valid value for a float data type.
Answer:  True

9.  There are only two possible values for the bool data type.
Answer:  True

10.  All data types take up the same amount of storage.
Answer:  False

11.  It is good program style to put spaces between words and symbols.
Answer:  True

12.  A C++ statement cannot extend over more than one line.
Answer:  False

13.  In C++ addition is always evaluated before subtraction.
Answer:  False

14.  The value of 3/7 is 0.
Answer:  True

15.  >> is used for output.
Answer:  False

Mukesh Rajput

Mukesh Rajput

I am a Computer Engineer, a small amount of the programming tips as it’s my hobby, I love to travel and meet people so little about travel, a fashion lover and love to eat food, I am investing a good time to keep the body fit so little about fitness also..

Post A Comment:

1 comments:

  1. Question 3
    1)One of these statements below is true and the other three are false. Which one is true?



    2)A class can consist of multiple member data variables of different types, but each type must be specified when the class is defined.



    3)A class can consist of multiple member data variables, but all must be of the same type.



    4)A class can consist of multiple member data variables, but the type of each data variable does not need to be specified until the class is used to declare a variable.



    5)A class can consist of multiple member data variables of different types, but each member variable must be one of the built-in types.

    ReplyDelete