WorksheetsPYTHON 1
Total questions: 10
Worksheet time: 3mins
What plays vital role in python programming?
indentation
statements
control
structure
________ is the short form of " else if " statement
nested if
el if
else
if
Which line of code produces an error?
" one"+ " 2"
3+4
"7"+'8'
'5'+ 6
x =10
if (x>0):
print(x)
the output is ?
100
1
0
10
In programming, what is iteration?
The order in which instructions are carried out
The repetition of steps within a program
A decision point in a program
Testing a program to make sure it works
FOR loops are
not part of programming
loops which run an unknown number of times
loops which run for a specific number of times
the same as if statements
A condition is
a statement that is either True or False
a list
a string
an integer
A loop repeated if the condition is true / false
If...else
While loop
Repeat loop
For loop
What is an advantage of a linear search?
it is half interval search
It only works with ordered lists
It is a simple algorithm
It is very quick
Which of the following is not a sorting algorithm?
merge sort
Long Sort
Bubble Sort
Insertion Sort
