WorksheetsComputer Programming 2 - Final Exam
Total questions: 37
Worksheet time: 1hrs 26mins
2010
2010105
2010510
20102010
20101020
The sum of all the integers greater than y but less than or equal to x
The sum of all the integers greater than or equal to y but less than or equal to x
The sum of all the integers greater than y but less than x
The sum of all the integers greater than y but less than or equal to x
The sum of all the integers less than y but greater than or equal to x
0123
00123
0010012
00100123
001001200100123
1 4 10 2 3 4 7 5
1 2 4 6 10 7 3 5
1 2 3 10 6 7 4 5
4 3 1 2 6 7 10 5
6 3 7 4 2 1 10 4
1 1 2 3 4 5 6
2 2 3 4 5 6 7
6 6 5 4 3 2 1
7 7 6 5 4 3 2
7 7 7 7 7 7 7
Mail m = p[10].getBox (57) .getmail (4);
Mail m = p[9].getBox (56).getMail(3);
Mail m = p.geMail (57) .getMail (4) [10];
Mail m = getMail (getBox (p[9], 560, 3)
Mail m = new Mail (10, 57,.4);
I only
II only
III only
I and II only
II and III only
A
D
ABD
ABCD
ABCDE
-2 -1 0
-2 -1 0 1 2
0 1 2 0 1 2 0 1 2
-2 0 2
-2 -1 0 0 1 2 2 3 4
The process of developing a sequence of instructions to enable a computer to accomplish a particular task.
Iterative Algorithm
Assembly Languages
Computer Programming
How many values does a Boolean variable have?
4
3
2
1
Infinite
A Boolean expression...
Fixes any errors in the line of code
Sets everything in it equal to each other
Checks if something is true or false
Loops the program to continue infinitely
What is the output of an OR gate if its inputs are 0 and 0?
1
0
What is the output of an OR gate if its inputs are 0 and 1?
1
0
What is the output of an AND gate if its inputs are 1 and 0?
1
0
What is the output of an AND gate if its inputs are 1 and 1?
1
0
Which of these are logic gates?
AND
OR
NOT
IF
ELSE
The smallest number represented in 6 bits is
0
64
127
63
An algorithm that has been coded into something that can be run by a machine
Algorithm
Program
CPU
Hardware
Bug
A computer that awaits and responds to requests for data.
A computer and storage device dedicated in storing files.
An error in a program that prevents the program from running as expected.
Debugging
Finding and fixing problems in an algorithm or program.
Doing something on the internet, usually again and again, to make another personal feel angry, sad, or scared.
A way to get information out of a computer.
Computational Thinking
Modifying a problem in such a way that it can be modeled or solved using a computer or machine.
Strategies include: decomposition, pattern matching, abstraction, algorithms.
Press the mouse button very quickly two times.
Variable
A name you make up so that you can see or do things on a website.
A placeholder for a piece of information that can change.
An easy-to-remember address for calling a web page.
Block-based programming language
Programming language that uses “blocks” or graphical programing elements, rather than writing code using text.
Break a problem down into smaller pieces.
The information about someone on the Internet.
Conditionals
Using the power of computers to solve problems
Press the mouse button.
Statements that only run under certain conditions.
Pattern
An extra piece of information passed to a function to customize it for a specific need.
Computers that exist only to provide things to others.
Finding similarities between things.
Binary Code
Break a problem down into smaller pieces.
A way of representing information using only two options.
Doing something on the internet, usually again and again, to make another personal feel angry, sad, or scared.
Loop
A number assigned to any item that is connected to the Internet.
Able to be relied on as honest or truthful.
The action of doing something over and over again.
Code
Statements that only run under certain conditions.
The language that programmers create and use to tell a computer what to do.
Break a problem down into smaller pieces.
Function
A piece of code that you can easily call over and over again.
A group of computers and servers that are connected to each other.
Short for "picture element", the fundamental unit of a digital image, typically a tiny square or dot that contains a single point of color of a larger image.
Algorithm
The most common fundamental unit of digital data .
Getting help from a large group of people to finish something faster.
A list of steps to finish a task.
