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: Syntax & Errors

1. def fun():
print("Hi")

2 / 50

Category: Syntax & Errors

2. if 5 > 3
print("Yes")

3 / 50

Category: Syntax & Errors

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

4 / 50

Category: Syntax & Errors

4. list = 10
print(list[0])

5 / 50

Category: Syntax & Errors

5. int("abc")

6 / 50

Category: Syntax & Errors

6. print(unknown)

7 / 50

Category: Syntax & Errors

7. print(10 / 0)

8 / 50

Category: Syntax & Errors

8. print("Hello)

9 / 50

Category: Syntax & Errors

9. print(x)

10 / 50

Category: Syntax & Errors

10. for i in range(5)
print(i)

11 / 50

Category: Output Based Questions

1. print(bool(0))

12 / 50

Category: Output Based Questions

2. print(type("10"))

13 / 50

Category: Output Based Questions

3. print(10 / 2)

14 / 50

Category: Output Based Questions

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

15 / 50

Category: Output Based Questions

5. print(10 == 10)

16 / 50

Category: Output Based Questions

6. print(10 > 5)

17 / 50

Category: Output Based Questions

7. print(type(3.14))

18 / 50

Category: Output Based Questions

8. print(2 ** 3)

19 / 50

Category: Output Based Questions

9. x = 5
x += 3
print(x)

20 / 50

Category: Output Based Questions

10. print(len("Python"))

21 / 50

Category: Output Based Questions

11. print("Python"[0])

22 / 50

Category: Output Based Questions

12. x = 10
print(x)

23 / 50

Category: Output Based Questions

13. print("Hello" + "World")

24 / 50

Category: Output Based Questions

14. print(5 + 3)

25 / 50

Category: Output Based Questions

15. print(5 % 2)

26 / 50

Category: Fill in the Blanks

1. The value of True in Python is __________.

27 / 50

Category: Fill in the Blanks

2. __________ function returns the length of a list.

28 / 50

Category: Fill in the Blanks

3. Lists in Python are enclosed within __________ brackets.

29 / 50

Category: Fill in the Blanks

4. The correct file extension for Python files is __________.

30 / 50

Category: Fill in the Blanks

5. The symbol used for comments in Python is __________.

31 / 50

Category: Fill in the Blanks

6. Python was created by __________.

32 / 50

Category: Fill in the Blanks

7. Python is a __________ level programming language.

33 / 50

Category: Fill in the Blanks

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

34 / 50

Category: Fill in the Blanks

9. __________ keyword is used to check a condition in Python.

35 / 50

Category: Fill in the Blanks

10. __________ is used to exit a loop in Python.

36 / 50

Category: Fill in the Blanks

11. Python is an __________ language.

37 / 50

Category: Fill in the Blanks

12. The multiplication operator in Python is __________.

38 / 50

Category: Fill in the Blanks

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

39 / 50

Category: Fill in the Blanks

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

40 / 50

Category: Fill in the Blanks

15. Python is a __________ typed language.

41 / 50

Category: True / False

1. Indentation is mandatory in Python.

42 / 50

Category: True / False

2. Tuples are mutable data types.

43 / 50

Category: True / False

3. = is a comparison operator in Python.

44 / 50

Category: True / False

4. while loop executes at least once.

45 / 50

Category: True / False

5. None represents absence of a value.

46 / 50

Category: True / False

6. Python supports multiple inheritance.

47 / 50

Category: True / False

7. Python supports object-oriented programming.

48 / 50

Category: True / False

8. print() is used for input in Python.

49 / 50

Category: True / False

9. Python code runs faster than C language.

50 / 50

Category: True / False

10. Python is case-sensitive.

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