
Session 04: Branching statements

Quiz
•
Information Technology (IT)
•
University
•
Medium
academy rikkei
Used 42+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Từ khóa nào được sử dụng để định nghĩa một câu lệnh if trong C?
else
switch
case
if
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Từ khóa nào được sử dụng để cung cấp nhánh thay thế trong một câu lệnh if?
switch
if
else
case
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn mã sau sẽ in ra gì: if (0) { printf("True"); } else { printf("False"); }?
True
False
0
1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào sau đây không phải là câu lệnh rẽ nhánh hợp lệ trong C?
if
else
goto
switch case
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào sau đây là đúng cho một câu lệnh switch?
switch { case 1: //code }
switch (expression) { case value: //code }
case (expression) { switch value: //code }
switch case (expression) { value: //code }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong một câu lệnh switch, từ khóa nào được sử dụng để định nghĩa một khối case?
if
else
case
default
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mục đích của từ khóa default trong một câu lệnh switch là gì?
Để chỉ định trường hợp đầu tiên
Để chỉ định một khối mã để thực hiện nếu không có trường hợp nào khớp
Để chỉ định trường hợp cuối cùng
Để kết thúc câu lệnh switch
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Câu hỏi bài: Ngôn ngữ lập trình bậc cao và Python

Quiz
•
University
15 questions
CMDP2063 Unix and C Programming (Revision)

Quiz
•
University
10 questions
Operasi Input & Output C++

Quiz
•
University
15 questions
Kiểm tra kiến thức về SQL

Quiz
•
11th Grade - University
13 questions
Buổi 4

Quiz
•
University
15 questions
Bài 24

Quiz
•
10th Grade - University
19 questions
TH lop 5

Quiz
•
3rd Grade - University
15 questions
Dispositivos de Red

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 Information Technology (IT)
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