Module 3 Flashcards
include<conio.h></conio.h>
Preprocessor directive
Two slash signs inserted by the programmer in his C++ program indicate that the rest of the line is a _________.
comment
include <_________> is the correct way of writing the preprocessor directive to include the contents of iostream in a C++ program
iostream
C++ was developed by Bjarne Stroustrup as an enhancement to what programming language?
C language
cout«”Enter two numbers:”;
statement
The library that defines various mathematical functions in C++.
math
The symbol used in a preprocessor directive.
Sharp sign(#)
Which directive instructs the compiler to add the contents of an include file into your program during compilation?
include
American computer scientist known for his invention of the C programming language
Dennis Ritchie
These are used to override the order of precedence and force some parts of an expression to be evaluated before other parts.
( ) paranthesis
True or False: (a!=4) || !(b>c) where a=1, b=2, c=0
True
All are relational operators, except ______
< >
What value is placed in sum?
double sum = 10.0, price=100;
sum += price>=100 ? price*1.1 : price;
120
Which of the following can be considered as a valid identifier?
- $Area
- 123Height
- First Name
- Final_Grade
Final_Grade
________ characters are not allowed.
Special
Given the declaration int num=5; Which of the following is the other way to initialize variables?
int num(5);
These are the fixed values that do not change during the program’s execution.
Constants
What value is placed in choice?
int a=5, b=10, c=15 ;
choice = a>b && a>c ? a : (b > c ? b : c) ;
15
The following symbols are referred to as relational operators except ______.
|
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.
Comments
The standard value that the return statement should return to signify successful execution of the program.
0
The _______ keyword tells the program to return a value to the function int main()
return
The ordinary arithmetic operations such as addition, subtraction, multiplication, division and modulus division needs the #include<math.h> pre-processor directive</math.h>
False
He was the developer of C++ programming language.
Bjarne Stroustrup