wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

P1 INTRO TO COMP 1-6

Total questions: 51

Worksheet time: 34mins

Name
Class
Date
1.

Is a graphical representation of an algorithm.

a)

Algorithm

b)

Flowchart

c)

Computer Program

d)

Programming Language

2.

Programmers use flowchart for:

a)

Stay connected with the program.

b)

writing several codes

c)

Program-planning

d)

none of the above

3.

OVAL is the flowchart symbol for?

a)

to begin and end

b)

to make decisions

c)

to determine true or false

d)

to answer yes or no

4.

Arrows are use to..

a)

confuse the programmer

b)

guide the user

c)

implement a code

d)

connect the boxes or symbols in a flowchart

5.

In flowcharting, PROCESS is represented by..

a)

Oval

b)

Parallelogram

c)

Rectangle

d)

Diamond

6.

The Input/Output box is used when a question is asked to the user, or something is printed on the screen.

a)

TRUE

b)

FALSE

7.

The process box is used when something happens, normally as a result of something in the program and is represented with this symbol.

a)
b)
c)
d)
8.

Which is the best illustration of a flowchart?

a)
b)
c)
d)
9.

The role of creating a correct algorithm or flowchart is needed before the actual coding.

a)

TRUE

b)

FALSE

10.

A graphical representation of an algorithm to follow and program to execute.

a)

Algorithm

b)

Pseudocoding

c)

Flowcharting

d)

USE CASE

11.

Pseudo is a Latin word means “true”, thus pseudocode means true code.

a)

TRUE

b)

FALSE

12.

Writing pseudocode has no restriction of styles and its only objective is to describe the high-level steps of the algorithm in a much realistic manner in natural language.

a)

TRUE

b)

FALSE

13.

C Language multi-line comments symbol.

a)

/*... */

b)

\\

c)

//

d)

{ }

14.
What is the only thing that computers understand?
a)
Machine Code
b)
Low Level Languages
c)
High Level Languages
d)
Algorithms
15.
Before a computer can understand a program it must be...
a)
Translated into its machine code.
b)
Translated into a high level language.
c)
Translated into a low level language.
d)
Converted into binary.
16.
A list of instructions that enable a computer to perform a specific task is a...
a)
Computer Program
b)
Algorithm
c)
Machine Code
d)
Binary Code
17.
When writing a computer program most program use...
a)
A High Level Language
b)
A Low Level Language
c)
A Machine Code
d)
An Algorithm 
18.
Resolving errors in a program is known as...
a)
Debugging
b)
Refixing
c)
Error Checking
d)
Problem Solving
19.
Which of the following is not a high level programming language?
a)
Assembly
b)
C++
c)
Java
d)
Python
20.
Languages that relate to the architecture and hardware of a specific computer are known as...
a)
High Level Languages
b)
Low Level Languages
c)
Simplex Languages
d)
Complex Languages
21.
Which type of translator creates an executable file of machine code from a program written in a high level language? 
a)
Compiler
b)
Assembler
c)
Interpreter
d)
Executor
22.

What symbols do we use to represent a list in Python?

a)

( )

b)

[ ]

c)

{ }

d)

< >

23.

To remove an item from a list, what command can we use?

a)

append()

b)

insert()

c)

split()

d)

remove()

24.
What is a string?
a)
A type that represents sequences of characters.
b)
One of the values on which an operator operates.
c)
A type that represents whole numbers.
d)
A combination of variables, operators, and values that represents a single result value.
25.

why arrays are required?

a)

searching

b)

sorting

c)

reading

d)

passing

26.

which statement is true about Arrays

a)

1) Arrays can store a large number of value with single name.

b)

2) Arrays are used to process many value easily and quickly.

c)

3) The values stored in an array can be sorted easily.

d)

4) The search process can be applied on arrays easily.

e)

all above are true

27.
Yes/No
a)
Boolean
b)
Lookup
c)
Text
d)
Memo
28.
12/4/16
a)
Text
b)
Date
c)
Memo
d)
Lookup
29.
To create a newline at the end of prompt, you can use which of the following expressions?
a)
\new
b)
\n
c)
\break
d)
\return
30.
The number or word we give to a variable
a)
Value
b)
Bug
c)
Information
d)
Text
31.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *
32.
What will be the output?
name = 'Dave'
print (name)
a)
Dave
b)
'Dave'
c)
name
d)
(name)
33.
Which of the following shows a logical error?
a)
while x>2 AND x<1:
b)
for index in range(:
c)
print(Hello")
34.
A function...
a)
Never has parameters
b)
Always returns a value
c)
Must has parameters
d)
Does not return a value
35.
The keyword in Python to tell that you are writing a function is...
a)
function
b)
def
c)
result
d)
return
36.
How many times will this loop run?
a)
10
b)
9
c)
4
d)
5
37.

Ovals in flowchart are

a)

Input and output symbols

b)

Processing symbols

c)

Logical symbols

d)

Terminal symbols (start/end)

38.

How can you make you program easy to understand for another programmer? (2 answers)

a)

Add comments to say what sections of code do

b)

Use meaningful variable names

c)

Provide a sound file to explain it

d)

Suggest they email any questions to you

39.

Operators that include AND, OR & NOT are

a)

Boolean operators

b)

Basic operators

c)

Bespoke operators

d)

Binomial operators

40.

What is a computer program?

a)

Instructions for the computer

b)

Something fun that the computer can do

c)

A game that you insert into the computer

41.

Computer instructions are written in...

a)

English

b)

"code"

c)

Complex maps

42.

Repeating functions over and over.

a)

Repeat function

b)

Loop

c)

Redundancy

43.

Where does the following loop start from?

for x in range(6);

print(x)

a)

0

b)

1

c)

4

d)

5

e)

6

44.

Select the BEST statement related to string data type.

a)

Contained all real numbers

b)

Consisted of all letters, numbers and special symbol

c)

Surrounded by single quotation marks (‘ ‘)

d)

Used in making yes-or-no decisions

45.

Which of the following is a numerical data type?

a)

Boolean

b)

Character

c)

Float

d)

String

46.

State the meaning of = sign in an equation?

a)

Assign a value to a variable

b)

Used to compare two operator

c)

To test some operation

d)

Use as a program decision

47.

Which one of the following special symbols are allowed in a variable name?

a)

*

b)

_

c)

()

d)

;

48.

Quotation marks around a variable’s identifier imply

a)

It is an integer

b)

It is a string

c)

It is a Boolean

d)

It is a real

49.

What does <= mean?

a)

less than

b)

less than or equal to

c)

greater than

50.

It represents the standard output stream of C++

a)

cout

b)

cin

c)

clrscr()

51.

The collective name given to spaces (blanks), horizontal and vertical tabs, newline characters, and comments

a)

comment

b)

new line

c)

whitepsace