CS 7643 QUIZ 1 CERTIFICATION EVALUATION
2026 SOLVED QUESTIONS
◉ In Java, C or C++ code, when a number begins with a leading 0x,
what do you know about that number: (example: int zzz =0x12;)
Answer: Hexadecimal
◉ In Java, C or C++ code, when a number begins without a prefix,
what do you know about that number: (example: int zzz =12;)
Answer: Decimal
◉ How many binary digits are needed to represent one hexadecimal
digit? Answer: 4
◉ In C, in your writeline function, you have a loop of printing
characters terminating when processing what character: Answer: \0
◉ Should you print a NULL character in writeline? Answer: No
◉ Write the hexadecimal value that represents all 1s for 64 bits
Answer: 0xFFFFFFFFFFFFFFFF
, ◉ Assuming a 4 bit unsigned word, convert the binary number 0101
to hexadecimal: Answer: 0x5
◉ Assuming a 4 bit unsigned word, convert the binary number 1000
to hexadecimal: Answer: 0x8
◉ Assuming a 4 bit unsigned word, convert the binary number 1111
to hexadecimal: Answer: 0xF
◉ In your baseout function, when processing a small positive
number, you have a loop of processing that number terminating
when what condition is met? Answer: When the quotient is 0
◉ Assuming the user inputs a short valid string, in your getaline
function, you have a loop of processing characters terminating when
processing what character: Answer: \n
◉ In C, what is the minimum character array size need to store the
string: "ABC"? Answer: 4
◉ Convert to hexadecimal: 0000 1100 0000 1111 1111 1110 1110
0000 Answer: 0x0C0FFEE0
◉ Convert 0xd to binary: Answer: 1101
2026 SOLVED QUESTIONS
◉ In Java, C or C++ code, when a number begins with a leading 0x,
what do you know about that number: (example: int zzz =0x12;)
Answer: Hexadecimal
◉ In Java, C or C++ code, when a number begins without a prefix,
what do you know about that number: (example: int zzz =12;)
Answer: Decimal
◉ How many binary digits are needed to represent one hexadecimal
digit? Answer: 4
◉ In C, in your writeline function, you have a loop of printing
characters terminating when processing what character: Answer: \0
◉ Should you print a NULL character in writeline? Answer: No
◉ Write the hexadecimal value that represents all 1s for 64 bits
Answer: 0xFFFFFFFFFFFFFFFF
, ◉ Assuming a 4 bit unsigned word, convert the binary number 0101
to hexadecimal: Answer: 0x5
◉ Assuming a 4 bit unsigned word, convert the binary number 1000
to hexadecimal: Answer: 0x8
◉ Assuming a 4 bit unsigned word, convert the binary number 1111
to hexadecimal: Answer: 0xF
◉ In your baseout function, when processing a small positive
number, you have a loop of processing that number terminating
when what condition is met? Answer: When the quotient is 0
◉ Assuming the user inputs a short valid string, in your getaline
function, you have a loop of processing characters terminating when
processing what character: Answer: \n
◉ In C, what is the minimum character array size need to store the
string: "ABC"? Answer: 4
◉ Convert to hexadecimal: 0000 1100 0000 1111 1111 1110 1110
0000 Answer: 0x0C0FFEE0
◉ Convert 0xd to binary: Answer: 1101