You are on page 1of 7

CP1

Quiz#1

Answers

The four types of inheritance.


1.
2.
3.
4.

1.
2.
3.
4.

_______________________
_______________________
_______________________
_______________________

Multiple Inheritance
Multilevel Inheritance
Hierarchical Inheritance
Hybrid Inheritance

The three final keyword.


5. Java Final Variable
6. Java Final Method
7. Java Final Class

1. _______________________
2. _______________________
3. _______________________
The three steps in creating an object from a class.
1. _______________________
2. _______________________
3. _______________________

CP1

Quiz#2

___________ 1. It is a blueprint or a template for creating different


objects which defines its properties and behaviors.
___________ 2. It is a variable inside a class.
___________ 3. Members of a class that provide a service for an
object or perform some business logic.

8. Declaration
9. Instantiation
10. Initialization

Answers

1. Classes
2. Fields
3. Methods

4. Constructor
___________ 4. It is a special type of method that is used to initialize
the object.
5. Default Constructor
___________ 5. It is a constructor that have no parameter.
___________ 6. It is a constructor that have a parameter.

6. Parameterized
Constructor

___________ 7. If a class have multiple method by same name but


different parameters.

7. Method Overloading

___________ 8. It is also known as Static Polymorphism.

8. Method Overloading

___________ 9. If subclass (child class) has the same method as


declared in the parent class.

9. Method Overriding

___________ 10. It provides mechanism that allows a class to inherit


property of another class.

10. Inheritance

ELECTIVE2

Quiz#1

Answers

______________1. A spreadsheet function entered in a cell,


complete with its arguments.

1. Formula

______________2. Includes a brief description of each function and


its arguments.

2. Function List

______________3. Each of it can be used as a data holder or a


place for data calculations.

3. Cell

______________4. Found in formulas that use the IF function and


either a true or false answer.

4. Comparative Operators

______________5. Merge the values held in each individual cell


within the range.

5. Reference Operators

______________6. Refers to the sequence that numerical operations


are performed.

6. Order of Calculation

______________7. Perhaps the most commonly used descriptive


operator found in calc.

7. Currency Symbol

______________8. A predefined calculation entered in a cell to help


analyze or manipulate data in spreadsheet.

8. Function

______________9. An operator that is used in getting TRUE or


FALSE output.

9. Comparative Operators
10. Text Operators

______________10. An operator used to place text in spreadsheet.

ELECTIVE2

Quiz#2

Answers

Essay. (10pts).
1. Explain the order of calculation.

It refers to the sequence


that numerical operations are
performed. Division and
multiplication are performed
before addition and subtraction.
There is a common tendency to
expect calculations to be made
from left to right as the equation
would be read in English.

OOP

Quiz#1

Answers

The four (4) benefits of bundling code into individual software.


1. ____________________________________

1. Modularity

2. ____________________________________

2. Information Hiding

3. ____________________________________

3. Code re-use

4. ____________________________________

4. Pluggability and
debugging ease

The steps in creating instance of a class.


5. Declare an instance
identifier
6. Construct the instance

1. ____________________________________
2. ____________________________________

7. Initialize the instance


using the new operator

3. ____________________________________
What contains the class?

8. Name

1. ____________________________________

9. Variable

2. ____________________________________

10. Methods

3. ____________________________________

OOP

Quiz#2

Answers

1. The key to understanding object-oriented technology.

1. Objects

2. A blueprint from which individual objects are created.

2. Class

3.

3. Inheritance

It is when different kinds of objects often have a certain


amount in common.

4. An interaction to the outside world through the methods that


they are exposed.
5. A namespace that organizes a set of related classes and
interface.

4. Interface

5. Package

6. Represented as a 3-compartment box, containing name,


variables, and method respectively.

6. Class

7. The source code for an object can be written and maintained


independently of the source code for an object.

7. Modularity

8. If an object already exists.

8. Code re-use

9. The details of its internal implementation remain hidden from


the outside world.

9. Information Hiding

10. The analogous to fixing mechanical problems in the real


world.

10. Pluggability and


debugging ease

WebProg

Quiz#1

Atleast five (5) values allowed in border style.

Answers
1.
2.
3.
4.
5.

1.___________________________
2. ___________________________

dotted
dashed
solid
double
groove

ridge
inset
outset
none
hidden

3. ___________________________
4. ___________________________
5. ___________________________
The five (5) CSS background properties.

6. background-attachment

1.___________________________

7. background-color

2. ___________________________

8. background-image

3. ___________________________

9. background-position

4. ___________________________

10. background-repeat

5. ___________________________

WebProg

Quiz#2

1. Sets the background properties in one declaration.


2. Sets whether a background image is fixed or scrolls with the rest of
the page.

Answers
1. background-color
property
2. background-attachment
3. background-color

3. Sets the background color of an element.


4. background-image
4. Sets the background image for an element.
5. background-position
5. Sets the starting position of a background image.
6. background-repeat
6. Sets how a background image will be repeated.

7. border-style property
7. Specifies what kind of border to display.
8. A shorthand property for setting the margin properties in one
declaration.

8. margin

9. Sets the bottom margin of an element.

9. margin-bottom

10. Define the white space between the element content and the
element border.

10. CSS padding properties

SPL

Quz#1

Answers

The five(5) implementation model.


1.___________________________________________
2.___________________________________________
3. ___________________________________________
4. ___________________________________________
5. ___________________________________________
The two(2) methods in implementing blocks.
1.___________________________________________
2.___________________________________________
Give the three(3) Design consideration for parameter passing
.
1.___________________________________________
2.___________________________________________
3. ___________________________________________

SPL

Quiz#2

1. Pass-by-value (in mode)


2. Pass-by-value-result
(input mode)
3. Pass-by-name (multiple
mode)
4. Pass-by-result (out
mode)
5. Pass-by-reference (in out
mode)

6. Treat blocks as a
parameterless
subprograms
7. Allocate locals on top of
the array of subprograms

8. Efficiency
9. One-way or Two-way
10. Good Programming

Answers

TRUE or FALSE. Write TRUE if the statement is correct, and FALSE


if it is incorrect (10pts).
1. A parameter profile is the first line of the definition, including the
name, the kind of subprogram, and the formal parameters.

1. False

2. The format, or layout, of the noncode part of an executing


subprogram is called an activation record.

2. True

3. The static chain is a chain of static links that connects certain


activation record instances.
4. The static chain from an activation record instance connects it to
all of its static ancestors.

3. True

5. It is a procedure returns if both have fixed time, but the static chain
is slightly faster.

4. True

5. True

6. Pass-by-result (out mode) if locals value is passed back to the


caller.

6. True

7. Pass-by-name (multiple mode) is done by textual substitution.

7. True

8. Pass-by-value (in mode) is done either by physical move or access


path.

8. True

9. Pass-by-value-result (input mode) is done by physical move in


both ways.

9. True

10. Pass-by-referral (outside mode) is done by passing an access


path.

10. False

ComOrg

Quiz#1

Give the four (4) sections which divides assembly language


programs.
1. ___________________________

Answers

1. Header
2. Equates

2. ___________________________

3. Data

3. ___________________________

4. Body
Closing

4. ___________________________
Give the six (6) types of registers.

5. Registers
1. ___________________________
2. ___________________________

6. General purpose
registers

3. ___________________________

7. Index registers

4. ___________________________

8. Stack registers

5. ___________________________

9. Segment registers

6. ___________________________

10. Stack

ComOrg

Quiz#2

1. An instruction used to move an operand from one location to

Answers
1. Mov

another.
2. A type of data structure a means of storing information in a
computer.

2. Stack

3. An instruction used to work with the stack.

3. Push & pop

4. An operand that is directly encoded as part of a machine


instruction.

4. Immediate operands

5. An operand that refers to a register.

5. Register operands

6. A variable name that represents a memory address.


7. Used to generate a software interrupt.

6. Memory / direct
operands
7. Int instruction

8. An instruction that will add together two operands.

8. Add instruction

9. An instruction that will subtract one integer from another.

9. Sub instruction

10. An assembly file was usually named with this extension.

10. .asm

You might also like