Final Exam-answer
Final Exam-answer
Informatiques (2023-2024)
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
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
19. 8B = 64 bits
= 8x8 = 64
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)