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: Output Based Questions

print(len("Python"))

2 / 50

Category: Output Based Questions

x = 5
x += 3
print(x)

3 / 50

Category: Output Based Questions

print("Hello" + "World")

4 / 50

Category: Output Based Questions

print(2 ** 3)

5 / 50

Category: Output Based Questions

print(10 / 2)

6 / 50

Category: Output Based Questions

print(type(3.14))

7 / 50

Category: Output Based Questions

print(bool(0))

8 / 50

Category: Output Based Questions

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

9 / 50

Category: Output Based Questions

print(10 > 5)

10 / 50

Category: Output Based Questions

print("Python"[0])

11 / 50

Category: Output Based Questions

print(5 % 2)

12 / 50

Category: Output Based Questions

x = 10
print(x)

13 / 50

Category: Output Based Questions

print(type("10"))

14 / 50

Category: Output Based Questions

print(5 + 3)

15 / 50

Category: Output Based Questions

print(10 == 10)

16 / 50

Category: Fill in the Blanks

__________ keyword is used to check a condition in Python.

17 / 50

Category: Fill in the Blanks

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

18 / 50

Category: Fill in the Blanks

The multiplication operator in Python is __________.

19 / 50

Category: Fill in the Blanks

Python is an __________ language.

20 / 50

Category: Fill in the Blanks

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

21 / 50

Category: Fill in the Blanks

__________ is used to exit a loop in Python.

22 / 50

Category: Fill in the Blanks

Python is a __________ level programming language.

23 / 50

Category: Fill in the Blanks

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

24 / 50

Category: Fill in the Blanks

The value of True in Python is __________.

25 / 50

Category: Fill in the Blanks

Python was created by __________.

26 / 50

Category: Fill in the Blanks

Python is a __________ typed language.

27 / 50

Category: Fill in the Blanks

The symbol used for comments in Python is __________.

28 / 50

Category: Fill in the Blanks

__________ function returns the length of a list.

29 / 50

Category: Fill in the Blanks

The correct file extension for Python files is __________.

30 / 50

Category: Fill in the Blanks

Lists in Python are enclosed within __________ brackets.

31 / 50

Category: Syntax & Errors

list = 10
print(list[0])

32 / 50

Category: Syntax & Errors

int("abc")

33 / 50

Category: Syntax & Errors

print("Hello)

34 / 50

Category: Syntax & Errors

print(unknown)

35 / 50

Category: Syntax & Errors

if 5 > 3
print("Yes")

36 / 50

Category: Syntax & Errors

print(10 / 0)

37 / 50

Category: Syntax & Errors

def fun():
print("Hi")

38 / 50

Category: Syntax & Errors

for i in range(5)
print(i)

39 / 50

Category: Syntax & Errors

print(x)

40 / 50

Category: Syntax & Errors

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

41 / 50

Category: True / False

None represents absence of a value.

42 / 50

Category: True / False

Python code runs faster than C language.

43 / 50

Category: True / False

Indentation is mandatory in Python.

44 / 50

Category: True / False

Tuples are mutable data types.

45 / 50

Category: True / False

Python supports multiple inheritance.

46 / 50

Category: True / False

Python is case-sensitive.

47 / 50

Category: True / False

while loop executes at least once.

48 / 50

Category: True / False

print() is used for input in Python.

49 / 50

Category: True / False

= is a comparison operator in Python.

50 / 50

Category: True / False

Python supports object-oriented programming.

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