Sie sind auf Seite 1von 16

AMA COMPUTER COLLEGE

AMA COMPUTER COLLEGE Pasig Campus Midterm EXAMINATION CSCI17 --- T2/B2/I2 3rd Trimester 2011-2012 March 10, 2012

Pasig Campus

Midterm EXAMINATION

CSCI17 --- T2/B2/I2

3rd Trimester 2011-2012

March 10, 2012

General Instructions:

Saturday-Tuesday

1. Strictly NO PERMIT NO EXAM 2. Write legibly and neatly as possible and read the
1.
Strictly NO PERMIT NO EXAM
2.
Write legibly and neatly as possible and read the instruction.
Mind your own test
booklet, Do not Cheat…
3.
Any act of cheating will result to a grade of 5.0 in this exam

I. Identification (Identify the following statement or definition of the Visual Basics)

 

Possible Answers:

method

toolbox

properties

.frm

.exe

.vbp

 

Form

STR

VAL

Format

1.)

The filename extension of the form file of visual basics.

________

2.)

The filename extension of an executable file of visual basics.

________

3.)

The filename extension of a project file of visual basics.

________

4.)

This function is used to format the currency to display on the form.

________

5.)

This function is used to transform from string to numeric.

________

6.)

This function is used to transform from numeric to string.

________

7.)

These are the characteristics or attributes of a particular form.

________

8.)

________

These are the list of all the controls to be used in developing an

application.

9.)

This is served as a container of all controls that can create for user

________

interface.

10.)

These are built-in procedures that can be invoked to impart some

_______ action to a particular object.

II. Enumeration (List down the following)

1- 21 Enumerate the 21 visual basics controls 22-30 Enumerate at least 9 Data Types of Visual Basics

III. Indicate the meaning of the following VB Command or VB Syntax.

Private Sub CmdBuild_Click ( )

Dim message as string

AMA COMPUTER COLLEGE Pasig Campus Midterm EXAMINATION CSCI17 --- T2/B2/I2 3rd Trimester 2011-2012 March 10, 2012

___What 3

is the meaning of that?___________

AMA COMPUTER COLLEGE Pasig Campus Midterm EXAMINATION CSCI17 --- T2/B2/I2 3rd Trimester 2011-2012 March 10, 2012

1

___What

is the meaning of that?

___________

message = message + “Pizza City” +

vbokonly

AMA COMPUTER COLLEGE Pasig Campus Midterm EXAMINATION CSCI17 --- T2/B2/I2 3rd Trimester 2011-2012 March 10, 2012

___What 2

is the meaning of that?

_______

lblTime.caption = format (today, “YYYY”)

  • ___What

    • 4 is the meaning of that?

___________

Deposit = val (text1.text)

End sub

  • ___What

    • 5 is the meaning of that?

___________

*****************************end of examination***************************************

Prepared by:

MELJUN P. CORTES, MBA,MPA,BSCS,ACS

CS/Accounting Instructor

Noted by

Approved by:

Aris

Pulumbarit,MAT

Coney H. Torres School Director

DEAN

Checked by:

Junrill Anero Berame Department Head

AMA COMPUTER COLLEGE

AMA COMPUTER COLLEGE Pasig Campus Midterm EXAMINATION CSCI05--- C2 3rd Trimester 2011-2012 March 10, 2012 General

Pasig Campus

Midterm EXAMINATION

CSCI05--- C2

3rd Trimester 2011-2012

March 10, 2012

General Instructions:

Saturday-Tuesday

1. Strictly NO PERMIT NO EXAM 2. Write legibly and neatly as possible and read the
1.
Strictly NO PERMIT NO EXAM
2.
Write legibly and neatly as possible and read the instruction.
Mind your own test
booklet, Do not Cheat…
3.
Any act of cheating will result to a grade of 5.0 in this exam

I. Identification (Identify the following statement or definition of the C++)

Possible Answers:

Handling

Array

Sorting Data

Function

Exception

Recursive Function cin

iostream.h

const

cout

int main ( )

1.)

these

are data structures consisting of related data items of the same

type.

2.)

placing

the data into some particular order such as ascending or

descending order.

3.)

is

invoked by a function call.

4.)

is

designed for dealing with synchronous errors that occur as the result

 

of a program execution.

5.)

is

a function that calls itself either directly or indirectly through

6.)

the

input statement of C++ stream.

7.)

the

the

the

output statement of C++ stream.

8.)

main driver or main function of C++ program.

9.) ________

header files for input and output stream.

10.)

C++

keyword that indicated a constant variable.

II. Enumeration (List down the following)

1-3 ----The kinds of Controls Structures 4-10---Give at 7 Data Types of C++

III. Give the Syntax of the following:

A.)

For Loop Statement

B.)

While Loop Statement

C.)

Do While Loop Statement

D.)

Function Definition

E.)

Array Declaration

IV. Find the errors in each of the following program segments & correct the errors. (2 points)

1.)

# include <iostream.h>;

2.)

const ARRAYSIZE = [10];

3.)

Assume int b[10] = {0};

for (int I = 0; I <=10; b[ I ] = 1;

I++)

4.)

Assume int a[2][2] = {{1,2}, {3,4}};

5.)

a[1, 1] = 5; int main ( );

*****************************end of examination***************************************

Prepared by:

MELJUN P. CORTES, MBA,MPA,BSCS,ACS

CS/Accounting Instructor

Noted by

Approved by:

Aris

Pulumbarit,MAT

Coney H. Torres School Director

DEAN

Checked by:

Junrill Anero Berame Department Head

AMA COMPUTER COLLEGE

***************************** end of examination *************************************** Prepared by: MELJUN P. CORTES, MBA,MPA,BSCS,ACS CS/Accounting Instructor Noted by Approved

Pasig Campus

Midterm EXAMINATION

CSCI0509--- E2

3rd Trimester 2011-2012

March 10, 2012

General Instructions:

Saturday-Tuesday

1. Strictly NO PERMIT NO EXAM 2. Write legibly and neatly as possible and read the
1.
Strictly NO PERMIT NO EXAM
2.
Write legibly and neatly as possible and read the instruction.
Mind your own test
booklet, Do not Cheat…
3.
Any act of cheating will result to a grade of 5.0 in this exam

I. Find the errors in each of the following program segments & correct the errors. (2 points)

6.)

# include <iostream.h>;

7.)

const ARRAYSIZE = [10];

8.)

Assume int b[10] = {0};

for (int I = 0; I <=10; b[ I ] = 1;

I++)

9.)

Assume int a[2][2] = {{1,2}, {3,4}};

10.)

a[1, 1] = 5; int main ( );

II. Identification (Identify the following statement or definition of the C++)

Possible Answers:

Handling

Array

Sorting Data

Function

Exception

Recursive Function cin

iostream.h

const

cout

int main ( )

1.)

these

are data structures consisting of related data items of the same

type.

2.)

placing

the data into some particular order such as ascending or

descending order.

3.)

is

invoked by a function call.

4.)

is

designed for dealing with synchronous errors that occur as the result

 

of a program execution.

5.)

is

a function that calls itself either directly or indirectly through

6.)

the

input statement of C++ stream.

7.)

the

the

the

output statement of C++ stream.

8.)

main driver or main function of C++ program.

9.) ________

header files for input and output stream.

10.)

C++

keyword that indicated a constant variable.

III. Give the Syntax of the following:

F.)

For Loop Statement

G.)

While Loop Statement

H.)

Do While Loop Statement

I.) If – else Statement

J.)

Array Declaration

*****************************end of

examination***************************************

Prepared by:

MELJUN P. CORTES, MBA,MPA,BSCS,ACS

CS/Accounting Instructor

Noted by

Approved by:

Aris

Pulumbarit,MAT

Coney H. Torres School Director

DEAN

Checked by:

Junrill Anero Berame Department Head

AMA COMPUTER COLLEGE

G.) While Loop Statement H.) Do While Loop Statement I.) If – else Statement J.) Array

Pasig Campus

PRELIM EXAMINATION

CSCI17 --- T2/B2/I2

3rd Trimester 2011-2012

February 7, 2011

General Instructions:

Tuesday - Wednesday

1. Strictly NO PERMIT NO EXAM 2. Write legibly and neatly as possible and read the
1.
Strictly NO PERMIT NO EXAM
2.
Write legibly and neatly as possible and read the instruction.
Mind your own test
booklet, Do not Cheat…
3.
Any act of cheating will result to a grade of 5.0 in this exam
I. Label the part of Visual Basics Tools:
G.) While Loop Statement H.) Do While Loop Statement I.) If – else Statement J.) Array

1

2

8
8

6

7
7
G.) While Loop Statement H.) Do While Loop Statement I.) If – else Statement J.) Array

3

5

14 12 13
14
12
13

11

16

9 10
9
10

Part A

15

II. Define the following:

Part B of Test I

A.) Control B.) EVENT

C.) FORM

D.) PROPERTIES

E.) METHOD

III. Enumerate the following:

1.) How to make executable file? (1-4)

1 4 5 7 8 9 10 11
1
4
5
7
8
9
10
11
C.) FORM D.) PROPERTIES E.) METHOD III. Enumerate the following: 1.) How to make executable file?

12

C.) FORM D.) PROPERTIES E.) METHOD III. Enumerate the following: 1.) How to make executable file?

2

3

C.) FORM D.) PROPERTIES E.) METHOD III. Enumerate the following: 1.) How to make executable file?
  • 6 2.) How to create a database file

in the visual data manager? (1-6)

3.) How to connect the data control to the database file? (1-5)

*****************************end of examination***************************************

Prepared by:

MELJUN P. CORTES, MBA,MPA,BSCS,ACS

CS/Accounting Instructor

Noted by

Approved by:

Aris

Pulumbarit,MAT

DEAN

Coney H. Torres School Director

Checked by:

Junrill Anero Berame Department Head

AMA COMPUTER COLLEGE

Pasig Campus

Midterm EXAMINATION

Acctg 1a --- T2/B2/I2

General Instructions:

2 st Trimester 2011-2012

1.

Strictly NO PERMIT NO EXAM

2.

Write legibly and neatly as possible and read the instruction.

3.

Any act of cheating will result to a grade of 5.0 in this exam

I Matching Type

For each numbered item, choose the matching term and write the identifying letter in the answer column.

WRITE only the LETTER on your green test booklet.

Column B

Column A

__

1.) is debited for the VAT paid.

  • a. Input Tax

2.)

__

is credited for the VAT collected.

b.

Output

Tax

3.)

__

are deductions from the list price to encourage buyers to buy more.

c.

Trade Discount

4.)

__

are deductions from the invoice cost to encourage customers to pay early.

d.

Cash Discount

5.)

__

refer to gross receipts of the business from the sale of merchandise.

e.

SALES

6.)

__

refer to goods or items bought for resale.

 

f.

Purchases

 

7.)

__

difference between gross sales and the sales returns & allowance and sales discount.

 
 

g.

Net Sales

 

8.)

__

primary motive of a businessman.

 

h.

Profit

9.)

__

organization owned by only one person.

 

i.

Single Proprietorship

 

_10.) money deposited in the bank. in Bank

j.

Cash

_11.) anything of value owned by the business or the property/rights on property.

 

k.

Asset

 

_12.) general term to mean any earning made by the business. Income

 

l.

_13.) refers to that portion of accounts receivable which may not be collected.

 

m.

Bad Debts

 

_14.) a lists of account titles used by the bookkeeper as a guide in recording business

 

transactions.

 

n.

Chart of Accounts

_15.) formula of depreciation. SV / EL

 

o.

AC –

_16.) formula of Interest. R x T

p.

I = P x

_17.)written promise made by a maker promising to pay a person called payee.

 

q.

Promissory Note

 

_18.) discount will be given if paid within 10 days from the purchase date, no discount beyond 30

days.

r.

2/10, n/30

 

_19.) Accounting Equation + C

 

s.

A = L

_20.) process of recording business transactions in a chronological order.

 

t.

Bookkeeping

 

_21.) is an economic obligation or debts payable to outsiders. Liabilities

 

u.

_22.) a business engaged in transforming raw materials into finished products.

 

v.

Manufacturing

 

_23.) a business engaged in buying and selling goods or merchandise.

 

w.

Merchandising

 

_24.) end product of an accounting process. Financial Statement

x.

_25.) skeleton of an account that used to post the debit side and credit side of balances.

 

y.

T-account

 

II. Problem solving for DEPRECIATION. Compute the depreciation expense of following Fixed Assets:

1.)8 sets of Computer Systems

 

2.) 5 sets of Xerox Copier Machines

Acquisition Cost : P88, 650.78

Acquisition Cost

:

P945,

780.48

Scrap Value

:

6,789.45

Scrap Value

:

76,789.45

Estimated useful life :

48 months

Estimated useful life

:

9

years

3.) Furniture & Fixtures Acquisition Cost : P35, 950.88

4.) Delivery Truck Acquisition Cost

: P337, 230.58

Scrap Value

:

6,789.45

Scrap Value

:

46,456.44

Estimated useful life days

:

36 months

Estimated useful life

:

2,880

III. Problem solving for INTEREST and Maturity Value. Compute the interest & maturity value of the ff.:

Principal Amount

Rate

Time

Interest

Maturity Value

1.)P3,000

2.)P2,200

3.) P16,456.75

4.)P88,690.12

10%

8%

7 ½ %

2 years 120 days 90 days

________________

________________

________________

________________

________________

________________

1% per month

2 years

________________

________________

IV. Problem solving for DISCOUNTING of Net Invoice Price of the following Merchandise Inventory:

1.) The BENCH Corporation offers the Zipper Jeans for Inventory Sale at a List Price of 756.99

and offers the following

TRADE DISCOUNTS:

OPTION A: For purchases of 51 – 10 jeans, 5%, 8%

OPTION B:

For purchases of more than 200 jeans, 5%, 8%, 10%

The Cavite Fairmart had selected the option B which purchase of 235 jeans. How much the NET INVOICE PRICE would appear for the payment of 235 jeans?

*****************************************end of examination****************************** Prepared by:

MELJUN P. CORTES, MBA,MPA,BSCS,ACS

CS Instructor

Approved by:

Noted by:

Aris Pulumbarit,MAT,CCNA Junrill Anero Berame DEAN Department Head

Checked by:

Coney H. Torres

School Director

AMA COMPUTER COLLEGE

Pasig Campus

Midterm EXAMINATION

CSCI06 --- B2

General Instructions:

2 st Trimester 2011-2012

1.

Strictly NO PERMIT NO EXAM

2.

Write legibly and neatly as possible and read the instruction.

3.

Any act of cheating will result to a grade of 5.0 in this exam

I. Give the value in bytes of the following Capacity Units of measurements of Data Storage:

1.)

K or Kilo

7.)

byte

_____________

2.)

E or Exa

8.)

1.44 megabytes of

M or m

9.)

1440 kilobytes

4.)

G or g

_____________ 10.) ____________

1 millisecond

5.)

T or t

11.) ____________

1 nanoseconds

6.)

P or p

12.)

1 microseconds

II. Identification (Identify the following statement or definitions)

clock cycle

byte

MIPS

system bus

control bus

clock rate

hertz (Hz)

bus

data bus

bus cycle

bus clock

address bus

1.)

period of time required to perform one data transfer

______________ operation on a bus.

2.)

______________

3.)

______________ pulses.

string of eight bits. time interval between two adjustment clock timing

4.)

unit of measure for signal frequency defined as one

______________ cycle per second.

5.)

______________

measure of processor or computer system speed in

terms of the number of central processing unit instructions executed per second.

6.)

_____________

is a set of parallel communication lines that connect

two or more devices.

7.)

connects the CPU with main memory & other system

9.)

_____________

moves data among computer system components. carries commands, command responses, status codes,

& similar messages.

10.)

a common timing reference for all attached devices

____________ that measured in MHz.

III.

Compute the following the maximum capacity of a bus or Data Transfer Rate:

1.)

data transfer unit = 64 bits 84 bits

2.) data transfer rate =

clock rate

= 400 MHz

clock rate

= 600

MHz

3.) 20 points Assume the existence of a CPU with a 4.8 GHz clock rate. The instruction and execution cycles are each 50 percent of the clock cycle. The average instruction requires 0.5 nanoseconds to complete execution. Main memory access speed for single instructions is 2 nanoseconds on average. What is the expected average MIPS rate for

this CPU? What modern microprocessor architectural features might be added to the CPU to improve its MIPS rate?

MIPS – millions of instructions per seconds MFLOPS – millions of floating point operations per seconds.

************************************end of

examination*************************************** Prepared by:

MELJUN P. CORTES, MBA,MPA,BSCS,ACS

CS Instructor

Approved by:

Noted by:

Aris Pulumbarit,MAT,CCNA Junrill Anero Berame

Checked by:

Coney H. Torres

AMA COMPUTER COLLEGE

Pasig Campus

PRELIMINARY EXAMINATION

Acctg 1a --- T2/B2/I2

General Instructions:

2 st Trimester 2011-2012

1.

Strictly NO PERMIT NO EXAM

2.

Write legibly and neatly as possible and read the instruction.

3.

Any act of cheating will result to a grade of 5.0 in this exam

REQUIREMENTS:

1.)

Journal Entries –----------- answers must be written on Journal Sheet

(Pls see

the attached) 2.) Posting to T-account ------answers must be written on bondpaper with T-account. the attached)

(Pls see

3.) Trial Balance ----------------answers must be written on bondpaper with heading already. the attached)

(Pls see

4.)

Worksheet ------------------answers must be written on 6-column Worksheet

(Pls see

the attached) Below is the Chart of Accounts and October 2011 Transactions of SILAHIS REPAIR SHOP.

 

SILAHIS REPAIR SHOP Chart of Accounts

ASSETS

OWNER’S EQUITY

11

CASH

31

PALUMBARIT, CAPITAL

12

ACCOUNTS RECEIVABLE—LEI CAÑA

32

PALUMBARIT,

DRAWING

13

ACCOUNTS RECEIVABLE—PIOLO PASCUAL

14

REPAIR TOOLS

INCOME

15

REPAIR SUPPLIES

41

SERVICE INCOME

16

FURNITURE & FIXTURES

17

SERVICE TRUCK

   

LIABILITIES

EXPENSES

21

ACCOUNTS PAYABLE – BERAMI FURNITURE Inc.

51

ADVERTISING

EXPENSE

22

NOTES PAYABLE—COCO MARTIN

52

SALARIES & WAGES

EXPENSE

 
  • 53 UTILITY EXPENSE

  • 54 RENT EXPENSE

October 2011 Transactions:

October 1 – A. Palumbarit opened a television repair shop he called “SILAHIS REPAIR SHOP”. He began business by investing P2,500 in cash and the following ASSETS:

Repair Tools----------P1,200 Repair Supplies-------P1,500

Truck---------------------P20,000

October 2---Paid P250 for newspaper advertisement, announcing the opening of his shop. October 3---Purchased office tables and chairs and filing cabinets from BERAMI FURNITURE Inc. on credit, P6,500. October 5---Completed repair work for LEI CAÑA on credit, P1,200 . October 9---Completed repair work for PIOLO PASCUAL , P2,200. Accepted P1,000 in cash and promised to pay the balance after five days.

October 15---Paid the wages of the shop helper which is Mr. Calizo, Jhumer, giving the salaries, P450. October 18---Paid one-half of the account due to BERAMIEFURNITURE Inc. and issued a promissory note for the other half. October 20--- LEI CAÑA paid her account. October 25—Withdrew cash for P750 for personal use. October 28—Received P2,500 from Kerwin Lista for repair service rendered. October 30—Paid the monthly utility bills, P150. October 30—Paid to PASAY SQAURE Bldg. for the one month’s rent of the shop, P1,000. October 30---Paid the wages of the shop helper which is Mr. Romulo, Jerrald, giving the salaries, P450.

REQUIREMENTS:

1.) Journal Entries –---------------answers must be written in Journal Sheet (Pls see the attached) 2.) Posting to T-account ---------answers must be written bondpaper with T-account. (Pls see the attached) 3.) Trial Balance --------------------answers must be written in yellow papers.

4.) Worksheet ----------------------answers must be written in 6-column Worksheet (Pls see the attached)

*****************************************end of examination****************************************

Prepared by:

MELJUN P. CORTES, MBA,MPA,BSCS,ACS

CS Instructor

Approved by:

Aris Pulumbarit,MAT,CCNA Junrill Anero Berame DEAN Department Head

Noted by:

Checked by:

Coney H. Torres

School Director

ANSWER SHEET ----for POSTING to T-account:

CASH

RECEIVABLE—PIOLO PASCUAL

October 15---Paid the wages of the shop helper which is Mr. Calizo, Jhumer, giving the salaries,

ACCOUNTS RECEIVABLE—LEI CAÑA

ACCOUNTS

October 15---Paid the wages of the shop helper which is Mr. Calizo, Jhumer, giving the salaries,
October 15---Paid the wages of the shop helper which is Mr. Calizo, Jhumer, giving the salaries,

FURNITURE & FIXTURES

REPAIR TOOLS

October 15---Paid the wages of the shop helper which is Mr. Calizo, Jhumer, giving the salaries,

REPAIR SUPPLIES

October 15---Paid the wages of the shop helper which is Mr. Calizo, Jhumer, giving the salaries,
October 15---Paid the wages of the shop helper which is Mr. Calizo, Jhumer, giving the salaries,

SERVICE TRUCK

DRAWING

October 15---Paid the wages of the shop helper which is Mr. Calizo, Jhumer, giving the salaries,

PALUMBARIT, CAPITAL

PALUMBARIT,

October 15---Paid the wages of the shop helper which is Mr. Calizo, Jhumer, giving the salaries,
October 15---Paid the wages of the shop helper which is Mr. Calizo, Jhumer, giving the salaries,

SERVICE INCOME

COCO MARTIN

SERVICE INCOME COCO MARTIN ACCOUNTS PAYABLE – BERAMI FURNITURE Inc. NOTES PAYABLE— ADVERTISING EXPENSE RENT EXPENSE

ACCOUNTS PAYABLE – BERAMI FURNITURE Inc.

NOTES PAYABLE—

SERVICE INCOME COCO MARTIN ACCOUNTS PAYABLE – BERAMI FURNITURE Inc. NOTES PAYABLE— ADVERTISING EXPENSE RENT EXPENSE
SERVICE INCOME COCO MARTIN ACCOUNTS PAYABLE – BERAMI FURNITURE Inc. NOTES PAYABLE— ADVERTISING EXPENSE RENT EXPENSE

ADVERTISING EXPENSE RENT EXPENSE

SALARIES & WAGES EXPENSE

UTILITY EXPENSE

SERVICE INCOME COCO MARTIN ACCOUNTS PAYABLE – BERAMI FURNITURE Inc. NOTES PAYABLE— ADVERTISING EXPENSE RENT EXPENSE
SERVICE INCOME COCO MARTIN ACCOUNTS PAYABLE – BERAMI FURNITURE Inc. NOTES PAYABLE— ADVERTISING EXPENSE RENT EXPENSE
SERVICE INCOME COCO MARTIN ACCOUNTS PAYABLE – BERAMI FURNITURE Inc. NOTES PAYABLE— ADVERTISING EXPENSE RENT EXPENSE
SERVICE INCOME COCO MARTIN ACCOUNTS PAYABLE – BERAMI FURNITURE Inc. NOTES PAYABLE— ADVERTISING EXPENSE RENT EXPENSE

Prepared by:

MELJUN P. CORTES, MBA,MPA,BSCS,ACS

CS Instructor

ANSWER SHEET ----for Trial Balance

SILAHIS REPAIR SHOP Trial Balance as of October 31, 2011

Account Titles

CREDIT

DEBIT

TOTAL

Prepared by:

MELJUN P. CORTES, MBA,MPA,BSCS,ACS

CS Instructor

AMA COMPUTER COLLEGE

Preliminary Examination CSCI02 CB

2 nd Trimester 2011-2012

I – Identification: (Identify the following statements or definitions of the JAVA Terminologies)

  • 1 is new object-oriented language that is receiving wide attention from both industry and

.__

academia.

  • 2 the one who develop the JAVA and The language was first called OAK, named after the OAK

.__

TREE outside of his Office, but the name was already taken, so his team renamed it JAVA.

  • 3 the suffix or filename extensions of the JAVA compiler-generated Bytecode file.

.__

  • 4 is the compiled version of the Source File or the Source Code.

.__

  • 5 the original java program file edited in JAVA Editor by the JAVA programmer which is human- readable form of High-Level programming.

.__

  • 6 the compiled version of the source file that contain BYTECODE and have the suffix or filename

.__

extension

of class file.

  • 7 a Java interpreter, which CPU is a real machine that executes machine code or the bytecodes.

.__

  • 8 must have one class designated as the MAIN CLASS. The designated main class must have the main method.

.__

.__ 9

.___ 10

is a complete stand-alone program that does not require a Web Browser.

this website is a collection of tools for computing & running JAVA Programs and JAVA2 SDK.

II. Identify what part of this segment of the JAVA Source Code.

// This is a simple Java program-------------------------------------------------------------6.) ____________ import javax.swing.*;----------------------------------1.) ________________ import java.text.*;

public class PASIG -----------------------------------2.) ________________ {

public static void main(String [] args)--------------3.) ________________ { __ final double PI = 3.14159;--------------7.) __________________ String radiusStr; double radius, area, circumference; 10.) __________

public static void main(String [] args)--------------  3.) ________________ { __ final double PI = 3.14159;--------------

radiusStr = JOptionPane.showInputDialog(null, "Enter radius :");

area = PI * radius * radius; circumference = 2.0 * PI * radius;

5.) ______

4.) _______________

JOptionPane.showMessageDialog(null, "Given

Radius: " + radius + "\n" );

public static void main(String [] args)--------------  3.) ________________ { __ final double PI = 3.14159;--------------

System.out.println ("Programming is great fun!");

__________

public static void main(String [] args)--------------  3.) ________________ { __ final double PI = 3.14159;--------------

}

9.) ______

8.)

}

III. Enumeration (List Down the following)

  • A. Java Numerical Data Types

6

  • B. Parts of a Java Program

6

  • C. Java Arithmetic Operators

5

  • D. Java Escape Sequences

7

E.

48

Java Reserved or Keywords

  • F. Java Primitive data types

8

***********************************End of

Examination*************************

Prepared by:

MELJUN P. CORTES, MBA,MPA,BSCS,ACS CS Instructor

Approved by:

Aris Pulumbarit, MAT,CCNA Dean

Checked by:

Mr. Junrill Anero Berame Department Head Noted by:

Coney H. Torres School Director

AMA COMPUTER COLLEGE

Pasig Campus

PRELIMINARY EXAMINATION

CSCI04 T3 Computer Programming 3

General Instructions:

2 st Trimester 2011-2012

1.

Strictly NO PERMIT NO EXAM

2.

Write legibly and neatly as possible and read the instruction.

3.

Any act of cheating will result to a grade of 5.0 in this exam

I. Fill in the blank

(Complete the following sentences by writing the correct word or word in the blanks provided.)

1.

The

of a recursive algorithm is the part in which a problem is solved

  • 2. of a recursive algorithm is the part in which the problem is reduced

The

  • 3. The memory of a computer is formatted into a large

to support

recursive methods calls.

  • 4. The memory for each recursive method call is organized in a group of cells called a _______.

5.

The type of error in a recursive algorithm that causes it to run forever is called a ________.

  • 6. When a recursive method does not stop, a

error occurs at run time.

_________

7.

________

is

concerned with determining an algorithm’s efficiency that is how

its runtime & memory usage vary as a function of quantity of data processed.

  • 8. is one that refers to itself by name in manner that appears to be

____________

circular.

  • 9. the one who developed & invent the JAVA.

____________

  • 10. the mastermind & inventor of Apple and Macintosh.

____________

II. Debugging and displaying the output of the following Java segment code. (Analyze the following code how the execution of iteration & recursive method being apply on the Recursive algorithm)

Consider the definition of the method raise, which raises a given number to a given exponent:

int raise (int base, int expo) {

}

if

(expo ==

0 )

return 1;

else

return base * raise (base, expo

-

1);

Draw a trace of the complete execution of raise (2, 5).

III. Write a JAVA SEGMENT CODE of the following problem statement below:

1.) Write a recursive method that returns a string with the

characters in reverse order and test the method with a Tester program. The string and the index position should be parameters. If the position is less than the string’s length, recurse with the rest of the string after this position and return the result of appending the character at this position to the result. Otherwise, return the empty string.

2.) Use a Tester program to implement and test a recursive method to compute the greatest common divisor 9gcd) of two integers. The recursive definition of gcd is

gcd (a, b)

= b, when a = 0

gcd(a, b)

=

gcd(b, a % b), when a > 0

---------------------------------------------------------------------------------------------------------------

--------------------------------------

Prepared by:

MELJUN P. CORTES, MBA,MPA,BSCS,ACS

CS Instructor

Approved by:

Junrill Berame

CAS

Aris Palumbarit

College Dean

Conney H. Torres

School Director

AMA COMPUTER COLLEGE

Pasig Campus

Preliminary Examination Compo02 CB

2 nd Trimester 2011-2012

General Instructions:

Strictly NO PERMIT NO EXAM Write legibly and neatly as possible and read the instruction. Any act of cheating will result to a grade of 5.0 in this exam

Fill in the blank

(Answer must be written on the Green Booklet)

The WWW is most often called the ___________________.

The web is a network of computers _____________________.

All the computers use a communication standard called _______________.

All the computers in the web can

with each other.

________________________ Web information is stored in documents called _____________________. Web pages are files stored on computers called ________________________. Computers reading the web pages are called ____________________________.

Web clients view the pages with a program called a _______________________.

Popular browsers are

______________________

and _______________________.

A browser fetches a web page from a server by _______________________________. A request is standard HTTP request containing a ______________________________.

All web pages contain

for display.

________________________ The browsers display the page by

these instructions.

______________________________ The most common display instructions are called ________________________.

W3C puts together specifications for __________________________.

Identify the HTML tags (answer must have opening tags and closing tags)

to start the web page application.

._______________ 2

to

create the head section.

._______________ 3

to

create the body of HTML.

._______________ 4

to

organize for header level.

._______________ 5

to

begin a new paragraph.

._______________ 6

to

set the background color.

._______________ 7

to

insert a line break.

._______________ 8

to

center elements on a web page application.

._______________ 9

to

close the HTML tags.

to .______________ 10

create a horizontal rule in a web page application.

.______________ 11

to

create the text as bold.

.______________ 12

to

create the text as italic.

.______________ 13

to

create the text as underline.

.______________ 14

to

change the font color of the text.

.______________ 15

to

insert an image as .jpg file in your web application.

.______________ 16

to

create a marquee in the text of your web application.

.______________ 17

to

change the background design of your web application.

.______________ 18

to

change the font size of the text in your web application.

.______________ 19

to

create a superscript in your text of web application.

.______________ 20

to

create a link as anchor of your web application.

Identification (Identify the following statements below)

1

a

collection of documents containing cross-references or links.

2

the

internet protocol which defines the hypertext documents native to

WWW.

3

means

the rules for how information is formatted and transported on

internet.

4

are

the glue of the WWW.

5

a

network of network.

6

means

that the data is sent between different computers in small.

7

performs

transport TCP supports program to program communication.

8

the

worldwide bulletin board.

9

used

to transfer computers files between computers on the internet.

._________________ 10

electronic

messaging, the most popular & widely used internet tools.

VI. Give the meaning of the following Acronyms: (Answer must be written in the Green Booklet)

._________________ 1

Internet

11

.______________________

E-mail

._________________ 2

WWW

12

.______________________

ISP

._________________ 3

URL

13

.______________________

TCP/IP

._________________ 4

http

14

.______________________

IP

._________________ 5

HTML

15

.______________________

IE

._________________ 6

FTP

16

.______________________

CGI

._________________ 7

IRC

17

.______________________

ISDN

._________________ 8

ARPANET

18

.______________________

TelNet

._________________ 9

LAN

19

.______________________

ALU

10

.________________

WAN

20

.______________________

BBS

V. Matching Type (Match the column A with column B, write the appropriate word in the Answer sheet)

 

Column A

Column B

1

program

runs on the websites.

WWW

2

set

of rules on how the computer connected to the internet.

E-mail

3

electronic

letter.

Intranet

4

graphical

system of organized hypertext information on the internet.

Internet

5

network

of network.

LAN

6

interconnection

of two or more computers.

WAN

7

personal

computer that are close to each other.

Web

Server

9

interconnection

of many computers are located from different places.

Protocol

10

private

version of Internet (public network).

 

Networking

TelNet

HTML

VI. Fill in the Blank ( Fill in the blank of the following statement ) IRC, WWW, FTP, Information, URL, Web server, hypertext, web pages,

1.)

______________

is

a global, cross-platform, & graphical system organized 2.)

__________

information On the internet, which links 3.) around the around.

_____________

on

similar subjects located different 4.)

________

  • 5. The main goal of the internet is to provide an 5.) _______________________.

  • 6. To request a page on a websites, the web browser establishes a connection to a

6.) _________________ Using the 7.) ___________________.

  • 8. The web browser’s job to be able to across the information pointed by the

8.) _____________________.

  • 9. The web can manage information contained on the 9.) __________________________.

would

._______________ 10 that are confidential.

even permits us to go to a private chat room to talk about topics

***************************************End of Examination*************************

Prepared by:

Checked by:

 

MELJUN P. CORTES, MBA,MPA,BSCS,ACS

Mr. Junrill Anero

Berame

CS Instructor

Approved by:

Aris Pulumbarit, MAT,CCNA Dean

Department Head

Noted by:

Coney H. Torres School Dirctor