

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
65 questions
Membrane transport
Presentation
•
University
65 questions
Exposure and Vulnerability (Cycles 2 and 3)
Presentation
•
12th Grade
64 questions
Copy of G3_U7_L1_22-23
Presentation
•
KG - Professional Dev...
61 questions
Trivia Night
Presentation
•
KG - University
63 questions
All You Have To Know About TKA Bahasa Inggris
Presentation
•
12th Grade
65 questions
Accommodations Training Spring 2024 (Resolution Agreement)
Presentation
•
Professional Development
66 questions
CE 123 Kejahatan Siber dan Informasi
Presentation
•
University
64 questions
Unit 4 (Reading and Writing )
Presentation
•
University
Popular Resources on Wayground
20 questions
STAAR Review Quiz #3
Quiz
•
8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
6 questions
Marshmallow Farm Quiz
Quiz
•
2nd - 5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
12 questions
What makes Nebraska's government unique?
Quiz
•
4th - 5th Grade