0% found this document useful (0 votes)
4 views

Final Exam-answer

The document is a final exam for an Informatics course covering topics in Word, Excel, number systems, units conversion, and Python programming. It consists of multiple-choice questions, calculations, and programming tasks that assess students' understanding of the material. The exam is divided into three parts, with varying point values assigned to each section.

Uploaded by

Da Vy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Final Exam-answer

The document is a final exam for an Informatics course covering topics in Word, Excel, number systems, units conversion, and Python programming. It consists of multiple-choice questions, calculations, and programming tasks that assess students' understanding of the material. The exam is divided into three parts, with varying point values assigned to each section.

Uploaded by

Da Vy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Final Exam-Answer

Informatiques (2023-2024)

Part 1: Word and Excel (20 points)


Circle the correct answer to the question below. Each question has 1 correct answer.

1. A name zone of memory used for storing information in Computer is definition of:
a. File b. Folder c. Ms Word d. Ms Excel
2. What is a difference between MS Word and MS Excel?
a. Copy/Paste b. Multiple sheets c. Formula d. Image
3. What is shortcut to change font?
a. Ctrl+F b. Ctrl+Shift+F c. Ctrl+F2 d. Ctrl+Shift+F2

4. What is this tool used for?


a. Numbered list b. Bullets list c. Increase indent d. Decrease indent
5. Press ____ to increase font size in the MS Word document.
a. Ctrl+O b. F2 c. Ctrl+Shift+> d. Ctrl+Shift+<
6. Address C7 in MS Excel means:
a. Row C, Column 7 b. Column C, Row 7 c. Col C with 7 rows d. Row C with 7 cols
7. In Microsoft Excel, Image can be placed________.
a. Inside a cell b. Freely anywhere c. From Smart Art d. Excel can’t put image
8. Syntax referencing value from another cell B2 is _______?
a. =B2 b. =VAL(B2) c. =INDEX(B2) d. =VALUE(B2)
9. ____ type of chart is good for comparing 2 or more series of data.
a. Column chart b. Single histogram c. Donut chart d. Pie chart
10. Which one is equivalent value in binary number of a number (-12)10?
a. (00 1100)2 b. (00 1010)2 c. (11 0110)2 d. (11 0100)2
11. How many bytes used for storing text “ តិចណូ
” in File?

a. 5 b. 10 c. 15 d. 20
12. How many bytes need to storing text “I.T.C” in ASCII?
a. 3 b. 5 c. 6 d. 10

Part 2: Number system and Units conversion (30 points)


Calculate and answer the following questions (also need to write down the calculation):

13. (0101011)2 =( 43 )10


= 0+1x2 +0+1x2 +0+1x21+1x20 = 32+8+2+1 = 43
5 3

14. (-5)10 =( 11 1011 )2


= 00 0101
= 1st Complement: 11 1010 = 2nd Complement: 11 1010 + 1 = 11 1011
15. (DAD)16 =( 3501 )10
= Dx16 + Ax16 + Dx160
2 1

= 13x256+10x16+13x1 = 3328 + 160 + 13 = 3501


16. (79)8 =( ERROR )16 Some common values
210 = 1 024
220 = 1 048 576
17. (AB)16 =( 253 )8 230 = 1 073 741 824
= 1010 1011 161 = 16
= 010 101 011 = 2 5 3 162 = 256
163 = 4 096
18. 1MB = 1 073 741 824 Bytes
= 1 x 230 = 1 x 1073741824

19. 8B = 64 bits
= 8x8 = 64

20. 7 500KB ≈ 0.007 GB


≈ 7500 / 220 ≈ 0.007

21. 1 250 000Hz = 0.00125 GHz


= 1.25x10 /10 = 1.25x10-3
6 9

22. 0.00028PHz = 280 000 000 000 Hz


= 28x10 x10 = 28x10
-5 15 10

Part 3: Python programming language (50 points)


Answer the following questions (some questions need to be written in Python code).

23. Python code used to display a number on screen is: (3 points)


a. echo b. display c. print d. input
24. Python code used to wait user input a num with a label is: (3 points)
a. int(input(label)) b. input(int(label)) c. int(print(label)) d. print(int(label))
25. Python shorthand operator a-=2 means: (3 points)
a. a=a-2 b. a=-2 c. a=2-a d. Syntax ERROR
26. Python code used to check for an empty list (variable named lst): (3 points)
a. if count(lst)==0 : b. if lst.count()==0 : c. if len(lst)==0: d. if size(lst)==0 :
27. Given a list of numbers [7,3,5,9,6,1,8,2]. The number 1 is at index: (3 points)
a. 5 b. 6 c. 7 d. 8
28. Fill in missing codes in the following python program? (10 points)
Code: Output:
txt = input('Input a sentence: ') Input a sentence: សួស�ី ពី សល តិចណួ
num = int(input('Input a number: ')) Input a number: 3
lst = txt.split(' ') Word at position 3 is តិចណួ
cnt = len(lst)
if 0 <= num < cnt :
print('Word at position',num,'is', lst[num])
else:
print('Position',num,'is out of range ',cnt)
29. What is the output of the following python code? (10 points)
Suppose that user inputs txt= [email protected]

txt = input('Input a sentence: ')


if len(txt) == 0 :
print('E','M','P','T','Y')
else:
for c in txt:
print(c,end=' ')
print('\n','--- Thank you --- ')

Complete the output below:


Input a sentence: [email protected]
[email protected]
--- Thank you ---

30. Write a python program that lets the user input the number of lines and then display a
triangle built of stars. (10 points)
Output example:
Input number of lines: 5 lines = int(input('Input number of lines: '))
* for i in range(1,lines+1):
* *
* * * print('* '*i)
* * * *
* * * * *

31. Write a python program that lets the user input 5 numbers into a list. Determines and
displays the minimum, maximum, and average of these numbers in this list. (5 points)
Output example:
Input number at position 0: 271
Input number at position 1: 25
Input number at position 2: 308
Input number at position 3: 59
Input number at position 4: 168
Min: 25
Max: 308
Average: 166.2

lst=[]
for i in range(0,5):
lst.append(int(input(f'Input number at position {i}: ')))
lst.sort()
avg = 0
for i in lst:
avg += i
avg /= len(lst)
print('Max:',lst[0])
print('Min:',lst[4])
print('Average:',avg)

You might also like