C++ Chapter 5

Quiz
•
Computers
•
University
•
Medium
Albert Gorup
Used 18+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A while loop's body can contain multiple statements, as long as they are enclosed in braces.
True
False
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The scope of a variable declared in a for loop's initialization expression always extends beyond the body of the loop.
True
False
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The condition that is tested by a while loop must be enclosed in parentheses and terminated with a semicolon.
True
False
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The update expression of a for loop can contain more than one statement, for example:
for(i = 5; i <= 10; i++, total+= sales)
True
False
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
You may nest while and do-while loops but you may not nest for loops.
True
False
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
These are operators that add and subtract one from their operands.
plus and minus
++ and --
binary and unary
conditional and relational
binary and ternary
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Something within a while loop must eventually cause the condition to become false or a(n) __________ results.
null value
infinite loop
unexpected exit
compiler error
None of these
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Kuizi 14 - Web

Quiz
•
10th Grade - University
20 questions
Programming Concepts in C - Quiz-II

Quiz
•
University
19 questions
Technotsav'23

Quiz
•
University
20 questions
Quizz C++ ^_^

Quiz
•
University
15 questions
Bootcamp Day 3 - Java Array

Quiz
•
University
20 questions
PRA UAS - Dasar Dasar Pemrograman 2023

Quiz
•
University
20 questions
Python Basics 4

Quiz
•
University
12 questions
Lógica Programação

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University