1. What is the size of a char datatype in C++?

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
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 Quizizz
20 questions
2F-1 | Python Quiz | 14/10/2024

Quiz
•
University
20 questions
Pretest 5 - PBW 2B - PHP

Quiz
•
University
20 questions
Kelas 9 - Halaman 23 (UH Bab 1)

Quiz
•
9th Grade - University
17 questions
Problem Solving & Programming Design (part 4)

Quiz
•
University
15 questions
PROG2013_Quiz_Unit1a

Quiz
•
University
20 questions
2F-3 | Python Quiz | 22/11/2024

Quiz
•
University
16 questions
Java Basics Quiz for CH/PT Students

Quiz
•
University
20 questions
BAB 4 SISTEM KOMPUTER KELAS 8

Quiz
•
8th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade