Currently Empty: $0.00
Introduction To Syllabus
0/3
Relation of Real Life and Programming
0/7
Stages of Programming
0/14
Dealing with Constructs
0/24
Question Set 3
0/3
Concept of Validations
0/6
Question Set 4
0/2
USE CRTL + F5 TO REFRESH IF CONTENT WONT APPEARS
Listen to the instructions given, then complete the given questions to move to the next lesson.
Practice Session Questions:
Expected Answers:
Qno 1
DECLARE Length : REAL
DECLARE Width : REAL
DECLARE Area : REAL
Length ← 12.5
Width ← 8.0
Area ← Length * Width
OUTPUT “Area of the rectangle is “, Area
Qno 2:
CONSTANT PI ← 3.1416
DECLARE Radius : REAL
DECLARE Circumference : REAL
Radius ← 7.0
Circumference ← 2 * PI * Radius
OUTPUT “Circumference of the circle is “, Circumference
Qno3:
DECLARE Apples : INTEGER
DECLARE Oranges : INTEGER
DECLARE TotalFruits : INTEGER
DECLARE Difference : INTEGER
Apples ← 25
Oranges ← 18
TotalFruits ← Apples + Oranges
Difference ← Apples – Oranges
OUTPUT “Total number of fruits = “, TotalFruits
OUTPUT “Difference in number of fruits = “, Difference
More Questions:
Example 1: Create two variables, num1, num2, and total, assign 35 and 12, respectively, in num1 and num2, and create a third variable, total, which will contain the sum of both variables and display its output.
First write its pseudocode in your notebook, then try it on Python.
Instructions: click the run button to see its output
Question 1: Calculate the average of the five numbers. First, state seven variable names from num1 to num5, total, avg, and assign any values to them, calculate the total and average then display the total and average as output.
if you have any questions kindly write in Comments, any inappropriate statement will make your account freeze.