0% found this document useful (0 votes)
4 views1 page

Python Assignment

The document outlines a programming task requiring a Python 3.8 program that includes loops, recursion, exception handling, and the use of math or datetime modules. It also asks for a plan to port Python 2.x code to 3.8. Additionally, it includes general knowledge questions about BSP in QNX, hypervisors, and the distinction between safety and security.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Python Assignment

The document outlines a programming task requiring a Python 3.8 program that includes loops, recursion, exception handling, and the use of math or datetime modules. It also asks for a plan to port Python 2.x code to 3.8. Additionally, it includes general knowledge questions about BSP in QNX, hypervisors, and the distinction between safety and security.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1. Write a Python program using Python 3.

8, making use of the following;


a. Use at least one for loop and 1 while loop
i. Make one of them nested
b. Call the math and or date time module in Python
c. Use recursion
d. There should be a part of the program that requires exception handling
2. Describe how you would plan to port Python 2.x to 3.8.
1. Alternative is to write question 1 using Python 2.7, then port that program to Python 3.8

General Knowledge For the following questions, a brief answer is sufficient.

1. What is a BSP and its purpose with regards to QNX products?

2. What is a Hypervisor?

3. Safety vs. Security - are they the same OR how are they different?

You might also like