Font size
WorksheetsRECF Programming Practice
Total questions: 100
Worksheet time: 1hrs 6mins
Yes
What should be considered when designing an algorithm?
If there is more than one way of solving the problem
If the correct hardware is being used
If the correct software is being used
What is pseudocode?
A way of describing a set of instructions in text form
A specific programming language that all computers use
A diagrammatic representation of a set of instructions
What is a flowchart?
A flowchart is a text-based way of designing an algorithm
A flowchart is a specific programming language
A flowchart is a diagram that represents a set of instructions
When can algorithms be used?
Only with computers
To design a solution to any problem
Only for programming
Only for mathematics
Algorithm
A programming language with many commands and features designed to make common tasks easier to program. Any high level functionality is encapsulated as combinations of low level commands.
To repeat in order to achieve, or get closer to, a desired goal.
A precise sequence of instructions for processes that can be executed by a computer.
Putting commands in correct order so computers can read the commands.
Iterate
To repeat in order to achieve, or get closer to, a desired goal.
A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements.
A collection of commands made available to a programmer.
Putting commands in correct order so computers can read the commands.
Sequencing
A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements.
To repeat in order to achieve, or get closer to, a desired goal.
Putting commands in correct order so computers can read the commands.
A description of the behavior of a command, function, library, API, etc.
Function
A base-16 number system that uses sixteen distinct symbols 0-9 and A-F to represent numbers from 0 to 15.
A problem solving approach (also known as stepwise design) in which you break down a system to gain insight into the sub-systems that make it up.
A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements.
A named group of programming instructions. Reusable abstractions that reduce the complexity of writing and maintaining programs.
Documentation/Commenting
A precise sequence of instructions for processes that can be executed by a computer.
A named group of programming instructions.
A simplified representation of something more complex.
A description of the behavior of a command, function, library, API, etc.
For Loop
The action of doing something over and over again.
· To repeat in order to achieve, or get closer to, a desired goal.
Loops that have a predetermined beginning, end, and increment (step interval).
· Putting commands in correct order so computers can read the commands.
What happens to the code in the body of an "if" statement if the condition is false?
The computer determines if it is essential to the program and if it is, then the code is executed anyway.
The code moves to a coastal city, attempting to find love and start a family. However, low waged and crushing mortgage rates lead to it moving back home where it sits, hoping that one day it will be executed.
The code is skipped.
The code stages a revolution and attempts to take over the program, ultimately unsuccessfully, which leads to it not being executed.
Select all the statements that describe how an if/else chain works.
Each condition is tested, executing the code for each condition that is true.
Each condition is tested, until a true condition is found, then the code for that condition is executed and the remainder of the chain is skipped.
If none of the conditions are true, then the computer looks for an "else" statement to execute.
If the last condition in the chain is false, then the computer looks for an "else" to execute.
If any condition is false, then the computer looks for an "else" to execute.
What is the output?
int e=3;
if(e>=5)
System.out.print("same");
else
System.out.print("notsame");
System.out.print("done");
same
notsame
not same; done
samedone
notsamedone
What does a variable do?
Says a name variable
Prints out a name variable
Stores a value and can be used many times
Collects an output and stores it
Helps find things in a program
How do computer scientists, engineers, and mathematicians describe "time complexity" (how long an algorithm will take given an amount of data to be analyzed)?
Big-O notation
Big-N notation
N notation
Small-O notation
Small-N notation
What does a linear time complexity mean: O(n)?
The amount of time taken to complete an algorithm is independent from the number of elements input.
The amount of time taken to complete an algorithm is directly proportional to the number of inputted elements
The amount of time taken to complete an algorithm is proportional to the number of items inputted to the power of n: nn
The amount of time taken to complete an algorithm is proportional to 2n of items inputted.
The time taken to complete an algorithm will increase at a rate of n2 to the number of inputted elements
A statement in programming
Expresses an action to be carried out
Always returns results like expressions
Rules controlling how components in a program are combined
An instruction to perform a task, usually one word
The condition that asks whether or not Ms. Pacman is touching a ghost is known as a(n)...
A loop that continues to repeat so long as a condition is true.
If, then
While
Until
Always
Putting commands in correct order so computers can read the commands.
Sequencing
Pair Programming
Turtle Programming
Abstraction
Function
I and II only
II and III only
Which is NOT an acceptable example of an infinite loop?
while(true)
while(1==1)
while(not false)
while(55==55)
Statements run in English reading order. As soon as one command is complete, the next runs.
(right-to-left, top-to-bottom).
(left-to-right, bottom-to-top).
(left-to-right, top-to-bottom).
(right-to-left, bottom-to-top).
Click ALL answers which result in an "X" printed.
a = 3, b = 3, c = 3
a = 5, b = 4, c = 7
a = 1, b = 3, c = 5
a = 6, b = 4, c = 3
a = 5, b = 5, c = 3
What is output?
Jackson
Memorial
JacksonMemorial
There is no ouptut
Which of these is the correct format for an "if/else" statement?
What will be the value of after this set of conditional statements?
a += 2; means a = a + 2;
a += 3; means a = a + 3;
7
9
10
4
Assembly language has some recognizable English phrases (such as MOV and HALT)
Which declaration will throw an error?
double num = 8;
int averageGrade = 89.7;
boolean done = false;
String done = "true";
How would you declare a variable that tells you that someone passed a class?
boolean passed = 'true';
boolean passed = true;
passed = true;
String passed = "true";
LOAD r2,
ADD r1,
DIV r1, #2
The action of doing something over and over again.
Looping
Bugging
Programming
Can this code be written better?
Yes, by using loops (repeat blocks)
No, this is the best way to right this code
Look at the puzzle and the code below. What can you fix in the code to help the bird get to the pig?
Remove a move forward block
Add a move forward block
Change the first turn block to left
Change the second turn block to left
What shape does this code make?
Rectangle
Triangle
Square
Circle
Which logic gate is this?
AND
OR
XOR
NOT
What type of logic is this table showing:
AND
OR
NOT
NOR
What type of logic is this table showing:
AND
OR
NOR
XOR
What will the circuit's output be?
1
0
What will the circuit's output be?
1
0
What will the circuit's output be?
1
0
What gate does this logic symbol represent?
AND
NOT
OR
THE
What logic gate has this truth table?
NOT
THE
AND
OR
Which is the truth table for the XOR gate?
Which logic gate is represented by this truth table?
Two transistors in series is a:
Not Gate
AND Gate
OR Gate
NAND Gate
Which of these are the correct place values for binary?
128,64,32,16,8,4,2,1
128, 68,34,12,6,4,2,1
1,0
0,1
What is 0111 in hex
E
A
7
3
What is B in Decimal
10
11
12
13
What is E in Decimal
10
12
14
16
What is A in binary
1111
0101
1010
0110
What is D in binary
1111
1101
1011
0111
How many nibbles are there in a byte?
1
2
4
8
Smallest to largest, which of the below answers is correct?
bit, nibble,byte,megabyte,kilobyte,terabyte,petabyte
nibble, bit,byte,kilobyte,megabyte,terabyte,petabyte
bit,byte,nibble,kilobyte,megabyte,petabyte,terabyte
bit, nibble,byte,kilobyte,megabyte,terabyte,petabyte
What does ROM stand for
Read Only Memory
Random Only Memory
Random On Memory
Read On Memory
SnapChat, Google Chrome, Canvas, and Adobe Photoshop are examples of ....
Application Software
Operating systems
Mobile devices
Internet Service Providers
CDs and DVDs are an example of what type of storage?
Optical
Magnetic
USB
Cloud
When searching for a DNS, your computer will automatically check it's memory, which is also called
cache
top level domain
IP address
root
DNS maps human, readable domain names into actual ___.
IP addresses.
domain names.
servers.
caches.
This device connects a network to the internet.
A CPU
A switch
A modem
A printer
An example of a URL(website) address is
http://www.rcsnc.org
209 Bob hardin road
PO Box 784
Dledford@yahoo.com
What is malware?
Malicious software
Software made by a company called Mal
Malicious hardware
Clothes that hackers wear
What does DDOS stand for?
Denial Data Operation System
Domain Data Overwrite Service
Distributed Domain Or Service
Distributed Denial Of Service
Which of the following is a phishing email??
You have won a lottery!! Follow this link to claim it!!
Your bank account has been compromised. Login here to protect yourself.
Help.I am stuck aboard and urgently need money transferred to me to get home.
All of the above. Be careful.
Which of these is an indicator that the website is secure.
Bruce Lee photo
The http://
The https://
The https:\\
Several users have called the help desk to complain that they are being redirected to websites different from the addresses they entered. Which type of attack is taking place?
IP spoofing
ARP spoofing
DNS spoofing
Man-in-the-middle
What does 'integrity of data' mean?
"Accuracy and completeness of the data"
"Data should be viewable at all times"
"Data should be access by only the right people"
"None of the above"
Viruses, Worms and Trojan horses are all ______________ software, that can cause damage to your computer.
Malicious
Metadata
Mysterious
Machine
What is Cyber Security?
Refers to when security bring viruses to our computer by spying
Refers to the computer when security protects the computer for viruses such as Malware, Spyware ,worm etc.
Refers to the body of technologies, processes, and practices designed to protect networks, devices, programs, and data from attack, damage, or unauthorized access.
Refers the state of being free from danger or threat
