COSC 1436 Test Questions with Correct Answers
Every statement in C++ must end with a semicolon (;), known as the statement terminator (though pre-processor statements are not C++ statements so they do not end in a semicolon).
True
False - Answer-True
What is the output of the following two...
COSC 1436 Test Questions
with Correct Answers
Every statement in C++ must end with a semicolon (;), known as the statement
terminator (though pre-processor statements are not C++ statements so they do not
end in a semicolon).
True
False - Answer-True
What is the output of the following two lines of code:
Match the term on the left with its definition on the right.
Keyboard
Printer
Touch screen - Answer-Input device (sends data to the computer)
Output device (receives data from the computer)
Both an input and output device
The ____________ specifies the number of pixels in horizontal and vertical dimensions
of the display device.
memory
, dot pitcch
screen resolution
USB - Answer-Screen resolution
Which of the following statements is correct to display "Programming is fun" on the
console?
cout < "Programming is fun";
cout << "Programming is fun";
cout << "Programming is fun"
cout << Programming is fun; - Answer-cout << "Programming is fun";
A program and its data must be moved into the computer's _______ before they can be
executed by the CPU.
USB
window
memory
Hard disk - Answer-Memory
The speed of the CPU may be measured in __________.
All of the following examples of code work. However, which of the following code has
the best programming style?
#include <iostream>
using namespace std;
int main()
{
cout << "Welcome to C++" << endl;
return 0;
}
#include <iostream>
using namespace std; int main() {
cout << "Welcome to C++" << endl; return 0;
}
#include <iostream>
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Scholarsstudyguide. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.09. You're not tied to anything after your purchase.