Twa kɔ nsɛm atitiriw so
Log in
Sign up for FREE
arrow_back
Laabri

ICS FALL SEMESTER FINAL EXAM 2025

star
star
star
star
star
Last updated 6 months ago
51 Nsɛmmisa
Unit 2 Test Questions
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
1
1
Unit 3 Test Questions
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
1
Ɛhia
1
Ɛhia
1
Unit 4 Test Questions
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Unit 6 Test Questions
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Ɛhia
1
Final Section
Ɛhia
1
1
1
1
1
1
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

A student notices similar patterns in different word problems. Which computational thinking pillar does this represent?

Asemmisa {{asɛmmisaAhyɛnsode}}
2.

Scenario:

You are asked to test all the numbers from 1 through 20 to determine which ones are even. To do this, you create a step-by-step process:

  1. Start with the number 1.

  2. Divide the number by 2.

  3. If the remainder is 0, label the number as even.

  4. Move to the next number.

  5. Repeat until you reach 20.

Question:
Which Computational Thinking strategy best describes this process?

Asemmisa {{asɛmmisaAhyɛnsode}}
3.

Match the flowchart symbol with its meaning.

Draggable itemarrow_right_altCorresponding Item
arrow_right_alt

Terminal (Start/End)

arrow_right_alt

Process

arrow_right_alt

Decision

arrow_right_alt

Input/Output

arrow_right_alt

Flow line

arrow_right_alt

Subroutine

Asemmisa {{asɛmmisaAhyɛnsode}}
4.

Scenario:

A simple program asks the user to choose heads or tails and enter their choice. The program then randomly generates either heads or tails. Next, the user’s choice is compared to the random result. If the two match, the program displays “You won”. If they do not match, the program displays “You lost.”

Select the correct flowchart from the options shown below that represents this program.

Asemmisa {{asɛmmisaAhyɛnsode}}
5.

What is the decimal value of binary 10110?

Asemmisa {{asɛmmisaAhyɛnsode}}
6.

Convert binary number 11100 to decimal.

Asemmisa {{asɛmmisaAhyɛnsode}}
7.

Convert decimal number 25 to binary.

Asemmisa {{asɛmmisaAhyɛnsode}}
8.

How many states can a 6-bit sequence represent?

Asemmisa {{asɛmmisaAhyɛnsode}}
9.

Why was Unicode created after ASCII?

Asemmisa {{asɛmmisaAhyɛnsode}}
10.

Which CAN be represented in ASCII?

Asemmisa {{asɛmmisaAhyɛnsode}}
11.

Scenario:
You want to send a text message to a friend in Spanish. Your message includes characters like á, ñ, ü.

Question:
Why is Unicode necessary when sending this message? (Select all that apply.)

Asemmisa {{asɛmmisaAhyɛnsode}}
12.

Unicode is important in global communication because it allows computers to consistently represent and display characters from many different languages.

Asemmisa {{asɛmmisaAhyɛnsode}}
13.

If you wanted to ensure that sensitive company data remains unreadable even if a laptop is stolen, which type of utility software would be most critical?

Asemmisa {{asɛmmisaAhyɛnsode}}
14.

Why do computers require more precise instructions than humans when following a set of directions?

Asemmisa {{asɛmmisaAhyɛnsode}}
15.

Grace Hopper's vision for programming languages was initially rejected because people believed computers could only do arithmetic. What does this historical example demonstrate about technological innovation?

Asemmisa {{asɛmmisaAhyɛnsode}}
16.

If translators (compilers and interpreters) did not exist, what would be the primary consequence for modern software development?

Asemmisa {{asɛmmisaAhyɛnsode}}
17.

Identify the syntax error in this code:

from time import sleep

print("Program starting...")
sleep(2)
print("Done!)

Asemmisa {{asɛmmisaAhyɛnsode}}
18.

In Python, what can a string contain?

Asemmisa {{asɛmmisaAhyɛnsode}}
19.

Which of the following print statements is properly formatted with a string? Select all that apply.

Asemmisa {{asɛmmisaAhyɛnsode}}
20.

When the code below is run, what will take place?

Asemmisa {{asɛmmisaAhyɛnsode}}
21.

Which of the following indicates that your file has been saved as a Python file?

Asemmisa {{asɛmmisaAhyɛnsode}}
22.

Which of the following is a comment?

Asemmisa {{asɛmmisaAhyɛnsode}}
23.

What is the output of this code:

name="Garry"

name="Sam"

print(name)

Asemmisa {{asɛmmisaAhyɛnsode}}
24.

In the context of variables, what does 'assignment' mean?

Asemmisa {{asɛmmisaAhyɛnsode}}
25.

Which naming convention rule is violated in this variable name: 'my score'?

Asemmisa {{asɛmmisaAhyɛnsode}}
26.

When you use the input() function in Python, what data type is always returned regardless of what the user enters?

Asemmisa {{asɛmmisaAhyɛnsode}}
27.

Why does adding two input values together result in concatenation instead of mathematical addition?

Asemmisa {{asɛmmisaAhyɛnsode}}
28.

What will happen when this code executes if a user enters 5 and 3?

num1 = input()

num2 = input()

result = num1 + num2

print(result)

Asemmisa {{asɛmmisaAhyɛnsode}}
29.

What is the correct way to convert user input to an integer?

Asemmisa {{asɛmmisaAhyɛnsode}}
30.

What does the int() casting function change the string "7" to?

Asemmisa {{asɛmmisaAhyɛnsode}}
31.

What happens when a runtime error occurs in a Python program?

Asemmisa {{asɛmmisaAhyɛnsode}}
32.

If you want to convert the string "3.14" to a decimal number, which function should you use?

Asemmisa {{asɛmmisaAhyɛnsode}}
33.

What will be the order of operations in the following code?

num = 10 * 3 % 2 - 5

Asemmisa {{asɛmmisaAhyɛnsode}}
34.

What is the value of num in the following code?

num = 5 ** 2 + 3

Asemmisa {{asɛmmisaAhyɛnsode}}
35.

What is the value of num in the following code?

num = 18 % 7

Asemmisa {{asɛmmisaAhyɛnsode}}
36.

What is the value of num in the following code?

num = 5 / 2 - 1

Asemmisa {{asɛmmisaAhyɛnsode}}
37.

What will be the data type of num?

num = 5 // 2

Asemmisa {{asɛmmisaAhyɛnsode}}
38.

What will be the data type of num?

num = 5 / 2

Asemmisa {{asɛmmisaAhyɛnsode}}
39.

What will be the output(s) from the following code?

friends = 8

family = 4

total_people = friends + family

if total_people >= 10:

print("too many people for the party")

if total_people < 5:

print("not enough people for the party")

if friends > 3:

print("You have a lot of friends!")

if family > 5:

print("You have a big family!")

Asemmisa {{asɛmmisaAhyɛnsode}}
40.

The following code has an error. How can you fix it?

age = input("What is your age?")

decades_old = age / 10

Asemmisa {{asɛmmisaAhyɛnsode}}
41.

Which of the following best describe what arithmetic operators are in python?

Asemmisa {{asɛmmisaAhyɛnsode}}
42.

Which of the following best describe what relational operators are in python?

Asemmisa {{asɛmmisaAhyɛnsode}}
43.

How will you know when a logic error is occurring?

Asemmisa {{asɛmmisaAhyɛnsode}}
44.

Which of the following situations would require the use of modulo?

Asemmisa {{asɛmmisaAhyɛnsode}}
45.

Which of the following situations would require the use of integer division?

Asemmisa {{asɛmmisaAhyɛnsode}}
46.

Which of the following logical expressions evaluate to True? (Select all that apply.)

Given:

a = 10
b = 3
c = "10"

Asemmisa {{asɛmmisaAhyɛnsode}}
47.

Which line of code will cause a variable-naming error?

1) total-score = 50
2) total_score = 50
3) _value1 = 10
4) student2 = "Ava"

Asemmisa {{asɛmmisaAhyɛnsode}}
48.

What does the following code print?

x = 3
y = 9
print(y % x == 0)

Asemmisa {{asɛmmisaAhyɛnsode}}
49.

Assume the user enters: 19

age = input("Age: ")
if int(age) >= 18:
    print("Adult")
if int(age) < 18:
    print("Minor")

What is printed?

Asemmisa {{asɛmmisaAhyɛnsode}}
50.

How many seconds pass before the final line prints?

from time import sleep

print("Start")
sleep(1)
if 5 > 2:
    sleep(2)
print("Done")

Asemmisa {{asɛmmisaAhyɛnsode}}
51.

What will be the output of the following code if the user enters 5 when prompted?

x = input("Enter a number: ")
y = int(x) + 3
print("The result is " + x + y)