8.1 Programming Concepts Cambridge IGCSE 0478

8.1 Programming Concepts Cambridge IGCSE 0478

10th Grade

20 Qs

quiz-placeholder

Similar activities

Electronic Component

Electronic Component

10th Grade

15 Qs

Operating system Class-9th

Operating system Class-9th

9th - 10th Grade

15 Qs

Module 23 - The Internet 2

Module 23 - The Internet 2

9th - 12th Grade

19 Qs

Getting Started with MS Office

Getting Started with MS Office

7th - 12th Grade

19 Qs

Q1 M 5 POST TEST

Q1 M 5 POST TEST

10th Grade

20 Qs

Dasar Komputer

Dasar Komputer

10th Grade

23 Qs

Kiểm tra Chương I + II + III

Kiểm tra Chương I + II + III

6th Grade - University

20 Qs

KD 3.1_Aplikasi Pengolah Angka / Spreadsheet

KD 3.1_Aplikasi Pengolah Angka / Spreadsheet

10th Grade

15 Qs

8.1 Programming Concepts Cambridge IGCSE 0478

8.1 Programming Concepts Cambridge IGCSE 0478

Assessment

Quiz

Computers

10th Grade

Easy

Created by

Stephen Ling-Winston

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?