NEW
Font size
WorksheetsActivity 1: practice for final exam
Total questions: 30
Worksheet time: 15mins
A system is defined as:
A single software program
A collection of related components that interact to perform a task
Hardware only
A database and a network
Which of the following is NOT a participant in starting a systems project?
Users
Management
Technical staff
Competitors
The SDLC consists of how many phases?
4
5
6
7
Which SDLC phase involves feasibility studies and proposing solutions?
Preliminary Investigation
System Design
Implementation
Maintenance
A data flow diagram is mostly created during which phase?
Implementation
Requirements & System Analysis
Maintenance
Coding
Which SDLC phase includes prototyping and defining inputs/outputs?
Implementation
System Design
Development
Maintenance
Testing individual parts of the system independently is called:
System testing
Beta testing
Unit testing
Acceptance testing
Which implementation strategy runs both old and new systems together?
Direct
Parallel
Pilot
Random
CASE tools are used to:
Play music
Support SDLC phases using automated tools
Replace programmers
Store passwords
Upper CASE tools are mainly used in:
Planning, analysis, and design stages
Implementation only
Hardware installation
Documentation only
Which of the following is a valid Python variable name?
2name
my-name
user_age
user age
What is the output of print(type(3.14))?
input() always returns data as:
int
float
string
boolean
Which operator performs floor division?
/
//
%
**
What does 'Hello' * 3 output?
Hello3
3Hello
HelloHelloHello
Error
Which data structure stores key–value pairs?
Set
Tuple
Dictionary
List
Which collection type does NOT allow duplicates?
List
Set
Dictionary
Tuple
Tuples are different from lists because tuples are:
Faster
Immutable
Only numeric
Unordered
Which function adds an item to the end of a list?
add()
append()
push()
insert_last()
Given x = 10, def demo(): x = 5, what is printed by print(demo(), x)?
5 5
5 10
10 5
Error
Strings in Python are:
Mutable
Immutable
Numerical
Stored in lists only
Which slice reverses a string s?
s[::-2]
s[1:-1]
s[::-1]
s[0:-1]
What happens if you access an index beyond string length?
Returns empty string
IndexError
Prints None
Ignores it
Which loop is best when you don't know the number of repetitions in advance?
for
while
foreach
until
Which keyword exits a loop immediately?
skip
continue
break
stop
The else block in a loop runs only when:
The loop runs once
Loop finishes without break
Loop has a continue
There is no if inside
Which statement is TRUE?
Functions cannot return values
Functions make code reusable and organized
Python has no functions
return is optional but always runs automatically
In a function, variables defined inside are:
Global
Local
Immutable
Stored in files
What is the correct way to define a function?
function add()
def add():
create add()
new add()
Lambda functions are:
Multi-line named functions
Small anonymous one-line functions
Used only in loops
Cannot return values
