Font size
WorksheetsMakScie-MidtermExam-CC101
Total questions: 80
Worksheet time: 2hrs 0mins
a graphical representation of a computer program in relation to its sequence of functions
flowchart
What is this symbol Mean?
Input/Output
Connector
Decision
Process
What is this symbol Mean?
Input/Output
Decision
Parallelogram
Process
What this symbol mean?
Diamond
Decision
True or False
Input/output
it as an exact list of instructions that conduct specified actions step by step in either hardware- or software-based routines.
Step by step
Pseudocode
Algorithm
Flowchart
is a method of expressing an algorithm design.
Mostly it is an informal way of programming description.
Step by step
Pseudocode
Algorithm
Flowchart
What is the symbol shows?
Connector
Start/End
Arrows
Restart
What is the symbol shows?
Connector
Start/End
Arrows
Restart
What is the symbol shows?
Connector
Start/End
Arrows
Restart
What is the picture shows?
Flowchart
Algorithm
Code
Pseudocode
What errors are shown on this flowchart?
Incorrect exit from 'Is employee exempt' decision
No end terminator
No direction arrows
Cannot have multiple entry points to an 'End' terminator
Incorrect decision shape
What error is is shown on this flowchart?
Incorrect exit from 'Is employee exempt' decision
No end terminator
No direction arrows
Cannot have multiple entry points to an 'End' terminator
Incorrect decision shape
What error is is shown on this flowchart?
Incorrect exit from 'Is employee exempt' decision
No end terminator
No direction arrows
Cannot have multiple entry points to an 'End' terminator
Incorrect decision shape
What error is is shown on this flowchart?
Incorrect exit from 'Is employee exempt' decision
No end terminator
No direction arrows
Cannot have multiple entry points to an 'End' terminator
Incorrect terminator shape
What error is is shown on this flowchart?
Incorrect exit from 'Is employee exempt' decision
No end terminator
No direction arrows
Cannot have multiple entry points to an 'End' terminator
Incorrect decision shape
How should pseudocode be written?
Abstract and generalized
Including syntax errors
With complex naming conventions
Simple and concise
What is a programming algorithm?
Set of rules to be followed by a computer program.
A sequence of code for a specific task
An error in coding
A type of computer virus
Which part of the program is responsible for performing the actual subtraction operation to find the difference of the numbers?
Variables declaration
Input statements
Output display
Calculation process
What is flowchart?
An encryption method
A debugging tool
A graphical representation of an algorithm
A detailed program output
What is pseudocode?
A formal programming language
A detailed yet readable description of what a computer program or algorithm should do.
A machine language
Code written in a specific programming language
Scenario: There is an algorithm in preparing rice. What is the first step in the given choices?
Cook the rice
Measure the rice
Rinse the rise
Serve the rice
The following image shows a simple arithmetical algorithm. What is the missing item here?
123
132
213
312
“Zayd has 32 packs of stickers. Each pack has 467 stickers. He wants to know how many stickers there are in all.” What do you think is the best algorithm to use in this situation?
Addition
Subtraction
Multiplication
Division
“Zayd has 32 packs of stickers. Each pack has 467 stickers. He wants to know how many packs he can give with an equal amount of stickers.” What do you think is the best algorithm to use in this situation?
Addition
Subtraction
Multiplication
Division
Given this expression
X = Y * C - 13
What flowchart symbol should be used?
Display
Input/Output
Manual Input
Process
Using the Manual Input symbol,
you must write the word "input" to emphasize
that you are asking a user for an input.
TRUE
FALSE
The (a) symbol is used to contain a condition
that results in the branching of paths.
(Use the flowchart symbol name, not the shape)
The (a) symbol is used to indicate where
the information will be printed in a process flow.
(Use the flowchart symbol name, not the shape)
Which process statement directs a command to compare the value of variables X and Y if they are equal?
X = Y
X > Y
X < Y
X == Y
Challenge Question
What flowchart symbol is used for the statement below?
Z == X + Y - W / 13
Process
Decision
Input
Assignment
Yes
19
19
19
What is the value of i after this loop runs?
i = 20
i = 19
i = 10
i = 0
What does the code output?
hi
bye
hi
bye
hi
bye
hi
bye
hi
hi
hi
bye
What does the code output?
hi
It won't output anything
It will output an error!
It will output "hi" infinitely
What does the code output?
0
1
2
3
1
2
3
0
1
2
What does this program output?
x is 0
x is 1
x is 3
x is 4
The value of radix in binary number system is ________.
2
8
10
1
Which of the following is NOT a positional number system?
Roman Number System
Octal Number System
Binary Number System
Hexadecimal Number System
The binary equivalent of the decimal number 10 is _______.
0010
10
1010
010
Convert the binary equivalent 10101 to its decimal equivalent.
21
12
22
31
Which of the following is NOT a binary number?
1111
101
11E
000
Which of the following is NOT a hexadecimal number
1A
1D
1E
1G
What is the binary equivalent of octal 10?
1000
1001
1100
1010
What is the binary equivalent of decimal 15?
1010
1101
1110
1111
What is the binary equivalent of hexadecimal A5?
10101101
10100101
11010011
10101010
What is the decimal equivalent of binary 110?
8
7
6
9
What is the decimal equivalent of octal 20?
16
18
22
20
What is the decimal equivalent of hexadecimal 14?
18
22
20
24
What is the octal equivalent of binary 1101?
13
14
15
16
What is the octal equivalent of decimal 30?
36
38
37
35
What is the octal equivalent of hexadecimal 14?
13
14
15
16
What is the hexadecimal equivalent of binary 1110?
E
F
D
B
What is the hexadecimal equivalent of decimal 18?
10
11
12
13
What is the hexadecimal equivalent of octal 15?
B
C
D
E
What is the decimal equivalent of octal 31?
25
26
27
28
What is the octal equivalent of binary 1110?
14
16
15
13
What is the hexadecimal equivalent of octal 16?
F
E
D
C
What is the hexadecimal equivalent of decimal 22?
13
14
15
16
What is the binary equivalent of hexadecimal A6?
1010 0101
1010 1100
1010 1010
1010 0110
What is the binary equivalent of decimal 14?
1110
1010
1101
1011
What is the octal equivalent of binary 1101?
13
14
15
16
Any number system that has a base number of 16.
Binary Number System
Decimal Number System
Octal Number System
Hexadecimal Number System
In the Octal number system conversion, how do you convert the octal numbers to its binary equivalent?
by multiplying the octal numbers by 8
by substituting each octal number to its four bit binary equivalent
by multiplying the octal numbers by 2
by substituting each octal number to its three bit binary equivalent
In the hexadecimal number system conversion, how do you convert the hexadecimal numbers to its binary equivalent?
by substituting each hexadecimal number to its two bit binary equivalent
by substituting each hexadecimal number to its three bit binary equivalent
by substituting each hexadecimal number to its four bit binary equivalent
by substituting each hexadecimal number to its five bit binary equivalent
What is the main function of binary code?
Turning on switches to off
Allowing computers to represent and store data
Providing a gateway into higher mathematics
Allowing computers to interact with humans
How is our number system different from the binary system?
Our number system is base 5; the binary system is base 3
Our number system is base 10; the binary system is base 2
Our number system is base 10; the binary system is base 1
Our number system is base 100; the binary system is base 2
What do you mean by the base in number system?
Exponent or Powers
Place Value
Greatest Number
Total number of digits used in a number system.
What is -80 using 8-bit two's complement representation?
1011 0000
1011 0001
1111 0000
0101 0000
What is -15 using 8-bit two's complement representation?
1000 0000
0000 1111
1000 1111
1111 0001
in Binary Addition Rules - What does 1 + 1 + 1 equal?
3
0 carry the 1
1 carry two 1s
1 carry the 1
in Binary Addition Rules - What does 1 + 1 equal?
0 carry the 1
2
1 carry the 1
0
in Binary Addition Rules - What does 0 + 0 equal?
0
0 carry the 1
1
2
in Binary Addition Rules - What does 1 + 0 equal?
1
0
0 carry the 1
1 carry the 1
