wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Topic 1-2: Introduction to Computer & Programming Language

Total questions: 13

Worksheet time: 13mins

Name
Class
Date
1.

Which of these is NOT an example of high-level language?

a)

C

b)

C++

c)

Java

d)

Assembly

2.

Which one of the following statement is TRUE for Assembly language?

a)

This language need not be translated into machine language

b)

It is the easiest language to write programs

c)

It uses mnemonic codes

d)

All of these

3.

__________ translate from assembly language into specific machine language

a)

Compiler

b)

Assembler

c)

JVM

d)

Interpreter

4.

____________ translates from high level language into specific machine language

a)

Compiler

b)

Assembler

c)

JVM

d)

Interpreter

5.

What is the extension name given to a bytecode file in a Java program compilation?

a)

.java

b)

.class

c)

.bytecode

d)

.txt

6.

What is the interpreter software used to execute bytecode known as?

a)

JVM

b)

Java

c)

Assembler

d)

Compiler

7.

Which of these statements is TRUE about Java language compilation?

a)

To get a Java source code to run, you need to run both Java compiler and interpreter on it

b)

Java bytecode is the Javascript code produced from compilation

c)

Java bytecode is not machine dependent, it can run on any processor

d)

A Java interpreter is machine dependent

8.
Choose a Single Line Comment in Java Language below?
a)
//Some comments
b)
Some comments//
c)
/*Some comments*/
d)
*/Some comments/*
9.
Syntax errors are always spotted when the program is compiled or interpreted.
a)
True
b)
False
10.
Syntax errors are caused by incorrectly typed source code.
a)
True
b)
False
11.
A program won't run if there is a logic error.
a)
False
b)
True
12.

Which statement BEST describes logic errors?

a)
An error in a program that causes it to produce incorrect ouputs but not a crash.
b)
An error in a program that causes it to crash.
c)
An error in the program caused by mis-spelt instructions.
d)
An error in a program caused by hardware failure.
13.

System.out.print(5/0);


is an example of _________ error.

a)

syntax

b)

logic

c)

runtime