Archive for the ‘Quiz C++’ Category

Simple C++ Quiz   Leave a comment

Computer memory is called RAM because:•[A] It provides rapid access to data•[B] It is mounted on the motherboard•[C] It is measured in megabytes•[D] Its bytes can be addressed in random order (correct answer)•[E] Its chips are mounted in a rectangular array What is the debugger used for?•[A] Removing comments from the source code•[B] Running and [...]

Quiz: C++ File I/O   Leave a comment

1. Which of the following classes handlers file input?A. ofstreamB. ifstreamC. instreamD. inputfile 2. Which of the following is not a valid ofstream argument?A. ios::appB. ios::truncC. ios::noreplaceD. ios::create 3. What does ios::ate mean as an argument to ofstream?A. Open file, but do not create.B. Open file, create.C. Open file for read access only.D. Open file, [...]

C++ Quiz   Leave a comment

Question 1Can you name the special functions a C++ compiler can create implicitly? Question 2What are the two ways to achieve automatic type conversion from type X to type Y? Question 3Which of one of these represents an assignment operation?1. C c1 = c2;2. c3 = c4;3. bothAnswersAnswer to question 1The four special functions that [...]

Quiz: The basics of C++   Leave a comment

1. What is the correct value to return to the operating system upon the successful completion of a program?A. -1 B. 1 C. 0 D. Programs do not return a value. 2. What is the only function all C++ programs must contain?A. start()B. system() C. main() D. program() 3. What punctuation is used to signal [...]

Follow

Get every new post delivered to your Inbox.