Anda di halaman 1dari 5

1.

Microprocessor- an integrated circuit that contains all the functions of a


central processing unit of a computer.
2. Microcontroller is a computer present in a single integrated circuit which is
dedicated to perform one task and execute one specific
application. It contains memory, programmable
input/output peripherals as well a processor.
3. IDE-
A computer program that lets a user write a computer
program.
4. Computer is a collection of instructions that performs a specific task
program- when executed by a computer.
6. Machine a computer programming language consisting of binary or
language- hexadecimal instructions that a computer can respond to
directly.
7. High level is a programming language such as C, FORTRAN, or Pascal
language- that enables a programmer to write programs that are
more or less independent of a particular type of computer.
8. Open source denoting software for which the original source code is
made freely available and may be redistributed and
modified.
9. Proprietary relating to an owner or ownership.
10. Syntax- a set of rules for or an analysis of this.
11. Interface a device or program enabling a user to communicate with a
computer.
12. Keywords a word that acts as the key to a cipher or code.
13. Abstraction freedom from representational qualities in art.
14. Variable an element, feature, or factor that is liable to vary or
change.
15. Program loop- is a sequence of instruction s that is continually repeated
until a certain condition is reached.
16. Infinite loop- is a piece of coding that lacks a functional exit so that it
repeats indefinitely.
17. Counting loop is one that is controlled by an integer that counts up from
a initial value to an upper limit.
18. Conditional loop- is a control flow statement that allows code to be executed
repeatedly based on a given Boolean condition.
19. Comment a piece of specially tagged text placed within a program to
help other users to understand it, which the computer
ignores when running the program.
20. Statement A function is a set of instructions that go together to do
something.
21. Function is a group of statements that are run as a single unit when
the function is called from another location, such as task
main().
22. Analog- circuitry to go toward a simple goal such as finding more
light or responding to sound.
23. Digital- involving or relating to the use of computer technology.
24. Binary- something having two parts.
Definitions Used in Computer Programming

Name Stephen Balderas


Date________________Class_________
Introduction to Robotics Part 5: Programming
Quiz
1. What is the main reason to write a computer program?
A to learn mathematics
B to understand technology
C to solve a problem
D to impress your friends

2. What does IDE stand for?


A Independent Device Enterprise
B Integrated Development Environment
C Iterating Decision Enclosure
D Instant Decision Environment
3. What does the term int in the following instruction mean? int bumper
A bumper is a 16 bit variable
B bumper has an intermediate value
C bumper has a value between 0 and 255
D read the bumper switch to input a value
4. How do you know some typed text in C++ is actually a statement?
A it is terminated with a comma
B it is terminated with a semicolon
C it is enclosed by curly brackets
D it has a double slash in front of it

5. How do you know some typed text in C++ is a function?


A it is terminated with a comma
B it is terminated with a semicolon
C it is enclosed by curly brackets
D it has a double slash in front of it

6. What type of loop is a FOR loop?


A a counting loop
B a decision loop
C an infinite loop
D a conditional loop

7. What type of loop is a WHILE loop?


A a counting loop
B a decision loop
C an infinite loop
D a conditional loop

8. What type of loop is an IF loop?


A a counting loop
B a decision loop
C an infinite loop
D a conditional loop

9. What do you use in C++ to create a comment?


A it is terminated with a comma
B it is terminated with a semicolon
C it is enclosed by curly brackets
D it has a double slash in front of it

10. What is a microcontroller?


A a multipurpose programmable device
B a computer on a chip
C smallest standalone part of a computer program containing executable code
D a sequence of instructions that continually repeat

11. What two things does an IDE do?


A computer program used to write a computer program
Allows users to write code in a language that is easier to use than the
machine level code
12. What two things happen when you define a variable?
Gives the variable the name
Assigns the variable a memory location for it
13. Describe the following computer program in as much detail as
possible:
void setup() {
// put your setup code here, to run once;
}
void loop() {
// put your main code here, to run repeatedly;
}
Void- no value is returned
setup ()-program section names
()- no value is given
{-functions
{}-functions
;- statement
//- commands
Matching:
14. Machine language-B

15. Statement-E

16. Computer program-F

17. Syntax-C

18. Keywords-A

19. Function-G
20. Binary-D

A words and names defined as part of a computer language to perform specific


tasks

B a programming language understood by computers that consists entirely of


numbers

C the set of rules that define how symbols and words are used in a programming
language

D has only two values, zero and one

E smallest standalone part of a computer program containing executable code

F a sequence of instructions that are executed by a CPU

G section of a computer program that performs a specific task

Anda mungkin juga menyukai