Question 11 Tco 1 Number System Radix Two Points 4 Hexadecimal Binary Decimal Octal Questi Q10264733

Question 1.1. (TCO 1) Which number system has a radix of two?(Points : 4)

Hexadecimal

Binary

Decimal

Octal

Question 2.2. (TCO 1) Convert 24 base 10 to hexadecimal. (Points: 4)

1A

18

20

30

Question 3.3. (TCO 1) If FF h is converted to decimal, theresult is _____. (Points : 4)

100

200

255

256

Question 4.4. (TCO 1) Convert decimal 103 to an 8-bit binarynumber. (Points : 4)

1110 0100

0100 0000

0110 0111

0110 0101

Question 5.5. (TCO 1) Convert decimal 129 to an 8-bit binarynumber. (Points : 4)

1000 0011

1000 0000

1001 0001

1000 0001

Question 6.6. (TCO 1) The number represented by the relationship(1 x 22) + (0 x 21) + (1 x 20) equals _____. (Points : 4)

101

4

100

5

Question 7.7. (TCO 1) Convert the 8-bit binary 0010 0111 tooctal. (Points : 4)

27

39

47

103

Question 8.8. (TCO 1) Convert 8-bit binary 1100 0011 tohexadecimal. (Points : 4)

63

B3

C3

3C

Question 9.9. (TCO 2) Which of the following commands willdisplay the numerical difference between the numbers 3 and 1?(Points : 10)

input 3-1

print ‘3-1’

print 3-1

input 2

Question 10.10. (TCO 2) Which of the following Pythoninteractive mode operations will always result in a 100? (Points :10)

>>> 98++2

>>> 100%

>>> (200 – 2) * 50

>>> 200 – 2 * 50

Question 11.11. (TCO 2) Assuming variable Number1 has been setto a 3 and Number2 has been set to 4, which definition would givethe stated value of Out? (Points : 10)

“Out = Number1 + Number2” would make Out equal to 6.

“Out = Number1 * Number2” would make Out equal to 7.

“Out = 2 * Number1 + Number2” would make Out equal to 11

“Out = Number1 * Number2” would make Out equal to 12.

Question 12.12. (TCO 2) Which of the following statements wouldaccept an input from the user and assign its value to the variableEntry1? (Points : 10)

Entry1 = input(‘Enter a value: ‘)

Entry1 = input(/Enter a value: /)

entry1 = input(‘Enter a value: ‘)

input (‘Entry1’,”Enter a value: “)

Question 13.13. (TCO 3) How many times will the code print thevariable FirstName?

Line 1: a = 0

Line 2: while True:

Line 3: a = a + 1

Line 4: print FirstName

Line 5: if a = 5:

Line 6: break (Points : 10)

Four

Five

Six

Zero

Question 14.14. (TCO 3) Indicate the value of x%2 when x = 2.(Points : 10)

0

1

2

9

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *