You are currently viewing Python Quiz for Beginners.

Python Quiz for Beginners.

0%
0

Python programming

Python Basic Quiz

This Quiz for beginners.

You can enhance and check your knowledge in python after attending this quiz.

Login Here.

1 / 50

Category: Fill in the Blanks

The keyword used to define a function in Python is __________.

2 / 50

Category: Fill in the Blanks

__________ function returns the length of a list.

3 / 50

Category: Fill in the Blanks

__________ keyword is used to check a condition in Python.

4 / 50

Category: Fill in the Blanks

Python is a __________ level programming language.

5 / 50

Category: Fill in the Blanks

Python is an __________ language.

6 / 50

Category: Fill in the Blanks

__________ is used to take input from the user in Python.

7 / 50

Category: Fill in the Blanks

The value of True in Python is __________.

8 / 50

Category: Fill in the Blanks

Python was created by __________.

9 / 50

Category: Fill in the Blanks

The multiplication operator in Python is __________.

10 / 50

Category: Fill in the Blanks

__________ is used to exit a loop in Python.

11 / 50

Category: Fill in the Blanks

The correct file extension for Python files is __________.

12 / 50

Category: Fill in the Blanks

Python is a __________ typed language.

13 / 50

Category: Fill in the Blanks

Lists in Python are enclosed within __________ brackets.

14 / 50

Category: Fill in the Blanks

The output of print(type(10)) is __________.

15 / 50

Category: Fill in the Blanks

The symbol used for comments in Python is __________.

16 / 50

Category: Syntax & Errors

list = 10
print(list[0])

17 / 50

Category: Syntax & Errors

a = [1,2,3]
print(a[5])

18 / 50

Category: Syntax & Errors

if 5 > 3
print("Yes")

19 / 50

Category: Syntax & Errors

print("Hello)

20 / 50

Category: Syntax & Errors

int("abc")

21 / 50

Category: Syntax & Errors

for i in range(5)
print(i)

22 / 50

Category: Syntax & Errors

print(unknown)

23 / 50

Category: Syntax & Errors

print(x)

24 / 50

Category: Syntax & Errors

def fun():
print("Hi")

25 / 50

Category: Syntax & Errors

print(10 / 0)

26 / 50

Category: True / False

print() is used for input in Python.

27 / 50

Category: True / False

= is a comparison operator in Python.

28 / 50

Category: True / False

Indentation is mandatory in Python.

29 / 50

Category: True / False

while loop executes at least once.

30 / 50

Category: True / False

None represents absence of a value.

31 / 50

Category: True / False

Python supports object-oriented programming.

32 / 50

Category: True / False

Python supports multiple inheritance.

33 / 50

Category: True / False

Python is case-sensitive.

34 / 50

Category: True / False

Python code runs faster than C language.

35 / 50

Category: True / False

Tuples are mutable data types.

36 / 50

Category: Output Based Questions

print(10 > 5)

37 / 50

Category: Output Based Questions

x = 5
x += 3
print(x)

38 / 50

Category: Output Based Questions

print(type("10"))

39 / 50

Category: Output Based Questions

print(bool(0))

40 / 50

Category: Output Based Questions

print(len("Python"))

41 / 50

Category: Output Based Questions

print("Python"[0])

42 / 50

Category: Output Based Questions

print(2 ** 3)

43 / 50

Category: Output Based Questions

x = 10
print(x)

44 / 50

Category: Output Based Questions

print(5 % 2)

45 / 50

Category: Output Based Questions

print(10 / 2)

46 / 50

Category: Output Based Questions

print(type(3.14))

47 / 50

Category: Output Based Questions

print("Hello" + "World")

48 / 50

Category: Output Based Questions

print(5 + 3)

49 / 50

Category: Output Based Questions

a = [1,2,3]
print(len(a))

50 / 50

Category: Output Based Questions

print(10 == 10)

Your score is

The average score is 0%

0%

Rate the Quiz.

Thank You For Rating Us!

Share post

Prajjwal Singh

Tech Blogger || Web developer || Computer Networking Enthusiast || Microsoft SQL Database Management Expert || Software Debugger || Learned DOS OS Structure

Leave a Reply