What data type is 25?
Integer
What is a variable?
A named place used to store a value.
What is pseudocode?
A simple way of writing program steps.
What is the result of 8 + 5?
Ans: 13
What does = do?
Assigns a value to a variable.
What data type is 4.5?
Float
In age = 12, what is the variable?
age
Which comes first: Declare, Assign, or Use?
Declare
What is 17 % 5?
2
If x = 10 and x += 5, what is x?
15
Identify the types: 10, 3.5, "Hi", True.
Integer, Float, String, Boolean
In marks = 90, what is the value?
90
Write pseudocode to check whether a number is positive or negative.
If number > 0 → Positive, Else → Negative
If a = 12, what is the value after a++?
13
If x = 20 and x -= 7, what is x?
13
What data type stores one character, such as 'A'?
Character
score = 50, score += 10. What is the final value?
60
Write pseudocode to find the larger of two numbers.
If A > B → Print A, Else → Print B
If x = 10, what is x after x--?
9
If x = 6 and x *= 4, what is x?
24
A variable contains False. What is its data type?
Boolean
x = 10, x += 5, x *= 2. What is the final value?
30
Write pseudocode to check whether a number is even or odd.
If number % 2 = 0 → Even, Else → Odd
a = 20, b = 6. Find a / b and a % b.
3.33… and 2
x = 20, x -= 5, x *= 2, x++. What is the final value?
31