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
10 questions
Comandos SQL

Quiz
•
University
10 questions
Kabel Jaringan dan Fungsinya

Quiz
•
10th Grade - University
10 questions
Chapter Quiz

Quiz
•
University
10 questions
Perulangan

Quiz
•
University
15 questions
Dante Level 2 Pop Quiz - dBs LISO230 Audio Networking

Quiz
•
University
10 questions
HTML + CSS + JS

Quiz
•
University
15 questions
DSA (QUIZ 7) -Greedy Algorithms and Complexity Analysis

Quiz
•
University
10 questions
MongoDB Concepts 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
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
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University