NEW
Font size
S
M
L
XL
WorksheetsCreative Coding Test Review
Total questions: 20
Worksheet time: 20mins
Name
Class
Date
1.
Which of the following is not a basic Boolean operator?
a)
AND
b)
NOT
c)
FOR
d)
OR
2.
Which of the following codes allow you to create comments in HTML?
a)
/* */
b)
#
c)
<!-- -->
d)
//
3.
Which of the following is generally NOT considered an interpreted language?
a)
Java
b)
Python
c)
HTML
d)
JavaScript
4.
Which of the following is generally NOT an advantage of using an interpreted language instead of a compiled language?
a)
program is easier to create
b)
program is more portable
c)
program performance is faster
d)
smaller program size
5.
How many bytes will it take to represent 76 bits of data?
a)
8 bytes
b)
9 bytes
c)
10 bytes
d)
608 bytes
6.
How many bits will it take to represent 9 bytes of data?
a)
1 bit
b)
2 bits
c)
3 bits
d)
72 bits
7.
What would be the best choice of data type to store a person's full name?
a)
integer
b)
Boolean
c)
string
d)
floating point number
8.
What would be the best choice of data type to store the results of a mathematical operation?
a)
integer
b)
Boolean
c)
string
d)
floating point number
9.
What would be the best choice of data type to store a person's age (in years)?
a)
integer
b)
Boolean
c)
string
d)
floating point number
10.
What would be the best choice of data type to store a user's response to a yes or no question?
a)
integer
b)
Boolean
c)
string
d)
floating point number
11.
How many UNIQUE characters are between the quotations in the line of code below:"Hello World!"
a)
9
b)
10
c)
11
d)
12
12.
Which of the following can be used to combine two strings to create a new string?
a)
concatenation
b)
algorithm
c)
conditional
d)
variable
13.
Which of the following can be used to store data in a computer program?
a)
concatenation
b)
algorithm
c)
conditional
d)
variable
14.
Which of the following should you use if you need to execute code repeatedly based on a certain conditions?
a)
concatenation
b)
algorithm
c)
conditional
d)
loop
15.
The Python code below is an example of which programming term?
person = input('Enter your name: ')
print('Hello', + person)
person = input('Enter your name: ')
print('Hello', + person)
a)
concatenation
b)
algorithm
c)
conditional
d)
loop
16.
The Python code below is an example of which programming term?
x = int(input("Please enter an integer: "))
if x<0:
x=0
print("Your negative number was changed to zero")
x = int(input("Please enter an integer: "))
if x<0:
x=0
print("Your negative number was changed to zero")
a)
concatenation
b)
algorithm
c)
conditional
d)
loop
17.
For which programming language is the "hello world" code below written?
hello world
hello world
a)
HTML
b)
JavaScript
c)
Python
d)
C#
18.
For which programming language is the "hello world" code below written?
document.write('hello world');
document.write('hello world');
a)
HTML
b)
JavaScript
c)
Python
d)
C#
19.
For which programming language is the "hello world" code below written?
using System;
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello, world!");
}
}
using System;
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello, world!");
}
}
a)
HTML
b)
JavaScript
c)
Python
d)
C#
20.
For which programming language will inconsistent indentation cause a syntax error?
a)
HTML
b)
JavaScript
c)
Python
d)
C#
Reset
