Preskoči na glavni sadržaj
Prijava
Sign up for FREE
arrow_back
Biblioteka

ICS FALL SEMESTER FINAL EXAM 2025

star
star
star
star
star
Posljednje ažuriranje 6 months ago
51
Unit 2 Test Questions
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
1
1
Unit 3 Test Questions
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
1
Obavezno
1
Obavezno
1
Unit 4 Test Questions
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Unit 6 Test Questions
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Obavezno
1
Final Section
Obavezno
1
1
1
1
1
1
Pitanje 1
1.

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

Pitanje 2
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?

Pitanje 3
3.

Match the flowchart symbol with its meaning.

Stavka koja se može prevućiarrow_right_altOdgovarajuća stavka
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

Pitanje 4
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.

Pitanje 5
5.

What is the decimal value of binary 10110?

Pitanje 6
6.

Convert binary number 11100 to decimal.

Pitanje 7
7.

Convert decimal number 25 to binary.

Pitanje 8
8.

How many states can a 6-bit sequence represent?

Pitanje 9
9.

Why was Unicode created after ASCII?

Pitanje 10
10.

Which CAN be represented in ASCII?

Pitanje 11
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.)

Pitanje 12
12.

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

Pitanje 13
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?

Pitanje 14
14.

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

Pitanje 15
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?

Pitanje 16
16.

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

Pitanje 17
17.

Identify the syntax error in this code:

from time import sleep

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

Pitanje 18
18.

In Python, what can a string contain?

Pitanje 19
19.

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

Pitanje 20
20.

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

Pitanje 21
21.

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

Pitanje 22
22.

Which of the following is a comment?

Pitanje 23
23.

What is the output of this code:

name="Garry"

name="Sam"

print(name)

Pitanje 24
24.

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

Pitanje 25
25.

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

Pitanje 26
26.

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

Pitanje 27
27.

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

Pitanje 28
28.

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

num1 = input()

num2 = input()

result = num1 + num2

print(result)

Pitanje 29
29.

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

Pitanje 30
30.

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

Pitanje 31
31.

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

Pitanje 32
32.

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

Pitanje 33
33.

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

num = 10 * 3 % 2 - 5

Pitanje 34
34.

What is the value of num in the following code?

num = 5 ** 2 + 3

Pitanje 35
35.

What is the value of num in the following code?

num = 18 % 7

Pitanje 36
36.

What is the value of num in the following code?

num = 5 / 2 - 1

Pitanje 37
37.

What will be the data type of num?

num = 5 // 2

Pitanje 38
38.

What will be the data type of num?

num = 5 / 2

Pitanje 39
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!")

Pitanje 40
40.

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

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

decades_old = age / 10

Pitanje 41
41.

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

Pitanje 42
42.

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

Pitanje 43
43.

How will you know when a logic error is occurring?

Pitanje 44
44.

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

Pitanje 45
45.

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

Pitanje 46
46.

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

Given:

a = 10
b = 3
c = "10"

Pitanje 47
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"

Pitanje 48
48.

What does the following code print?

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

Pitanje 49
49.

Assume the user enters: 19

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

What is printed?

Pitanje 50
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")

Pitanje 51
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)