Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

KEY TO CORRECTION

CvSU Vision Republic of the Philippines


CvSU Mission
The premier university in Cavite State University shall provide
historic Cavite recognized for CAVITE STATE UNIVERSITY excellent, equitable and relevant educational
excellence in the development of Bacoor City Campus opportunities in the arts, science and technology
morally upright and globally Soldiers Hills IV, Molino VI, through quality instruction and relevant research
competitive individuals. City of Bacoor, Cavite and development activities.
 (046) 476 - 5029 It shall produce professional, skilled and
www.cvsu.edu.ph morally upright individuals for global
competitiveness.

COSC 65: PROGRAMMING LANGUAGE


FINAL EXAMINATION
st
1 Semester, Academic Year 2019-2020

Name: _________________________ Score: _____________


Course, Year and Section: _________ Date: _____________

General Instructions: Read each instruction carefully. Use BLACK PEN only in answering the exam, pencil or friction pen is
not allowed.

I. Identification
Direction: Write the correct word or phrase being asked in the sentence. Write your answer in the blank provided.
(15 pts)

Class 1. The blueprint for creating an object.


Data Type 2. It specifies a set of values, and the allowable operations on those values.
Abstraction 3. A process of hiding the implementation details from the user.
Reference Type 4. It stores value in heap and its reference on stack.
Boolean Expression 5. It consist of Boolean variables, Boolean constants, relational expression, and Boolean operators.
Heap 6. The storage of data for reference type.
Relational Operator 7. An operator that compares the values of its two operands.
Boolean 8. A data type having one of two values: true or false.
Operator Overloading 9. Allows multiple use of an operator.
Integer 10. Are written without a fraction or a decimal component.
Object Oriented
Programming 11. It is a software programming model/paradigm constructed around objects.
Value Type 12. A classification of data type that is stored/created on the stack.
Array 13. A complex data type which handles a collection of elements.
Encapsulation 14. The process of wrapping code and data together into a single unit.
Class 15. It defines attributes and behavior.
Private 16. It is the most restrictive and most commonly used access modifier wherein an attribute or a
method can only be accessed within the same class.
Inheritance 17. It helps in organizing classes into a hierarchy and enabling these classes to inherit attributes and
behavior from classes above in the hierarchy.
Character 18. A sequence of Unicode characters.
Relational Expression 19. An expression that has two operands and one relational operator.
Stack 20. It is the main area responsible for all memory allocation.

II. Modified True or False


Direction: Write TRUE if the statement is correct and if the statement is FALSE, underline what makes the
statement wrong/false and write the correct answer before the number. (10 pts)

relational 1. A boolean operator is an operator that compares the values of its two operands.
Character 2. String is a single Unicode character.
TRUE 3. References types store value in heap and its reference on stack.
Stack 4. Heap is the main area responsible for all memory allocation.
TRUE 5. Floating-points represent real numbers in computing.
III. Complete the Table
Direction: Write the correct answer in the space provided. . (10 pts)

C# Alias .NET Type Size


char 1. System.Char
_________________ Unicode character
2. byte
_________________ System.Byte 1 byte
short 3. System.Int16
_________________ 2 bytes
4. ushort
_________________ System.UInt16 2 bytes
int 5. System.Int32
_________________ 4 bytes
uint System.UInt32 6. 4 bytes
_________________
7. long
_________________ System.Int64 8 bytes
8. ulong
_________________ System.UInt64 8 bytes
float 9. System.Single
_________________ 4 bytes
double System.Double 8 bytes
10. _________________

IV. Enumeration
Direction: Enumerate the following. (20 pts)

1 – 4: Arithmetic operators 13 – 18: Relational Operator


1. Addition (+) 13. Equal to
2. Subtraction (-) 14. Not Equal to
3. Multiplication (*) 15. Greater than
4. Division (/) 16. Less than
17. Greater than or Equal to
5 – 8: Four Pillars of OOP 18. Less than or Equal to
5. Abstraction
6. Encapsulation 19 – 20: Classification of C# Data Type according to
7. Inheritance memory allocation
8. Polymorphism 19. Reference Type
20. Value Type
9 – 12: Access Modifiers
9. Public
10. Private
11. Protected
12. Default

Prepared by: Recommending Approval by:

JOVELYN D. OCAMPO ELY ROSE L. PANGANIBAN-BRIONES, MIT


Instructor Chairperson, Department of Computer Studies

Approved by:

RONAN M. CAJIGAL, MAEd


Campus Administrator

You might also like