Podcast
Questions and Answers
What operator is used to add together two values?
What operator is used to add together two values?
- %
- + (correct)
- /
- *
Which keyword is used to store either True or False?
Which keyword is used to store either True or False?
- double
- bool (correct)
- char
- int
What function is used to read a string or a line from an input stream?
What function is used to read a string or a line from an input stream?
- endl
- cin
- getLine (correct)
- wcslen()
Which function returns the length of the given wide string?
Which function returns the length of the given wide string?
Which keyword is used to store a sequence of letters or other characters?
Which keyword is used to store a sequence of letters or other characters?
What is the operator used to decrease the value of a variable by 1?
What is the operator used to decrease the value of a variable by 1?
Which keyword is used to store whole numbers without decimals?
Which keyword is used to store whole numbers without decimals?
What is the function used to get the size of various data types?
What is the function used to get the size of various data types?
What is used to set the decimal precision to be used to format floating point values on output operations?
What is used to set the decimal precision to be used to format floating point values on output operations?
Which keyword is used to store fractional numbers containing one or more decimals?
Which keyword is used to store fractional numbers containing one or more decimals?
What is the typical bit width of a double variable?
What is the typical bit width of a double variable?
When should the setprecision() function be used in the source code?
When should the setprecision() function be used in the source code?
What is the purpose of the getline() function?
What is the purpose of the getline() function?
What does the void keyword indicate when used as a function return type?
What does the void keyword indicate when used as a function return type?
What is the purpose of the putback function in C++?
What is the purpose of the putback function in C++?
What does the array indexing start at in C++?
What does the array indexing start at in C++?
What is the purpose of the peek function in C++?
What is the purpose of the peek function in C++?
Which keyword specifies that a function takes no parameters?
Which keyword specifies that a function takes no parameters?
What does unsigned int represent in C++?
What does unsigned int represent in C++?
What is the maximum and minimum value that can be stored in a long double variable?
What is the maximum and minimum value that can be stored in a long double variable?