Homework 1 Data types and operaations

Homework 1 Data types and operaations

9th - 10th Grade

16 Qs

quiz-placeholder

Similar activities

X Input in Java

X Input in Java

10th Grade

15 Qs

Getting Started in C Programming

Getting Started in C Programming

9th - 10th Grade

20 Qs

SAINS KOMPUTER TINGKATAN 4 (BAB1)

SAINS KOMPUTER TINGKATAN 4 (BAB1)

KG - University

21 Qs

Intro to Java Loops

Intro to Java Loops

9th - 12th Grade

15 Qs

Java Bell Ringer Terms Test 5

Java Bell Ringer Terms Test 5

9th - 12th Grade

20 Qs

AQA GCSE Computer Science - 3.2.8 String Handling/Random No.

AQA GCSE Computer Science - 3.2.8 String Handling/Random No.

8th - 10th Grade

19 Qs

Java Basics (Data Types and Variables)

Java Basics (Data Types and Variables)

6th - 10th Grade

16 Qs

PROGDAS #1

PROGDAS #1

10th Grade

20 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?