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

Assignment 1

This document contains a multiple choice quiz about problem solving concepts in computer science. It has 7 questions testing skills like identifying correct code, evaluating expressions, reading pseudocode, and interpreting flowcharts.

Uploaded by

Qusai Alami
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Assignment 1

This document contains a multiple choice quiz about problem solving concepts in computer science. It has 7 questions testing skills like identifying correct code, evaluating expressions, reading pseudocode, and interpreting flowcharts.

Uploaded by

Qusai Alami
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

4 Marks

King Abdullah II School of Information Technology


Computer Skills for Medical Students
Assignment 1: Problem Solving
Choose the correct answer for each of the following questions:

1. Which of the following assignment statements is incorrect?


a. A+3=b b. X=12 c. M=A+2 d. F=C

2. What is the value of X after solving the following equation?


X = ((5 ^ 2 / 5) ^2 + 5) - 10 * 4 / 2 + 12 mod 4 -1

a. 11 b. 5 c. 3 d. 9

3. What is the value of Y after solving the following expression?


Y= Not 15 Mod 5 = 24/6 And 50 / 2 >= 5 ^ 2 And Not True

a. False b. True c. 5 d. -1

4. What is the output for the following pseudo code?

a. 5 5 5 5 4 b. 5 5 5 5 c. 5 5 5 5 5 4 d. 5 5 5 4

5. Which of the following pseudo code will read a number and then print whether it’s Odd or Even
Number?
a. 1. Input x b. 1. Input x c. 1. Input x d. None of them
2. if x mod 2 = 0 2. if x mod 2 = 0 then 2. if x mod 2 =0 then
then Print “x is Odd” Print “x is Even” else
Print “x is Even” 3. Print “x is Even” Print “x is Odd”
3. Print “x is Odd” 4. end 3. end
4. end

1
6. What is the output for the following flowchart?

a. Large Good 10 b. Small Good 10 c. Small Good d. Large Good

7. What is the equivalent Pseudo Code for the flowchart in question 6?

2
8. What is the output for the following flowchart?

You might also like