Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
5 views3 pages

Mock Test

Uploaded by

Prajna
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)
5 views3 pages

Mock Test

Uploaded by

Prajna
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
You are on page 1/ 3

section A

What is a flowchart, and why is it important in software development? [6 marks]

Explain the concept of data types in Python. Provide examples of different data types and
explain the importance of data type declaration. [6 marks]

What is the difference between Machine language and high-level programming languages?
Provide an example of each. [6 Marks]

Explain the functions of this in Built-in Functions in Python?


i. input()

ii. int()

iii. print()

[6 marks]

Convert this binary number 10101011 to Decimal [6 marks]


Section B

Explain the difference between count-controlled and event-controlled loops, providing


examples. [15 marks]

Explain the if-Elif statement, state it purposes and significant, also provide an example
[8 marks]
Write a program that concatenates these variables to create the following output string

*I’m a student and current studying BSc IT at Richfield*

demonstrate at least three different methods of string concatenation.

Hint:
status = "student"

course = "BSc IT"

institution = "Richfield

[15 marks]
Section C

Write a program to print the cube of numbers from 1 to 8 using a while loop.
[25 MARKS]

Write a program that determines the monthly subscription fee for a streaming platform
based on the plan type and number of devices connected.
The "standard" plan costs R59.90 for 1 device, R99.90 for 2-3 devices, and R180.90 for 4-6
devices. The "deluxe" plan costs R149.90 for 1 device, R199.90 for 2-3 devices, and
R249.90 for 4-6 devices.

Calculate and display the total monthly subscription fee, including a breakdown of the
base price and any additional charges.

[25 Marks]

You might also like