
Homework 1 Data types and operaations
Authored by Ed Smith
Computers
9th - 10th Grade
Used 1+ times

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 BLANKS QUESTION
5 mins • 1 pt
State the values of expression after the following operations are carried out:
(a) a ← 26 mod 5
(a)
2.
FILL IN THE BLANKS QUESTION
5 mins • 1 pt
State the values of expression after the following operations are carried out:
(b) b ← 142 div 7
(a)
3.
FILL IN THE BLANKS QUESTION
5 mins • 1 pt
State the values of expression after the following operations are carried out:
(c) c ← (7 + 3) * 4 – 1
(a)
4.
FILL IN THE BLANKS 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
(a)
5.
FILL IN THE BLANKS QUESTION
5 mins • 1 pt
State the values of expression after the following operations are carried out:
(e) e ← "4" + "56"
(a)
6.
FILL IN THE BLANKS 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')
(a)
7.
FILL IN THE BLANKS 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
(a)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?