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. In Python, ‘Hello’, is the same as ‘Hello”

 
 

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

a = 3 + 2 * 4 + 4

print(a)

 
 
 
 

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

print(“Network Walks Academy”+1)

 
 
 
 

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

var1 = 1

var2 = 2

var3 = 3

print(var1, var2, var3)

 

 
 
 
 

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

 
 
 
 

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

 

 
 
 
 

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

 
 
 
 

8. Which code will result in below output?

 

 
 
 
 

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

 
 

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

A!=B

 
 
 
 

11. Tuples in Python3 are always denoted by:

 
 
 
 

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

 
 
 
 

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

 
 

14. Lists in Python3 are always denoted by:

 
 
 
 

15. Which Python code is used to capture username from a Cisco Router through a prompt in Python 3?

 
 
 
 

16. Which Python code will result in below output?

 
 
 
 

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

 
 
 
 

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

p, q, r = 10, 20 ,30

print(p, q, r)

 
 
 
 

19. Which Python code is used to configure Hostname on a Cisco Router in Python 3?

 
 
 
 

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

 
 
 
 

Question 1 of 20

 

 

Written by 

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.