wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Activity 1: practice for final exam

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

A system is defined as:

a)

A single software program

b)

A collection of related components that interact to perform a task

c)

Hardware only

d)

A database and a network

2.

Which of the following is NOT a participant in starting a systems project?

a)

Users

b)

Management

c)

Technical staff

d)

Competitors

3.

The SDLC consists of how many phases?

a)

4

b)

5

c)

6

d)

7

4.

Which SDLC phase involves feasibility studies and proposing solutions?

a)

Preliminary Investigation

b)

System Design

c)

Implementation

d)

Maintenance

5.

A data flow diagram is mostly created during which phase?

a)

Implementation

b)

Requirements & System Analysis

c)

Maintenance

d)

Coding

6.

Which SDLC phase includes prototyping and defining inputs/outputs?

a)

Implementation

b)

System Design

c)

Development

d)

Maintenance

7.

Testing individual parts of the system independently is called:

a)

System testing

b)

Beta testing

c)

Unit testing

d)

Acceptance testing

8.

Which implementation strategy runs both old and new systems together?

a)

Direct

b)

Parallel

c)

Pilot

d)

Random

9.

CASE tools are used to:

a)

Play music

b)

Support SDLC phases using automated tools

c)

Replace programmers

d)

Store passwords

10.

Upper CASE tools are mainly used in:

a)

Planning, analysis, and design stages

b)

Implementation only

c)

Hardware installation

d)

Documentation only

11.

Which of the following is a valid Python variable name?

a)

2name

b)

my-name

c)

user_age

d)

user age

12.

What is the output of print(type(3.14))?

a)

b)

c)

d)

13.

input() always returns data as:

a)

int

b)

float

c)

string

d)

boolean

14.

Which operator performs floor division?

a)

/

b)

//

c)

%

d)

**

15.

What does 'Hello' * 3 output?

a)

Hello3

b)

3Hello

c)

HelloHelloHello

d)

Error

16.

Which data structure stores key–value pairs?

a)

Set

b)

Tuple

c)

Dictionary

d)

List

17.

Which collection type does NOT allow duplicates?

a)

List

b)

Set

c)

Dictionary

d)

Tuple

18.

Tuples are different from lists because tuples are:

a)

Faster

b)

Immutable

c)

Only numeric

d)

Unordered

19.

Which function adds an item to the end of a list?

a)

add()

b)

append()

c)

push()

d)

insert_last()

20.

Given x = 10, def demo(): x = 5, what is printed by print(demo(), x)?

a)

5 5

b)

5 10

c)

10 5

d)

Error

21.

Strings in Python are:

a)

Mutable

b)

Immutable

c)

Numerical

d)

Stored in lists only

22.

Which slice reverses a string s?

a)

s[::-2]

b)

s[1:-1]

c)

s[::-1]

d)

s[0:-1]

23.

What happens if you access an index beyond string length?

a)

Returns empty string

b)

IndexError

c)

Prints None

d)

Ignores it

24.

Which loop is best when you don't know the number of repetitions in advance?

a)

for

b)

while

c)

foreach

d)

until

25.

Which keyword exits a loop immediately?

a)

skip

b)

continue

c)

break

d)

stop

26.

The else block in a loop runs only when:

a)

The loop runs once

b)

Loop finishes without break

c)

Loop has a continue

d)

There is no if inside

27.

Which statement is TRUE?

a)

Functions cannot return values

b)

Functions make code reusable and organized

c)

Python has no functions

d)

return is optional but always runs automatically

28.

In a function, variables defined inside are:

a)

Global

b)

Local

c)

Immutable

d)

Stored in files

29.

What is the correct way to define a function?

a)

function add()

b)

def add():

c)

create add()

d)

new add()

30.

Lambda functions are:

a)

Multi-line named functions

b)

Small anonymous one-line functions

c)

Used only in loops

d)

Cannot return values