
8.1 Programming Concepts Cambridge IGCSE 0478
Authored by Stephen Ling-Winston
Computers
10th Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in programming?
A named storage location in memory that can hold different values during program execution.
A fixed value that never changes.
A part of the CPU used for calculations.
A special type of loop structure.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a constant in programming?
A value that does not change during program execution.
A variable that can be updated any time.
A data type that stores only integers.
A temporary storage location.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, which keyword is commonly used to declare a constant (by convention)?
Writing the variable name in uppercase (e.g., PI = 3.14).
Using the const keyword.
Using let before the variable name.
Using fixed before the variable name.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare a variable in Python?
age = 25
int age = 25;
let age = 25;
constant age = 25;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between a variable and a constant?
A variable can change its value during execution, while a constant remains the same.
A variable stores numbers, while a constant stores text.
A constant is always declared before variables.
A constant is a special type of loop structure.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a strongly typed programming language like Java, how would you declare a constant?
final int MAX_SCORE = 100;
int MAX_SCORE = 100;
constant int MAX_SCORE = 100;
let MAX_SCORE = 100;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly assigns a value to a variable in Python?
temperature = 37.5
temperature == 37.5
temperature := 37.5
set temperature to 37.5
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?