#15 Representing numbers and characters

#15 Representing numbers and characters

20 Qs

quiz-placeholder

Similar activities

5th Primary .2nd Term .Theme 4. lesson 2/ W (6)

5th Primary .2nd Term .Theme 4. lesson 2/ W (6)

KG - University

17 Qs

#18 Graphs and Trees

#18 Graphs and Trees

KG - University

20 Qs

PF Surprise Quiz-1 (AY 2024-25)

PF Surprise Quiz-1 (AY 2024-25)

KG - University

24 Qs

C++ Biến, hằng số - Cấu trúc lập trình tuần tự

C++ Biến, hằng số - Cấu trúc lập trình tuần tự

KG - University

20 Qs

Microprocessors

Microprocessors

KG - University

22 Qs

Binary Numbers, Colors and Data

Binary Numbers, Colors and Data

KG - University

15 Qs

Lembar Kerja Siswa 2

Lembar Kerja Siswa 2

KG - University

15 Qs

Chapter 2 Quiz

Chapter 2 Quiz

KG - University

20 Qs

#15 Representing numbers and characters

#15 Representing numbers and characters

Assessment

Quiz

others

Hard

Created by

Claire Buckler

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Which of these data types could never be used to somehow represent the mathematical concept of pi () in one primitive variable? You may assume its value must be given to at least 2 decimal places.
A. Character
B. Integer
C. Real
D. String

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. What is the effect of typecasting a character to an integer?
A. Numbers become numeric, e.g. '7' becomes 7, whereas non-numbers get set to 0
B. All characters have to be represented as real numbers when converted as there would not be enough bits if they were stored as integers
C. It will reveal the underlying numeric code assigned to it in the chosen character set
Option 4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. What is stored in a character variable?
A. Precisely 1 character
B. 0 or 1 characters
C. At least 1 character
D. A minimum of 0 characters

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. Convert the unsigned binary number 1101 to denary
A. 1101
B. 12
C. 13
D. 11

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. Convert the number 54 to 8-bit unsigned binary
A. 00111011
B. 00011011
C. 00111000
D. 00110110

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. What are the place values of unsigned binary numbers?
A. Ascending powers of 2 working left to right
B. Ascending powers of 2 working right to left
C. Descending powers of 2 working right to left
D. Multiples of 2 working right to left

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Add the following two unsigned binary numbers: 1001+ 0111
A. 1111 (overflow has occurred)
11111 (underflow has occurred)
10000 (underflow has occurred)
10000 (overflow has occurred)

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?