No student devices needed. Know more
30 questions
in the lines of code, which option is a variable?
letter
ord
=
In the lines of code, what does 'code' store?
The number that represents the letter 'a'
The number that represents a letter
The number that represents the code
The number that represents ord()
In the lines of code, which is a function?
ord()
letter
code
'a'
What will happen after running these lines of code?
The word "Letter: " will print on the screen waiting for input
The number representing the letter 'a' will print on the screen
The Letter 'a' will print on the screen
Nothing will happen
Which of the following statements is true about the code in this image?
128055 is the number that represents the emoji
128055 is the number that represents the variable code
ord is a variable
code is a function
Which of the following sections of code will take in an input character from the user and print out the number that represents the character?
What does this section of code do?
Prints the sentence entered by the user
Prints each character in the sentence entered by the user.
Prints the number that represents each character in the sentence entered by the user.
Prints each word in the sentence entered by the user.
The outer circle represents the original letters and the inner circle represents the encrypted letters. Which of the following deciphers the following word:
UZWMV
ZEBRA
ZULUA
ZIPPO
ZBRR
The outer circle is the original letters and the inner circle is the encrypted letters. Which of the following encrypts the following word:
HIGHLIGHT
CDBCGDBCO
MIMMQNLMY
QNLMQNLMY
QNLMQNLMY
Use the encryption table in the above image to answer the questions. The key value used to encrypt messages is
+1
-1
+2
-2
Using the encryption table in the image, decrypt the following word:
ezhquzkd
fairvale
school
higher
lower
Using the encryption table in the image, which of the encrypted words represent the following word:
cryptography
dszqupisbqiz
dszquphsbqiz
bazquphsbqiz
dbzquphsbqiz
What is the output after running the following lines of code:
b
c
character
letter
What is the output of running these lines of code
71
39
100
71 39 100
100 39 71
100
39
71
In the above code, which of the following options represents a function?
split()
values
separated
for
In the above code, which of the following options represents a variable?
split()
values
separated
for
The primary colours used in computers are
Red, Green and Blue
Black , White and Red
Yellow, Blue and Red
Red, Yellow and Blue
In the above image, what is the green colour value represented in the red colour box on the right side.?
0
255
110
163
Which of the options represents the correct colour values for the purple colour in the image.
Red = 163
Blue = 0
Green = 231
Blue= 163
Red= 0
Green = 231
Red = 163
Green= 0
Blue = 231
Red = 0
Blue = 0
Green = 231
Which digits are used to represent decimal numbers?
From 0 to 9
0 and 1
from 0 to 8
from 0 to 16
Which digits are used to represent Binary numbers?
From 0 to 9
0 and 1
from 0 to 8
from 0 to 16
Which of the following functions separates the words in a string?
split()
ord()
chr()
print()
Which of the following functions converts a letter to the number that represents it?
split()
ord()
chr()
print()
Which of the following functions converts a number to the character that represents it?
split()
ord()
chr()
print()
What is the other name for repeating actions in code?
loop
variables
characters
action
What is the expected output when running the above lines of code:
A
B
C
D
a
b
c
d
A B C D
D C B A
What is the expected output when running the above lines of code:
The computer loops through the letters and print each of them on a separate line
The computer prints all letters at once
The computer will print the word letters
The computer will not print anything
Sam has written the code in the above image. When he runs the code there was an error. Which of the following options explains the error?
Sam should have used the word 'output' instead of 'write'
The computer doesn't understand the word 'write'
'Hi Crypto!' can not be printed
Sam must use the word 'input' instead of 'write'
Which of the following options explains the purpose of the above code?
The computer prints the number that represents the letter entered by the user
The computer prints the word 'ord()'
The computer prints the word 'code'
The computer prints the word 'character'
Which of the following explain a computer 'Variable'
A variable is a container that stores strings or numbers
A variable is a function that performs tasks
A variable is the code that represents characters
A variable is the character that represents a code
Explore all questions with a free account