C++ Chapter 2
Quiz
•
Computers
•
University
•
Hard
Albert Gorup
Used 11+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between the following two lines of code:
cout << "perimeter"; //LINE 1
cout << perimeter; //LINE 2
LINE 1 prints out the actual word perimeter and LINE 2 prints out the value held in the variable: perimeter.
LINE 2 prints out the actual word perimeter and LINE 1 prints out the value held in the variable: perimeter.
You do not need a semi-colon at the end of the two lines.
The lines are identical.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements will read in THREE values from standard input (user typing it in) into variables named num1, num2, and num3 .
cin>>num1>>num2>>num3;
cin>>num1>>num2>>num3>>endl;
cout<<num1<<num2<<num3<<endl;
cin>>number1>>number2>>number3;
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
(True or False) The following two snippets of code have the same result.
cin >> x >> y;
cin >> x;
cin >> y;
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an INVALID identifier?
1stplace
_firstplace
firstPlace
place1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these data types requires the least amount of memory?
short
double
int
float
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To declare and initialize 3.14159 to a constant PI, which of the following is the correct syntax?
const PI = 3.14159;
const double 3.14159 = PI;
const double PI = 3.14159;
const int PI = 3.14159;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
(T or F) The software development life cycle is a multi-stage process that includes the following items (in the following order):
* requirements specification
* system analysis
* system design
* implementation testing
* deployment
* maintenance
True
False
Similar Resources on Wayground
10 questions
FOP - CHAPTER 6
Quiz
•
University
10 questions
Exel หลังการเรียน
Quiz
•
University
10 questions
LINUX MODULE 03 QUIZ
Quiz
•
University
10 questions
Sistema Grid
Quiz
•
University
10 questions
DAA Quiz 1
Quiz
•
University
10 questions
HTML Quiz 1
Quiz
•
University
10 questions
Quizz3 Ciencia de Datos
Quiz
•
University
11 questions
CIS2303 Week 1_2 CLO1
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
