
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
Cuestionario 1 CCNA 4

Quiz
•
University
10 questions
Pengenalan Perangkat Jaringan Komputer

Quiz
•
10th Grade - University
15 questions
Trắc nghiệm tin CĐR-3 (c33 đến c47)

Quiz
•
University
15 questions
Network Topologies and Key Network Components

Quiz
•
10th Grade - University
10 questions
PRF192

Quiz
•
University
15 questions
Bài 25

Quiz
•
10th Grade - University
15 questions
Bài 26

Quiz
•
10th Grade - University
20 questions
ASSESMEN SUMATIF 1 KELAS XI - JARINGAN KOMPUTER & INTERNET-

Quiz
•
11th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

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

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University