Search Header Logo

#7 Intro to programming/types of prog language

Authored by Claire Buckler

others

Used 2+ times

#7 Intro to programming/types of prog language
AI

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

1. Which of these does not apply to the 'Sequence' programming construct?

A. All instructions are executed
B. Instructions are executed in their given order
C. Program execution starts at the beginning and finishes at the end of the list of instructions
D. Certain blocks of code may be bypassed

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. Which of the following is used to repeatedly execute a block of code?

A. Sequence
B. Iteration
C. Selection
D. Subroutine

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. A switch/case statement is an example of:

A. Iteration
B. Sequence
C. Subroutine
D. Selection

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. What is a variable?

A. A part of a program that can be changed
B. A named location in the computer's memory that stores a value permanently, not allowing it to be changed during execution
C. A named location in the computer's memory that stores a value and that value can change during execution
D. A built-in value in a computer program that can be used when needed

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. What is the main difference between a constant and a variable?

A. The value stored in a constant cannot be changed during program execution
B. The value stored in a variable cannot be changed during program execution
C. Only variables can be created by the programmer
D. Only constants can be created by the programmer

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. Do the precedence rules apply when constructing arithmetic expressions in programming?

A. Yes
B. No, there are different rules in programming
C. No, there are no agreed precedence rules in programming
D. No, they are not necessary when programming

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Why will the following expression fail to calculate the mean of the integer values A, B and C? A+B+C/3

A. The wrong division symbol is being used
B. The precedence rules are not being applied correctly
C. The numbers should be multiplied, not added
D. There are too many numbers

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?