
char , bool and Operators

Quiz
•
Information Technology (IT)
•
University
•
Medium
Fatma Metwally
Used 4+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. What is the size of a char datatype in C++?
16 bits
c) 1 byte
1 kilobyte
2 bytes
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. What is the value of the ASCII code for the character 'A'?
64
66
65
67
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. What will be the output of the following code?
3
a) 67
C
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. Which of the following is a valid bool value in C++?
'true'
1
"true"
True
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. Which operator is used to check if two values are equal in C++?
!=
==
=
<=
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. What is the correct result of the following expression?
15
21
11
7
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
8. What does the sizeof operator return for the bool datatype?
2 bytes
a) 1 byte
8 bytes
4 bytes
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Quiz Pemrograman Python

Quiz
•
10th Grade - University
15 questions
Quiz Informatika Genap KLs 7

Quiz
•
7th Grade - University
20 questions
sistem komputer kelas 9

Quiz
•
9th Grade - University
20 questions
quiz1B1

Quiz
•
7th Grade - University
23 questions
C++ Functions Quiz

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

Quiz
•
University
17 questions
UTS - SIB

Quiz
•
University
15 questions
PRE2 - Sw1

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