Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Coding (JavaScript)

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

_________________ consists of specific words and symbols to express a problem solution.

a)

A programming language

b)

Software

c)

Hardware

d)

A computer

e)

An application

2.

Java is _____________

a)

A procedural language

b)

A functional language

c)

An object oriented language

d)

A fourth generation language

e)

A spoken language

3.

Problem domain describes

a)

The set of problems that are encountered when testing a program

b)

The alternate ways to design the solution

c)

The challenges in implementing the solution

d)

The real world issues that are key to a solution

e)

All of the above

4.

In order for a program to run on a computer, it must be expressed in_______________

a)

An assembly language

b)

A machine language

c)

A high level language

d)

An object oriented language

e)

A fourth generation language

5.

A syntax error is a __________________

a)

A logical error

b)

A compile time error

c)

A run time error

d)

A bug

e)

An exception

6.

Which of the following is NOT one of the four basic software development activities?

a)

Establishing the requirements

b)

Creating a design

c)

Preliminary practice coding

d)

Testing

e)

Implementing the design

7.

Software requirements specify _______________

a)

What a program should accomplish

b)

Which programming language the developer should use

c)

How objects should be encapsulated

d)

How a solution should be implemented

e)

A programming schedule

8.

The______________ of an object define it define it's potential behaviors.

a)

Attributes

b)

White spaces

c)

Variables

d)

Methods

e)

Name

9.

Which of the following will is considered a logical error?

a)

Forgetting a semicolon at the end of a programming statement

b)

Typing a curly bracket when you should have typed a parenthesis

c)

Multiplying two numbers when you meant to add them

d)

Dividing by zero

e)

Misspelling an identifier

10.

Which of the following lines is a properly formatted comment?

a)

// This is a comment

b)

/* This is a comment */

c)

/*

this is a comment

*/

d)

Both a and b

e)

A, b and c

11.

The Java compiler translates Java source code into_____________.

a)

Java bytecode

b)

C++

c)

Assembly code

d)

Machine code

e)

An object oriented language

12.

Classes can be created from other classes by using__________.

a)

Encapsulation

b)

Polymorphism

c)

Inheritance

d)

Attributes

e)

Machine code

13.

Which of the following is not a valid Java identifier?

a)

answer_7

b)

highest$

c)

anExtremelyLongIdentifierIfYouAskMe

d)

2ndlevel

e)

thirdNumber

14.

Which tasks is/are done in the implementation activity in the software development process?

a)

Specify what the program must accomplish

b)

Determine how a program will accomplish it's requirements

c)

Write the source code that will solve the problem

d)

Ensure that the program solves the targeted problem

e)

All of the above

15.

Which of the following describes the act of ensuring that a problem solved the intended problem in all cases?

a)

Establishing the requirements

b)

Testing

c)

Preliminary practice coding

d)

Implementing the design

e)

Creating a design

16.

An editor is typically included as part of an IDE.

a)
True
b)
False
17.

Comments affect the run-time execution of a program.

a)
True
b)
False
18.

A reserved word can be used to name a method.

a)
True
b)
False
19.

"Purchase a computer" is one of the problem-solving steps.

a)
True
b)
False
20.

In Java, total, ToTal and TOTAL are all different identifiers.

a)
True
b)
False
21.

Testing is the act of ensuring that a program will solve the targeted problem.

a)
True
b)
False
22.

The attribute of an object defines it's potential behaviors.

a)
True
b)
False
23.

An interpreter is a program that translates code that is written in one language into equivalent code in another language.

a)
True
b)
False
24.

Syntax rules dictate the form of a program. Semantics dictate the meaning of the program statements.

a)
True
b)
False
25.

An object should never be encapsulated.

a)
True
b)
False