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

Document

Uploaded by

waliabbiscool
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views3 pages

Document

Uploaded by

waliabbiscool
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Simple Sequence

Understand the concept of sequential execution of statements in a program.

Write Python programs that execute a series of statements in a linear order.

Demonstrate the ability to declare and initialise variables in sequence.

Understand the flow of control in a simple sequence and how each statement is executed in order.

Create programs using mathematical operators for calculations that involve formulae.

Identify data types for integer, float and string input.

2. Conditional Statements using if, elif, and else

Understand the concept of decision-making in a program using conditional statements.

Use an ‘if’ statement to execute code based on a condition.

Apply the ‘else’ statement to specify an alternative block of code when the condition is not met.

Utilise ‘elif’ to check multiple conditions in sequence, allowing for more complex decision structures.

Write Python programs using if, elif, and else to make decisions based on user input or data comparison.

Understand the importance of logical operators (e.g., and, or, not) in combining multiple conditions.

3. Nested if Statements

Understand the concept of nested if statements (i.e., placing one if statement inside another).

Write Python programs that use nested if statements to evaluate multiple layers of conditions.

Recognise when and why to use nested if statements in real-world programming problems.

Identify and correct errors related to improper nesting of if statements.

Demonstrate the ability to control the flow of the program using nested conditions for more complex
decision-making.

4. Repetition: ‘for’ Statement

Understand the concept of repetition and the need for loops in programming to reduce redundancy.

Write Python programs that use the for loop to repeat tasks a specific number of times.

Understand the use of range() function in conjunction with the for loop to generate sequences of
numbers.
Understand the importance of loop control variables and how to manipulate them within the loop.

TYPES OF QUESTIONS:

1.Make a program which will use an input

statement to enter the time in hours and convert it into minutes and seconds.

The answer should come in the following format:

(1 hr. = 60 minutes) (1 hr. = 3600

seconds)

The time in hours is: _________

The time in seconds is: _________

3. Create a program to print multiples of 15 using a ‘for’ loop.

4. Create a program to print

negative integers from (-12 to -2)

5.Create a program to print

cube numbers from (2-12) and continue the loop, to skip the value if variable

is equal to 7

6. Find out the circumference of a circle using a variable and


constant value. C=2πr

7.Print the following number sequence: -28, -24, -20, …4, 8

9. Create a program to print multiples of 5 using a ‘for’ loop.

10. Use 'for' statement with 'else' to design a scorecard program for a football tournament, enter the
names and scores of four players. If the name of the player matches the input, then print his score
otherwise print "No record found"

11. Print the multiplication table of 15

12. Make a program that uses if and nested if statements to check the age of a person.

If the age of a person is above or 18, the programs checks further if

the age is less than or equals to 60. If true, the person is eligible to work,

otherwise it prints, you are retired. If the age is not above 18, it prints

ineligible to work.

You might also like