100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COSC 1436 Test Questions with Correct Answers $12.09   Add to cart

Exam (elaborations)

COSC 1436 Test Questions with Correct Answers

 5 views  0 purchase
  • Course
  • COSC 1436
  • Institution
  • COSC 1436

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...

[Show more]

Preview 2 out of 7  pages

  • August 29, 2024
  • 7
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COSC 1436
  • COSC 1436
avatar-seller
Scholarsstudyguide
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:

cout << "0 + 1 + 2 = " << endl;
cout << 0 + 1 + 2 << endl;

0+1+2=
3

0+1+2=
0+1+2

0+1+2=3

3
3 - Answer-0 + 1 + 2 =
3

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 __________.

Gigabytes
bits
Megabytes
Gigahertz (GHz) - Answer-Gigahertz (GHz)

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

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

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

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.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

73091 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.09
  • (0)
  Add to cart