Search Header Logo

Homework 1 Data types and operaations

Authored by Ed Smith

Computers

9th - 10th Grade

Used 1+ times

Homework 1 Data types and operaations
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

5 mins • 1 pt

State the values of expression after the following operations are carried out:

(a)        a ← 26 mod 5

2.

FILL IN THE BLANK QUESTION

5 mins • 1 pt

State the values of expression after the following operations are carried out:

(b)        b ← 142 div 7

3.

FILL IN THE BLANK QUESTION

5 mins • 1 pt

State the values of expression after the following operations are carried out:

(c)        c ← (7 + 3) * 4 – 1 

4.

FILL IN THE BLANK QUESTION

5 mins • 1 pt

State the values of expression after the following operations are carried out:

(d)        d ← 15.6 / 3 + 4.8 / 2

5.

FILL IN THE BLANK QUESTION

5 mins • 1 pt

State the values of expression after the following operations are carried out:

(e)        e ← "4" + "56"

6.

FILL IN THE BLANK QUESTION

5 mins • 1 pt

The function CHAR_TO_CODE('a') evaluates to 97, the ASCII value of the character ‘a’.

       CODE_TO_CHAR(97) evaluates to 'a'.

            State what is output by this algorithm:

x ← CHAR_TO_CODE('b')

7.

FILL IN THE BLANK QUESTION

5 mins • 1 pt

The function CHAR_TO_CODE('a') evaluates to 97, the ASCII value of the character ‘a’.

       CODE_TO_CHAR(97) evaluates to 'a'.

            State what is output by this algorithm:

y ← x + 1

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?