

CSDC101 - Control Structure 1
Presentation
•
Other
•
University
•
Medium
Joshua Martinez
Used 4+ times
FREE Resource
55 Slides • 15 Questions
1
CSDC101 - Control Structures 1
Sequence | Selection | Repetition

2
3
4
5
6
7
8
9
10
11
12
13
14
Multiple Choice
int x = 0;
cin >> x;
cout << xx << endl;
The statement above is an example of what control structure?
Sequence
Selection
Repetition
15
16
17
18
19
20
21
Multiple Choice
What is the output of the logical expression below?
(true || false) && (!true || !false)
true
false
22
23
Multiple Choice
Which gets to be evaluated first in the expression below?
(true || false) && (!true || !false)
true
false
!true
!false
(true || false)
24
Multiple Choice
If the value of count is 0 and the value of limit is 10, evaluate if the expression below returns true or false.
(count == 0) && (limit < 20)
true
false
25
Multiple Choice
If the value of count is 0 and the value of limit is 10, evaluate if the expression below returns true or false.
count == 0 && limit < 20
true
false
26
Multiple Choice
If the value of count is 0 and the value of limit is 10, evaluate if the expression below returns true or false.
(limit > 20) || (count < 5)
true
false
27
Multiple Choice
If the value of count is 0 and the value of limit is 10, evaluate if the expression below returns true or false.
!(count == 12)
true
false
28
29
30
31
Multiple Select
Which of the following is/are true about IF statements? Check all that applies.
The only way for the body of IF statement to execute is for the condition to be TRUE.
It repeats the block of code
The body is executed first before testing the condition.
The condition is always tested before executing the body.
It executes a statement or a block of statement depending on some condition(s).
32
33
34
Multiple Choice
What is the value of x after performing the code block below?
int x = 0;
if(x>1) x = x + 1;
x = x + 2;
0
1
2
3
35
36
37
38
39
40
Multiple Choice
Which is true about if-else statements?
Both the body of If and Else will be performed regardless of the result if the condition.
Only the body of the If statement is performed if the condition is true.
Only the body of the else statement is performed if the condition is true.
The else statement requires a condition for its body to execute.
41
42
43
44
45
46
47
Multiple Choice
if x is 3, what is the output of the code snippet below?
test
run
test run
No output
48
Multiple Choice
What is the output of the code snippet below if x is 3?
test
run
test run
no output
49
50
51
52
53
54
55
56
57
58
Multiple Choice
What is the value of y if x =3?
1
2
3
4
59
60
61
62
63
64
65
66
67
68
69
Multiple Choice
If x is 2, what is the output of the code snippet?
is
a break
is a break
is a break indeed.
This is a break
70
Multiple Choice
If x is 2, what is the output of the code snippet?
is
a break
is a break
is a break indeed.
This is a break
CSDC101 - Control Structures 1
Sequence | Selection | Repetition

Show answer
Auto Play
Slide 1 / 70
SLIDE
Similar Resources on Wayground
66 questions
Wh Questions or information questions
Presentation
•
University
65 questions
L06 GDP
Presentation
•
KG
66 questions
01 - Techs Across Canada S25
Presentation
•
University
66 questions
Referencing Cite your Resources_Swinburne Harvard & APA
Presentation
•
University
67 questions
SRM Lecture 3-1 STP and Branding
Presentation
•
University
62 questions
State Supervision
Presentation
•
University
69 questions
Regional Human Rights Protection
Presentation
•
University
63 questions
0. Introduction to PMP Certification
Presentation
•
KG - University
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
Discover more resources for Other
20 questions
Disney Trivia
Quiz
•
University
10 questions
Spanish Greetings and Goodbyes!
Presentation
•
6th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
25 questions
SER and Subject Pronouns
Quiz
•
8th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
19 questions
Key Concepts in Buddhism
Quiz
•
University
0 questions
Cell Domain Basic Review (Biology)
Quiz
•
University