下载后可任意编辑C++ Examination: Wednesday 1st December 2024《C++语言程序设计考题》Question 1 (5 marks)a
What is the binary value of the decimal 7
(10 进制中的 7 表示为二进制,结果为多少)b
What is the hexadecimal value of the decimal 16
(10 进制中的 16 表示为 16 进制,结果为多少)c
What is the binary value 00110101 as a decimal
(二进制数 00110101 对应的十进制是多少)d
What is the value of the binary sum 00101 + 00011
(两个二进制数 00101 和 00011 相加的结果是多少)(注意:结果用二进制表示)e
What is the value of the hexadecimal multiplication 2 x 10
(十六进制数 2 和 10 相乘的结果是多少)(注意:结果用十六进制表示)Question 2 (5 marks)Using the ASCII table below, what is the value of the hexadecimal sequence “43 2B 2B 20 45 78 61 6D 21”
根据下面的 ASCII 码表,写出十六进制序列“43 2B 2B 20 45 78 61 6D 21”的结果2030040@50P60`70p21
31141A51Q61a71q22"32242B52R62b72r23#33343C53S63c73s24$34444D54T64d74t25%35545E55U65e75u26&36646F56V