Homework 1 Data types and operaations

Homework 1 Data types and operaations

9th - 10th Grade

16 Qs

quiz-placeholder

Similar activities

programación en java

programación en java

10th Grade

14 Qs

Unit 4 Variables, Conditionals & Functions CS20-21

Unit 4 Variables, Conditionals & Functions CS20-21

9th - 12th Grade

18 Qs

Variabel & Tipe Data C++

Variabel & Tipe Data C++

9th - 12th Grade

20 Qs

Tipuri de date simple

Tipuri de date simple

9th - 10th Grade

14 Qs

F2 Persekitaran Kod Arahan

F2 Persekitaran Kod Arahan

8th - 9th Grade

12 Qs

T4 - Pemboleh ubah, Pemalar dan Jenis Data

T4 - Pemboleh ubah, Pemalar dan Jenis Data

10th Grade

15 Qs

Boolean Logic and Expressions

Boolean Logic and Expressions

9th - 10th Grade

15 Qs

Retos y destrezas

Retos y destrezas

10th Grade

12 Qs

Homework 1 Data types and operaations

Homework 1 Data types and operaations

Assessment

Quiz

Computers

9th - 10th Grade

Hard

Created by

Ed Smith

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?