wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Programming II - Introduction

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

JavaScript is a simpler form of Java.

a)

True

b)

False

2.

What is the extension for a JavaScript file?

a)

.java

b)

.jar

c)

.js

d)

.sj

3.

These are used to put information that can be useful later, and in JavaScript these are ignored by the browser.

a)

Comments

b)

Case Sensitivity

c)

Data Types

d)

Statements

4.

It can be Numeric, String, Boolean or Null.

a)

Comments

b)

Case Sensitivity

c)

Data Types

d)

Statements

5.

Inside which HTML element do we put the JavaScript?

a)

<js>

b)

<script>

c)

<scripting>

d)

<javascript>

6.
A string;
a)
Expresses a true false statement
b)
can contain letters, numbers, spaces, and symbols.
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
7.

what is the IP address of www.microsoft.edu

a)

192.168.1.2

b)

172.16.31.1

c)

10.0.0.1

d)

23.200.61.223

8.
A boolean;
a)
Expresses a true false statement
b)
can contain letters, numbers, spaces, and symbols.
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
9.

When we are done with a line what do we put at the end?

a)

a colon :

b)

a semi-colon ;

c)

a period .

d)

a quotation mark "

10.

When we surround a word with quotes "David" it's called ?

a)

a program

b)

a loop

c)

a string

d)

a command

11.

What is the symbol pair used to write a new line within a string values?

a)

\*

b)

\'

c)

\n

d)

\br

12.
What will the output be from the following code?
print("Hello world!\nHello world!")
a)
Hello world! Hello world!
b)
Hello world!
Hello world!
c)
SyntaxError
d)
Hello world!
13.
What is python named after
a)
The snake
b)
Television show called Monty Python
14.
Tells the interpreter that the code which follows is a function
a)
const
b)
int
c)
def
d)
while
15.
Python identifies blocks of code by
a)
BEGIN and END keywords
b)
{ and }
c)
aligning up the starts of lines (indentation)
d)
guessing
16.

What is the position of the name 'Paula' in the following array:

names = ["Paul","Phillip","Paula","Phillipa"]

a)

0

b)

1

c)

2

d)

3

17.

Which is the Python logo?

a)
b)
c)
d)
18.

When did Ryan Dahl author Node.js?

a)

2007

b)

2008

c)

2009

d)

2010

19.

When was MongoDB created?

a)

In January 2008

b)

In February 2009

c)

In March 2010

d)

In April 2011

20.

MySQL , Mongo, and Sqlite are considered?

a)

Data Systems Frameworks

b)

Application Development Frameworks

c)

Network Systems Frameworks