Progdas-Q2-2024-1

Quiz
•
Computers
•
University
•
Easy
Richard Harryson
Used 13+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement about program control in C++ is TRUE?
Program control only manages the sequence of function calls
Program control can alter the order in which statements are executed
Program control is used solely for looping structures
Program control only affects the flow of main() function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a selection statement allow a program to do?
To repeat a set of instructions a specific number of times
To decide which of several actions to take based on a condition
To terminate the execution of a loop or function
To store values that will be used in later operations
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which characteristic distinguishes a switch statement from an if statement in C++?
An if statement is less versatile than a switch statement for multiple options
An if statement can only evaluate simple conditions
A switch statement can evaluate complex boolean expressions
A switch statement is restricted to comparing integral values
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operators is used to check for equality in a C++ conditional statement?
=
==
&&
||
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which selection structure allows you to evaluate multiple conditions, where each condition can lead to a different block of code being executed?
if
switch
for
while
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid condition to be used in a switch statement in C++?
An integer constant
A char literal
A floating-point value
An integral expression
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator combination is correctly used to check if two conditions are both true in a C++ if statement?
&&
||
==
><
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Midterm Exam

Quiz
•
University
20 questions
AWD - Prelim Quiz

Quiz
•
University
17 questions
Python Loops

Quiz
•
University
25 questions
Java Review

Quiz
•
9th Grade - University
20 questions
C Quest 2.0

Quiz
•
University
15 questions
C++Arrays Loops and Functions Review

Quiz
•
University
15 questions
Python Basics

Quiz
•
University
20 questions
PHP First Internal Practical Viva

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University