char , bool and Operators

char , bool and Operators

University

18 Qs

quiz-placeholder

Similar activities

BAB 4 SISTEM KOMPUTER KELAS 8

BAB 4 SISTEM KOMPUTER KELAS 8

8th Grade - University

20 Qs

Pretest Alpro Dasar

Pretest Alpro Dasar

University

20 Qs

Google Sheets Quiz - 17/09/2024

Google Sheets Quiz - 17/09/2024

University

20 Qs

Pretest 5 - PBW 2B - PHP

Pretest 5 - PBW 2B - PHP

University

20 Qs

INFORMATIKA KELAS 7A DAN TB

INFORMATIKA KELAS 7A DAN TB

7th Grade - University

15 Qs

Quiz Pengetahuan Informatika

Quiz Pengetahuan Informatika

7th Grade - University

23 Qs

2F-3 | Python Quiz | 22/11/2024

2F-3 | Python Quiz | 22/11/2024

University

20 Qs

Java Basics Quiz for CH/PT Students

Java Basics Quiz for CH/PT Students

University

16 Qs

char , bool and Operators

char , bool and Operators

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

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

Media Image

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?