✦ Scientech Easy
Online Basic Python Test
📄
30
Questions
⏱
20 min
Time Limit
⭐
4
Marks / Q
−
1
Negative
✅
70%
Pass Mark
‣ Read each question carefully before answering.
‣ Use the palette to navigate and bookmark questions.
‣ Wrong answers carry negative marks. Skipped = zero.
‣ The quiz auto-submits when the timer reaches zero.
‣ Stay in fullscreen mode throughout the quiz. Exiting fullscreen is detected and will result in auto-submission.
✦ Scientech Easy
Online Basic Python Test
30 Qs
Q 1
1 / 30
0s
Which file extension is used to save Python source files?
.pyt
.pe
.py
.pi
Q 2
2 / 30
0s
What is the name of the built-in interactive development environment that comes pre-installed with Python?
PGUI
PyShell
IDLE
PythonSh
Q 3
3 / 30
0s
Which built-in function is used to display output or a message on the screen in Python?
print()
display()
run()
output()
Q 4
4 / 30
0s
Which symbol is the assignment operator in Python used to assign a value to a variable?
==
===
>>>
=
Q 5
5 / 30
0s
Which statement correctly initializes three variables x, y, and z all with the value 50?
x = y: y = 50
x = y = z = 50
x = z; y = z; x = 50
x & y & z = 50
Q 6
6 / 30
0s
Which function is used to accept a value entered by the user from the keyboard?
user()
enter()
input()
value()
Q 7
7 / 30
0s
By default, what invisible character does print() automatically add at the end of every output line?
\t (tab)
\n (newline)
\s (space)
\r (carriage return)
Q 8
8 / 30
0s
Which of the following correctly sets the pipe ‘|’ as an alternative separator in print()?
sep is |
separate = |
sep >> ‘|’
sep = ‘|’
Q 9
9 / 30
0s
Which of the following correctly sets a hash ‘#’ as the line-ending for print() instead of the default newline?
end to #
end as #
end = ‘#’
ending = ‘#’
Q 10
10 / 30
0s
For which error type does the interpreter halt and report the error without executing any part of the program?
Semantic Error
Syntax Error
Runtime Error
All types of errors
Q 11
11 / 30
0s
What will be the output of the following code?
Code
x = 12 y = 4 print(x // y)
3.0
3
48
48.0
Q 12
12 / 30
0s
What will be the output of the following code?
Code
x = 5 y = 4 x += y print(x)
5
4
9
1
Q 13
13 / 30
0s
What will be the output of the following code?
Code
x = 25 y = 6 x %= y print(x)
1
24
6
31
Q 14
14 / 30
0s
What will be the output of the following code?
Code
x = True y = True print(x and y)
True
False
Not defined
xy
Q 15
15 / 30
0s
What will be the output of the following code?
Code
x = 15 y = 50 z = y if (y > x) else x print(z)
True
False
15
50
Q 16
16 / 30
0s
What will be the output of the following code?
Code
x = 6 * (3 + 4) print(x)
42
22
21
18
Q 17
17 / 30
0s
What will be the output of the following code?
Code
x = '35' + '27' print(x)
62
3527
35
57
Q 18
18 / 30
0s
What will be the data type of variable x after this statement, if the user enters the number 25?
Code
x = input('Enter a number: ')Float
String
List
Integer
Q 19
19 / 30
0s
What will be the data type of variable y after the following statements?
Code
x = 48 y = str(x)
Float
String
List
Integer
Q 20
20 / 30
0s
What is the data type of variable x after the following statement?
Code
x = [7, 8, 9, 10]
List
Dictionary
Tuple
String
Q 21
21 / 30
0s
Which built-in function can be used to determine the data type of any variable in Python?
data()
type()
true()
str()
Q 22
22 / 30
0s
What will be the data type of variable x after the following statement?
Code
x = 'Python 3 Programming'
List
String
Dictionary
Tuple
Q 23
23 / 30
0s
What will be the data type of variable x after the following statement?
Code
x = {'subject': 'Python', 'level': 'Beginner'}List
Set
Dictionary
Tuple
Q 24
24 / 30
0s
What will be the output of the following code?
Code
x = [15, 25, 35] y = x[1] + x[2] print(y)
25
35
50
60
Q 25
25 / 30
0s
What will be the output of the following code?
Code
x = ['Monday', 'Wednesday', 'Friday'] y = x[1] + x[2] print(y)
WednesdayFriday
MondayWednesday
Monday Friday
Wednesday Friday
Q 26
26 / 30
0s
What will be the output of the following code?
Code
x = [[1.0, 2.0, 3.0], [5.0, 6.0, 7.0]] y = x[0][1] + x[1][0] print(y)
2.0
5.0
7.0
8.0
Q 27
27 / 30
0s
What will be the output of the following code?
Code
x = [8, 6, 4, 2] print(x)
[8, 6, 4, 2]
8, 6, 4, 2
8642
(8, 6, 4, 2)
Q 28
28 / 30
0s
What will be the output of the following code?
Code
x = [8, 6, 4, 2] x.append(0) print(x)
[8, 6, 4, 2]
8, 6, 4, 2, 0
8642
[8, 6, 4, 2, 0]
Q 29
29 / 30
0s
What will be the output of the following code?
Code
x = [8, 6, 4, 2] x.insert(2, 5) print(x)
[8, 2, 4, 6, 5]
[8, 6, 5, 4, 2]
[5, 8, 6, 4, 2]
[2, 8, 6, 4, 5]
Q 30
30 / 30
0s
What will be the output of the following code?
Code
x = [8, 6, 4, 2, 0] print(x.pop(2))
6
4
2
0
Time Left
20 : 00 : 00
Question Palette
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Answered
Bookmarked
Not Visited
Finish Test?
You cannot change responses after submission.
⏱ Time's Up!
Your time is up. The quiz will be submitted.
⚠ Fullscreen Mode Exited
Quiz Complete!
Online Basic Python Test
Your Score
Correct
Wrong
Skipped
Total Q
Time Taken







