Search Header Logo

Introduction to programming

Authored by RASHA SHOWAIKH

Computers

11th Grade

Used 1+ times

Introduction to programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of line 5 when the code is executed if the user enters 1 for num1 and 7 for num2?

num1 + num2

num1num7

8

17

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the option that can only be an example of the string data type.

Five

5.1

5

True

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Read the description of each variable in the table below and enter the name of one variable that would be best implemented as a variable with the data type string.

years_of_age

telephone

number

date_of_birth

temperature

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of PRINT when this program is executed?

There is an error in the program

player_name

BlueSky93

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of PRINT when this program is executed?

BlueSky93, DinoFish40

player_name

BlueSky93

DinoFish40

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Read the description of each identifier in the table below and enter the name of the identifier that should be declared as a variable instead of a constant.

TAX

GRAVITY

SCORE

MIN_LENGTH

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

A banking system uses a constant to store the current rate of VAT so that it can be used in calculations.

Which of the following statements relating to constants is true?

A constant is the same as a variable.

The value of a constant can only change while the program is running.

You cannot change the value of a constant in the program source code.

A constant stores a value that does not change during the execution of the program.

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?