Module 4 Flashcards
(40 cards)
The «_space;symbol used for displaying the output is known as the _______ operator
insertion
It is commonly known as the output operator.
Insertion operator
Multiple insertion operations («) may be chained in a _____ statement
single
The operator used for taking the input is known as the _________.
extraction
Which of the following escape sequences represents the horizontal tab?
\t
Which library is used for basic input-output library in this program?
iostream
What two functions will not work when we remove the iostream header file?
cin and cout
The function used to round the value toward zero and returns the nearest integral value.
trunc ( )
The sets the decimal precision to be used to format floating-point values on output operations is __________.
setprecision
Which implicit conversion is not possible?
float to int
To use the functions pow() and sqrt(), what should be included in the preprocessor directive part of the C++ program?
math.h
________ type conversion is a conversion performed by the compiler without the programmer’s intervention.
Implicit
The standard output by default is the screen, and the C++ stream object defined to access it is
cout
What is the process of converting one predefined type into another?
Type casting
Which is a valid typecast?
(char)a;
Which header file do you need to include to use typecasting?
None
Which of the following is not true in implicit type conversion?
It is a force type conversion
We can perform implicit type conversion on: ____________
Converting char to int
How many parameters are used in floor() function?
1
Given: string name = “Jayar”; What header is needed to be declared to be able to output the content of the string type variable name?
string
If there is a chained multiple extraction operators (») in cin, the inputted values separated by space/s are stored in the variables respectively.
True
To insert a line break, a new-line character shall be inserted at the exact position the line should be broken.
True
Integer is larger than float data type in size.
False
What is type casting?
Converting one data type into another