FINAL EXAM PYTHON PROGRAMMING

Enter your email below & start this Final Exam Python Programming.

Exam Time: 60mins
Final Exam for Python Programming course.

Please enter your email:

1. What is the meaning of below condition in Python scripting?

A!=B

 
 
 
 

2. Which of below Python programs is correct, which asks user to input number of hours & converts it into seconds:

 
 
 
 

3. Which code is correct for the If statement below?

 

 
 
 
 

4. Lists in Python3 are always denoted by:

 
 
 
 

5. In Python, ‘Hello’, is the same as “Hello”

 
 

6. What is the correct file extension of Python files?

 
 
 
 

7. What will be the output of following Python code?

var1 = 1

var2 = 2

var3 = 3

print(var1, var2, var3)

 

 
 
 
 

8. What will be printed as a result of below Python code?

print("Network Walks Academy")

#print("www.networkwalks.com")

 
 
 
 

9. What is the correct way to create functions in Python?

 
 
 
 

10. What will be the output of following Python code?

var1 = 1

var2 = 2

var3 = 3

print(var1 + var2 + var3)

 

 
 
 
 

11. Which statement is used to display text strings in Python?

 
 
 
 

12. Which of below Python programs is correct, which asks user to input two numbers & returns their sum:

 
 
 
 

13. Which operator can be used to compare two values in Python3?

 
 
 
 

14. Which Python code will result in below output?

 
 
 
 

15. What will be printed as a result of below Python code?

print(“Network Walks Academy”+”one”)

 
 
 
 

16. Almost every value is evaluated to True if it has some sort of content:

 
 

17. The result of division in python is always a float number:

 
 

18. Which code will result in below output?

 

 
 
 
 

19. What will be the output of following Python code?

p, q, r = 10, 20 ,30

print(p, q, r)

 
 
 
 

20. What will be printed as a result of below Python code?

print(“Network Walks Academy”+1)

 
 
 
 

Question 1 of 20

 

 

0 0 votes
Article Rating
Subscribe
Notify of
guest

1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
George Marufu

Dear examiner

I noticed number 10 had 2 similar answers both correct. ie Network Walks Academy. Also number 12 questions had no relationship to given to given answers. On both instances I just had to use my understanding of Python code to determine which would run should I compile.