Cut-Off Date : Cut off Time
Total Marks :100 Duration :
Contents:
Warnings and Declaration…………………………………………………………….………………………………………………………………. 1
Part-1 (60 Marks )
Question1 ………………………….…………………………………………………………………………………………….………………………..….
Question 2 …………………………………………………………………………………………………………………………….……………….…..….
Question 3 ………….………………………………………………………………………………………………………………………………………….
Question 4 ………….………………………………………………………………………………………………………………………………………….
Part-2: (40 Marks )
Question1 ………………………….…………………………………………………………………………………………….………………………..…
Question 2 …………………………………………………………………………………………………………………………….……………….…..….
Question 3 ………….………………………………………………………………………………………………………………………………………….
Question 4 ………….………………………………………………………………………………………………………………………………………….
Plagiarism Warning:
As per AOU rules and regulations, all students are required to submit their own THE-Final work and avoid plagiarism. The AOU has implemented sophisticated techniques for plagiarism detection. You will be penalized for any act of plagiarism as per the AOU's rules and regulations.
Declaration of No Plagiarism by Student (to be signed and submitted by student with THE-Final work):
I hereby declare that this submitted THE-Final work is a result of my own efforts and I have not plagiarized any other person's work.
Name of Student : …………………………………………………..
Signature : …………………………………………………..
Date : …………………………………………………..
PART 1: Problem Solving …………………………… [60 Marks]
Question 1: (20 marks)
- Show all the steps required to convert the decimal value 155 to its binary representation and to its octal representation (4 marks).
- Show that the binary number 1111.111 what is represents in denary number (3 marks).
- Given the following expression: [8 Marks ]
If ((student GPA >= 3.5) AND (student age < 25))
Give student 20% discount
Else
Give student 10% discount
a. Complete the following truth table for the Boolean expression above.
b. What value of discount will the following students get?
- A 20 years old student whose GPA is 2.
- A 30 years old student whose GPA is 3.5
- A 25 years old student whose GPA is 4.
- A 22 years old student whose GPA is 3.8.
- Consider a ten-minute film to be displayed on a computer at 24 fps. Each frame is 400 x
500 pixels and RGB encoding is being used. What is the size of the film file in bytes, KB, MB and GB? ( 5 Marks)
Question 2: (20 marks)
A company decided to hire new employees. However, the ages of the new employees should be between 21 and 31 (inclusive).
Write an algorithm that:
- Prompts the user to enter the name and the age (as an number of a new employee.
- Then displays a message to the user if he/she is eligible to join the company.
Your algorithm should follow (exactly) the format of the following samples:
Question 3: (5 Marks)
Write an OUBUILD script by making the script select a random number between 1-50 and let the user to guess the selected number by script.
• When the green flag clicked
Make the script select a random number between 1-50
• When the [space pressed ]
- Prompt the user to enter a number the random number
- Check if this number is the guessed numbered or not
- If it is the one then display message to say “well done”
- If it is smaller display message it is low number
- If it larger display message it is too large
- The user will keep enter the value enter he guessed the number.
Hint you should use repeat_until.you guess the number
Question 4: (3 marks)
According to the following OUBuild Script find the output once we click on the green flag?
Question 5: (12 marks)
a. Assume that the list = [45, 28, 50, 18, 41, 33] write down the output of this algorithm after 3 completed cycles for the following algorithm?
i. Use bubble-sort algorithm (6 marks)
ii. Use selection sort algorithm? (6 marks)
Part Two Essay Questions … ………………………[40 Marks]
Question 1: (10 marks)
In selection, when user input condition values, what are the possible Boolean comparisons needed to determine the result.
Question 2: (10 marks)
Define the following terms and show how the relation between their definition with COVID-19 while people stay at home:-
• IoT
• HCI
• Integrity
Question 3: (10 marks)
Draw the graph for the client and service with providing service and explain it with examples ?
Question 4: (10 marks)
a. Compression is a technique which increases efficiency by removing redundancy from representations, and hence representations without redundancy cannot be compressed list these two techniques
b. Write the ratio relation between the uncompressed file size and compressed file size in a equation?
End of Assessment
Sample Solution