PDF Download
FREE AND STUDY GAMES ABOUT CCS3 - MOD3 EXAM
QUESTIONS
Actual Qs and Ans Expert-Verified Explanation
This Exam contains:
-Guarantee passing score -90 Questions and Answers -format set of multiple-choice -Expert-Verified Explanation Question 1: Statically typed is a programming language characteristic in which variable types are explicitly declared.
Answer:
True Question 2: An identifier must not be one of the keywords. Which of the following is NOT considered as an identifier?
Answer:
switch
Question 3: Which of the following user-defined identifiers is invalid in C++?
Answer:
first-name Question 4: All C++ statements that need to be executed are written within main ( ).
Answer:
True
Question 5: The following statements are TRUE in creating identifiers except _______
Answer:
Special characters are allowed.Question 6: Which of the following demonstrates the correct use of #define directive if I want to assign 9.8 as gravitational acceleration constant?Note: Use g to represent gravitational acceleration constant
Answer:
#define g 9.8 Question 7: Identify what part of the structure of C++ program is the bold and underlined text.cout<<"The sum of" << x << "and" << y << "is" << sum;
Answer:
Statement Question 8: Let a=2, b=5, c=15, d=17:
Evaluate the given expression:
cout << !((ad));
Answer:
0 (FALSE)
Question 9: All variables must be declared before it will be used. Which of the following is a correct declaration of variables?
Answer:
float Wt, Ht; Question 10: Comments tell the compiler to preprocess the source code before compiling.
Answer:
False
Question 11: What value is placed in choice?
int a=5, b=10, c=15 ; choice = a>b && a>c ? a : (b > c ? b :
- ;
Answer:
15
Question 12: An operator that is also called ternary operator.
Answer:
Conditional Operator Question 13: The symbols that indicates the beginning of main's function definition.
Answer:
{ Question 14: main() is an exit point of all the function where program execution begins.
Answer:
False
Question 15: What value is placed in sum?
double sum = 10.0, price=100;
sum += price>=100 ? price*1.1 : price;
Answer:
120 Question 16: The following statements about int main() function is TRUE except ________.
Answer:
Semicolon is required at the end of this statement.Question 17: The standard value that the return statement should return to signify successful execution of the program.
Answer:
Question 18: C++ was developed by Bjarne Stroustrup as an enhancement to what
programming language?
Answer:
C language Question 19: C++ is a free-form language is a programming language in which the positioning of characters on the page in program text is significant.
Answer:
False Question 20: These are parts of the source code disregarded by the compiler. Their purpose is only to allow the programmer to insert notes or descriptions embedded within the source code.
Answer:
Comments Question 21: Two slash signs inserted by the programmer in his C++ program indicate that the rest of the line is a comment.
Answer:
True Question 22: The library that contains the declarations of the standard input and output functions in C++.
Answer:
iostream Question 23: American computer scientist known for his invention of the C programming language
Answer:
Dennis Ritchie
Question 24: C++ is not case-sensitive programming language.
Answer:
False