Font size
WorksheetsPretest in Basic Programming
Total questions: 50
Worksheet time: 29mins
What is a variable?
Any inputted data
A type of algorithm
A laballed part of the computer's memory
A way of repeating a block of code
What type of data would your name be?
Real
Boolean
Integer
String
What type of data would Pi be?
Real
Integer
Boolean
Character
What type of data would the letter 'K' be?
Boolean
String
Character
Real
What type of data would either True or False be?
String
Character
Real
Boolean
What type of data would your age in years be?
Real
Integer
String
Boolean
What term is used to describe a variable being given a value?
Equals
Assignment
Input
Algorithm
What is meant by the term iteration?
A list of instructions for completing a task
Repeating a block of code
Giving a value to a variable
Breaking a problem down into simple parts
What is meant by the term 'selection'?
Giving a value to a variable
Making a decision between different conditions
Waiting for user input
Outputting the result of a calculation
Which of the following is NOT a mathematical operator?
+
=
/
&
Which of the following is a relational operator?
+
-
/
>
Which of the following is a logical operator?
IF
THEN
AND
ELSE
Which of the following is NOT a logical operator?
AND
OR
NOT
IF
In this algorithm, on what line is iteration first used?
3
4
5
6
In this algorithm, which of the following is a variable?
password
loop
output
while
It is the top programming language used by programmers from 2014 to 2018
C#
Java
Javascript
Phyton
Used by computer programmers to develop software programs, scripts and other set of instructions for computer to execute.
Body Language
Programming language
Basic Language
Colloquial Language
A person who develops a program using different programming language and collaborates with other specialist to improve his/her output.
Computer programming
Programming language
Computer program
Computer Programmer
It is called the process of writing, editing and debugging a source code.
Computer programming
Programming language
Computer program
Computer Programmer
A process of collecting instructions executed by the computer to perform a specific task.
Computer programming
Programming language
Computer program
Computer Programmer
A person who practices the skills of writing or editing source code.
Computer Technician
Computer Encoder
Computer Writer
Computer Programmer
ATM is machine that enable to dispense cash. ATM stands __________________.
Automated Tax Machine
Automated Teller Machine
Automated Tin Machine
Automated Top Machine
When you are planning to develop a program and you have a specific task to complete, the first thing you should do is _____________________________.
Start making detailed steps on what to do.
Start learning how to create a program.
Create a plan and sort out the things you need.
Start thinking logically which makes your program more creative
A programmable machine that can store, retrieve, and process data.
Mouse
Microphone
Typewriter
Computer
The set of rules that defines the combinations of symbols and forms of the code.
Virus
Syntax
Error
Bug
Refers to a graphical representation of an algorithm.
Computer Program
Algorithm
Flowchart
Basic Programming
It is a step-by-step procedure to resolve any problem.
Basic Programming
Algorithm
Flowchart
Computer Program
A computer programmer cannot write computer programs.
True
False
Which of the following is a sequence of instructions written using a computer Programming Language to perform a specified task by the computer.
Flowchart
Algorithm
Computer Program
Program Coding
What shape of flowchart symbol you will use to display the output?
Rectangle
Diamond
Oval
Parallelogram
Computer programming is also called program coding.
True
False
Which of the following is NOT a programming languages?
Ruby
Visual Basic
Java
Illustrator
Which of the following flowchart symbol is used to represent arithmetic instructions?
Input/Output
Terminal
Processing
Decision
Which of the following is NOT an advantage of Flowchart?
Flowchart act as a guide for blueprint during program designed.
It is difficult to draw flowchart for large and complex program
Flowchart are better way of communicating the logic of system.
Flowcharts help in debugging process.
What flowchart symbol used to answer yes/no question or true/false?
Processing
Connectors
Input/output
Decision
He is considered as the Father of Java programming language
James Osmolu
James Baldwin
James Gosling
James Cook
The codename of the first Java version released by Oracle.
Kestril
Merlin
Playground
Dolphin
In Java, there is no danger of reading bogus data when accidentally going over the size of an array.
Security
Portability
Simplicity
Automatic Memory Management
A Java motto is Write it once, run it everywhere. This is made possible by the Java virtual machine.
Simplicity
Portability
Security
Automatic Memory Management
A set of instructions that instructs the computer to perform a specific task.
Programming
Bar Code
Source code
Program
Program code used to interpret a program from source code to low-level code.
Morse Code
Source Code
bytecode
codex
A textual listing of instructions compiled or compiled into a computer executable program.
Morse Code
Source Code
bytecode
codex
A set of rules that define a set of symbols that are valid phrases or expressions of a language.
syntax
algorithm
equation
program
The company who acquired Sun Microsystems in 2010.
Microsoft
Apple
Huawei
Oracle
The name of the team who were task to develop the “Oak”.
Red Team
Blue Team
Yellow Team
Green Team
ar, given the following declaration:int[] ar = {2, 4, 6, 8 }0, 1, 2, 31, 2, 3, 40, 2, 4, 6What is the ArrayList nums if it is initially [5, 3, 1] and the following code is executed?
nums.add(6);
nums.add(0, 4);
nums.remove(1);
[4, 3, 1, 6]
[5, 3, 1, 6]
[4, 3, 6]
[4, 5, 3, 6]
What index value is used to locate the last element in the nums ArrayList?
nums.size()-1
nums.length()-1
nums.size()
nums.length
Given the ArrayList nums with the values [3, 7, 6, 0], what code below is the proper way to change the 7 to be a 5?
nums.set(1, 5)
nums.set(7, 5)
nums.set(5, 2)
nums[2] = 5
