wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Java Progamming

Total questions: 17

Worksheet time: 9mins

Name
Class
Date
1.
Which type of data is used to enter the value (1234.5)?
a)
Integer
b)
Double 
c)
Char
d)
Void
2.
Which type of data is used to enter the value (True)?
a)
Float
b)
Boolean
c)
Check box
d)
ٍString
3.

We are use Scanner Library in java for...

a)

Give permissions to the user

b)

Correcting software errors

c)

Allows user to read data

d)

Allows the user to enter data

4.
When we want to print in Java, we use the code ......
a)
system.out.print();
b)
System.out.println();
c)
System.Out.Printf();
d)
System.out.show();
5.

Is String a primitive data type?

a)

Yes

b)

No

c)

Both

6.
A variable that holds a character
a)
String
b)
boolean
c)
int
d)
char
7.
What is at the end of a line of code?
a)
#
b)
;
c)
)
d)
>
8.

The first phase in problem solving is...

a)

Problem Analysis

b)

IPO Chart

c)

Design A Solution

d)

Documentation

9.

A list of steps, arranged in a specific logical order which, when executed, produces the solution for a problem is called...

a)

Algorithm

b)

Solution

c)

Pseudocode

d)

Flowchart

10.

What is Pseudocode

a)

A semiformal, English-like language with limited vocabulary that can be used to design and describe algorithms.

b)

A formal language that is specifically used to write program.

c)

A graph used to depict or show a step by step solution using symbols which represent a task.

d)

A series of steps or statements that are executed in the order they are written in an algorithm.

11.

You can have an IF without and else but not an else without an IF

a)
True
b)
False
12.

An Algorithm Must contain

a)

output

b)

Input

c)

User Instruction

d)

Lines

e)

Shapes

13.
What does an IF statement do?
a)
Closes the program
b)
Makes a decision
c)
Asks a question
14.

This is a graphical representation of an algorithm

a)

Computer Program

b)

Binary Diagram

c)

Decomposition

d)

Flowchart

15.

What does this flowchart symbol represent?

a)

Starting and stopping

b)

Actions

c)

Sub-routines

d)

Decisions

16.
In a flowchart how are symbols connected?
a)
Symbols do not get connected together in a flowchart
b)
With lines and an arrow to show the direction of flow
c)
With dashed lines and numbers
d)
With solid lines to link events
17.
On a flowchart, a decision will always have:
a)
Two exit arrows
b)
One exit arrow
c)
Three exit arrows
d)
Four exit arrows