TEB2132 Lecture 3 Quiz

Quiz
•
Information Technology (IT)
•
University
•
Hard
Siti Nurlaili Karim
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is NOT a control structure in C++?
Sequence
Repetition
Execution
Selection
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the type of operator != in C++?
relational
equality
logical
expression
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A logical expression && returns 1 (true) if
Both operands are 1 (true)
Both operands are 0 (false)
One operand is 1 (true)
One operand is 0 (false)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is commonly used in an if condition to check equality in C++?
=
!=
===
==
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to exit a switch case immediately after executing a statement?
exit
break
stop
return
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if the break statement is omitted in a switch case?
Program ends immediately
Only the current case runs
Execution continues into the next case
Compilation error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types can be used in a switch statement in C++?
bool
char
float
double
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
BAB 4 | 4.1 KOD ARAHAN | SUBTOPIK 4.1.2

Quiz
•
2nd Grade - University
8 questions
Estruturas de Repetição - Parte 1

Quiz
•
University
10 questions
SWE111_quiz 2

Quiz
•
University
15 questions
BYTS ASSESSMENT

Quiz
•
University
15 questions
Tipos Redes conceptos 2

Quiz
•
University
10 questions
Web программалау бөліміне қысқаша шолу

Quiz
•
10th Grade - University
11 questions
JavaEE-servlets-jsp

Quiz
•
University
15 questions
Quiz1 MOR - IS3B

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
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
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University