Sei sulla pagina 1di 3

COMPUTER PROGRAMMING 11

First Periodical Examination

Name: ________________________________________ Score: ________________


Section: ______________ Date: ________________ Teacher:

I. MULTIPLE CHOICE
Directions: Identify the computer terminology described below. Choose and write the correct letter on
the space provided.

_____ 1. It is a program that translates assembly language programs into machined code.
A. Compilation B. Assembler C. Binary D. Language
_____ 2. It is the process of translating a high-level language program into machine code.
A. Compilation B. Assembler C. Binary D. Language
_____ 3. It’s the machine code that results from the compilation of the source code.
A. High-level B. Source Code C. Object Code D. Low-level
_____ 4. It describes a programming language that is close to the level of machine or computers.
A. High-level B. Source Code C. Object Code D. Low-level
_____ 5. It describes a programming language that is close to the level of human language.
A. High-level B. Source Code C. Object Code D. Low-level
_____ 6. It is concurrent programming implemented on a multi-processor or multi-computer platform.
A. Logic Programming C. Programming Paradigm
B. Distributed Programming D. Parallel Programming
_____ 7. It is a model or way of thinking about computing.
A. Logic Programming C. Programming Paradigm
B. Distributed Programming D. Parallel Programming
_____ 8. It is a programming technique that allows for the execution of two or more operations at the same time.
A. Logic Programming C. Programming Paradigm
B. Distributed Programming D. Parallel Programming
_____ 9. It is a programming paradigm that is a declarative description of the problem as a set of rules is provided, from which the
solutions are then inferred.
A. Logic Programming C. Programming Paradigm
B. Distributed Programming D. Parallel Programming
_____ 10. It is a programming approach where not only the data type of a data structure is defined, but also the types of operations
or functions that can be applied to the data structure.
A. Imperative Programming C. Concurrent Programming
B. Functional Programming D. Object-Oriented Programming
_____ 11. It is the person who draws up the design specifications or blueprints that the programmer will follow.
A. System Analyst B. Systems Designer C. Programmer D. Software Engineer
_____ 12. It’s the error in a program that could be functional or non-functional errors.
A. Virus B. Debugging C. Bugs D. Analysis
_____ 13. It is usually composed of numerous programs or modules that interact and work together to deal with a large
programming problem.
A. System B. Requirement C. Programmer D. Analyst
_____ 14. It is a technical or encoding mistakes committed by the programmer during the construction of the program.
A. Functional Error B. Non-Functional Errors C. System Analyst D. Systems Designer
_____ 15. It is a structure that groups related items of the same data type together.
A. Constant B. Data C. Array D. Variables
_____ 16. It is another name for a multidimensional array.
A. Record B. Vector C. Scalar D. Matrix
_____ 17. It is a fixed value used in certain mathematical or programming contexts.
A. Constant B. Data C. Array D. Variables
_____ 18. It is a symbol used in a program that stands for a value or data stored in a computer’s memory.
A. Constant B. Data C. Array D. Variables
_____ 19. It is a public function that set and get private member.
A. Constructor B. Accessor Methods C. Destructors D. Classes
_____ 20. It is found and declared in the function header or accept value from the program or another function.
A. Global Variables B. Variables C. Local Variables D. Parameter
_____ 21. It is the values which may be variables or expressions passed on to the function and are normally found in the function
calls.
A. Functions B. Scope C. Arguments D. Variables
_____ 22. It is variables that is used to store memory locations.
A. Value B. Pointer C. Byte D. Syntax
_____ 23. It is an array of characters ending with a null character.
A. String B. Subscript C. Array D. Data Type
_____ 24. It is the number of elements in the array, surrounded by brackets.
A. String B. Subscript C. Array D. Data Type
_____ 25. It is counter used to keep track of iteration in a counter-controlled loop.
A. Iteration B. Post-Test C. Pre-Test D. Index Variable
_____ 26. It is the order of execution of program statements.
[Type here]
A. Flow Control B. Control Statement C. Control Structure D. Block
_____ 27. It is variable that holds a single character (one byte) which may be a number, a letter or symbol.
A. Constant B. Operator C. Char D. Int
_____ 28. It is variable that holds positive or negative whole numbers.
A. Constant B. Operator C. Char D. Int
_____ 29. It is a process of combining data and function to form a class or object.
A. Encapsulation B. Polymorphism C. Inheritance D. Function
_____ 30. It is OOP language that is based on the C language.
A. C B. C++ C. Turbo D. Pascal

II. CLASSIFICATION
Directions: Classify the following languages according to programming paradigm. (31-45)

Algol Basic C++ CLP Cobol

Fortran Haskell Lisp Modula Parallel Pascal

Concurrent ML Prolog Scheme Simula Smalltalk

Concurrent/
Imperative Functional Logic Object-Oriented Distributed

III. IDENTIFYING MEANING


Directions: Write the correct meaning of the acronyms words.

46. OS - __________________________________________________________________________
47. OOP - ________________________________________________________________________
48. GUI - ________________________________________________________________________
49. IDE - ________________________________________________________________________
50. SLC - _________________________________________________________________________

IV. TRUE OR FALSE


Directions: Determine whether each of the following is True or False

_______ 51. Parentheses within relational expression are evaluated before everything else in an equation.
_______ 52. The unary operator for inversion in a logical expression is -.
_______ 53. Aside from sequential, the only other control structure is unconditional branching.
_______ 54. In a sequential flow of control, a step or action leads to the next step in a predetermined order.
_______ 55. An IF-ELSE statement is a common two-way selection statements.
_______ 56. The Continue command forces program execution to jump to the closing brace of the SWITCH
statements.
_______ 57. We can initialize arrays even though we did not specify the array size.
_______ 58. Individual elements of arrays can be addressed by appending the subscript enclosed in curly brackets at
the end of the array name.
_______ 59. The individual elements of one array can have different data types.
_______ 60. The return statement may appear anywhere within a function.

V. INTERPRETING CODE SEGMENTS


Directions: Write the screen output produced by the following code segments. (5 points each)
[Type here]
61-70.

A. int direction = 3 OUTPUT

switch(direction)
{
case 0: cout <<”PEACE”; break;
case 1: cout <<”LOVE”; break;
case 2: cout <<”DIGNITY”; break;
default: cout <<HARMONY”; break;
}
B. int x = 5; OUTPUT
if (x < 5)
{
if (x>1)
{
cout<<”North”;
}
else
{
cout <<”South”;
}
}
else
{
if(x<4)
{
cout<<”East”;
}
else
{
cout <<”West”;
}
cout <<”SouthEast”;
}

With GOD, all things are Possible (Matthew 19:26)

[Type here]

Potrebbero piacerti anche