Font size
WorksheetsP1 INTRO TO COMP 1-6
Total questions: 51
Worksheet time: 34mins
Is a graphical representation of an algorithm.
Algorithm
Flowchart
Computer Program
Programming Language
Programmers use flowchart for:
Stay connected with the program.
writing several codes
Program-planning
none of the above
OVAL is the flowchart symbol for?
to begin and end
to make decisions
to determine true or false
to answer yes or no
Arrows are use to..
confuse the programmer
guide the user
implement a code
connect the boxes or symbols in a flowchart
In flowcharting, PROCESS is represented by..
Oval
Parallelogram
Rectangle
Diamond
The Input/Output box is used when a question is asked to the user, or something is printed on the screen.
TRUE
FALSE
The process box is used when something happens, normally as a result of something in the program and is represented with this symbol.
Which is the best illustration of a flowchart?
The role of creating a correct algorithm or flowchart is needed before the actual coding.
TRUE
FALSE
A graphical representation of an algorithm to follow and program to execute.
Algorithm
Pseudocoding
Flowcharting
USE CASE
Pseudo is a Latin word means “true”, thus pseudocode means true code.
TRUE
FALSE
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.
TRUE
FALSE
C Language multi-line comments symbol.
/*... */
\\
//
{ }
What symbols do we use to represent a list in Python?
( )
[ ]
{ }
< >
To remove an item from a list, what command can we use?
append()
insert()
split()
remove()
why arrays are required?
searching
sorting
reading
passing
which statement is true about Arrays
1) Arrays can store a large number of value with single name.
2) Arrays are used to process many value easily and quickly.
3) The values stored in an array can be sorted easily.
4) The search process can be applied on arrays easily.
all above are true
name = 'Dave'
print (name)
Ovals in flowchart are
Input and output symbols
Processing symbols
Logical symbols
Terminal symbols (start/end)
How can you make you program easy to understand for another programmer? (2 answers)
Add comments to say what sections of code do
Use meaningful variable names
Provide a sound file to explain it
Suggest they email any questions to you
Operators that include AND, OR & NOT are
Boolean operators
Basic operators
Bespoke operators
Binomial operators
What is a computer program?
Instructions for the computer
Something fun that the computer can do
A game that you insert into the computer
Computer instructions are written in...
English
"code"
Complex maps
Repeating functions over and over.
Repeat function
Loop
Redundancy
Where does the following loop start from?
for x in range(6);
print(x)
0
1
4
5
6
Select the BEST statement related to string data type.
Contained all real numbers
Consisted of all letters, numbers and special symbol
Surrounded by single quotation marks (‘ ‘)
Used in making yes-or-no decisions
Which of the following is a numerical data type?
Boolean
Character
Float
String
State the meaning of = sign in an equation?
Assign a value to a variable
Used to compare two operator
To test some operation
Use as a program decision
Which one of the following special symbols are allowed in a variable name?
*
_
()
;
Quotation marks around a variable’s identifier imply
It is an integer
It is a string
It is a Boolean
It is a real
What does <= mean?
less than
less than or equal to
greater than
It represents the standard output stream of C++
cout
cin
clrscr()
The collective name given to spaces (blanks), horizontal and vertical tabs, newline characters, and comments
comment
new line
whitepsace
