Search Header Logo

SLR1: Programming Basics (AQA A Level)

Authored by H Malaney

Computers

11th Grade

Used 6+ times

SLR1: Programming Basics (AQA A Level)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a data type in programming?

A type of algorithm

A classification of data which tells the compiler or interpreter how the programmer intends to use the data

A type of error

A type of function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of a Boolean data type?

42

"Hello"

True

3.14

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary difference between an integer and a real/float data type?

Integers can store decimal values, while real/float cannot

Real/float can store decimal values, while integers cannot

Both can store decimal values

Neither can store decimal values

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a user-defined data type?

Integer

String

Class

Boolean

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a variable declaration in programming?

To execute a loop

To define a constant value

To allocate memory for a variable and define its data type

To perform arithmetic operations

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of a selection statement?

for loop

if-else statement

while loop

function call

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between definite and indefinite iteration?

Definite iteration has a fixed number of repetitions, while indefinite iteration does not

Indefinite iteration has a fixed number of repetitions, while definite iteration does not

Both have a fixed number of repetitions

Neither have a fixed number of repetitions

Access all questions and much more by creating a free account

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

Already have an account?