19
AMA COMPUTER COLLEGE 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 instruction. 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 ( ) 3___What is the meaning of that? ___________ Dim message as string 1___What is the meaning of that?___________ message = message + “Pizza City” + vbokonly 2___What is the meaning of that?_______ lblTime.caption = format (today, “YYYY”) 4___What is the meaning of that?___________ Deposit = val (text1.text) 5___What is the meaning of that?___________ Mind your own test booklet, Do not Cheat…

MELJUN CORTES ama_exam_compilation

Embed Size (px)

Citation preview

Page 1: MELJUN CORTES  ama_exam_compilation

AMA COMPUTER COLLEGEPasig Campus

Midterm EXAMINATIONCSCI17 --- T2/B2/I2

3rd Trimester 2011-2012 March 10, 2012

General Instructions: Saturday-Tuesday

1.        Strictly NO PERMIT NO EXAM2.        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. 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 controls22-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 ( ) 3___What is the meaning of that?___________

Dim message as string 1___What is the meaning of that?___________message = message + “Pizza City” + vbokonly 2___What is the meaning of that?_______lblTime.caption = format (today, “YYYY”)

4___What is the meaning of that?___________Deposit = val (text1.text)

5___What is the meaning of that?___________End sub *****************************end of examination***************************************

Prepared by:MELJUN P. CORTES, MBA,MPA,BSCS,ACSCS/Accounting Instructor Checked by:

AMA COMPUTER COLLEGEPasig Campus

Mind your own test booklet, Do not Cheat…

Aris Pulumbarit,MAT DEAN   Aris Pulumbarit,MAT, DEAN

Junrill Anero Berame Department Head Coney H. Torres

School Director

Noted byApproved by:

Page 2: MELJUN CORTES  ama_exam_compilation

Midterm EXAMINATIONCSCI05--- C2

3rd Trimester 2011-2012 March 10, 2012

General Instructions: Saturday-Tuesday

1.        Strictly NO PERMIT NO EXAM2.        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. Identification (Identify the following statement or definition of the C++) Possible Answers: Array Sorting Data Function Exception Handling

Recursive Function cin cout int main ( ) iostream.h const 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 another function.6.)________the input statement of C++ stream.7.)________the output statement of C++ stream.8.)________the main driver or main function of C++ program.9.)________the 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 Structures4-10--- Give at 7 Data Types of C++

III. Give the Syntax of the following:A.)For Loop StatementB.)While Loop StatementC.)Do While Loop StatementD.) Function DefinitionE.)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; I++) b[ I ] = 1;

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

5.) int main ( );*****************************end of examination***************************************

Prepared by:MELJUN P. CORTES, MBA,MPA,BSCS,ACSCS/Accounting Instructor Checked by:

AMA COMPUTER COLLEGEPasig Campus

Mind your own test booklet, Do not Cheat…

Aris Pulumbarit,MAT DEAN   Aris Pulumbarit,MAT, DEAN

Junrill Anero Berame Department Head Coney H. Torres

School Director

Noted byApproved by:

Page 3: MELJUN CORTES  ama_exam_compilation

Midterm EXAMINATIONCSCI0509--- E2

3rd Trimester 2011-2012 March 10, 2012

General Instructions: Saturday-Tuesday

1.        Strictly NO PERMIT NO EXAM2.        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. 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; I++) b[ I ] = 1;

9.) Assume int a[2][2] = {{1,2}, {3,4}}; a[1, 1] = 5;

10.) int main ( );II. Identification (Identify the following statement or definition of the C++) Possible Answers: Array Sorting Data Function Exception Handling

Recursive Function cin cout int main ( ) iostream.h const 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 another function.6.)________the input statement of C++ stream.7.)________the output statement of C++ stream.8.)________the main driver or main function of C++ program.9.)________the 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 StatementG.) While Loop StatementH.) Do While Loop StatementI.) If – else StatementJ.) Array Declaration

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

Prepared by:MELJUN P. CORTES, MBA,MPA,BSCS,ACSCS/Accounting Instructor Checked by:

AMA COMPUTER COLLEGEPasig Campus

Mind your own test booklet, Do not Cheat…

Aris Pulumbarit,MAT DEAN   Aris Pulumbarit,MAT, DEAN

Junrill Anero Berame Department Head Coney H. Torres

School Director

Noted byApproved by:

Page 4: MELJUN CORTES  ama_exam_compilation

PRELIM EXAMINATIONCSCI17 --- T2/B2/I2

3rd Trimester 2011-2012 February 7, 2011

General Instructions: Tuesday - Wednesday

1.        Strictly NO PERMIT NO EXAM2.        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. Label the part of Visual Basics Tools:

      Part A

II. Define the following: Part B of Test I A.) Control

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

Prepared by:MELJUN P. CORTES, MBA,MPA,BSCS,ACSCS/Accounting Instructor Checked by:

AMA COMPUTER COLLEGEPasig Campus

Midterm EXAMINATION

Mind your own test booklet, Do not Cheat…

2

13

5

4

11

8

13

7

69

10

12

16

14

15

1

45

76

8

910

1112

2 3

B.) EVENTC.) FORMD.) PROPERTIESE.) METHOD

III. Enumerate the following:

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

2.) How to create a database file

in the visual data manager? (1-6)

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

Aris Pulumbarit,MAT DEAN   Aris Pulumbarit,MAT, DEAN

Junrill Anero Berame Department Head Coney H. Torres

School Director

Noted byApproved by:

Page 5: MELJUN CORTES  ama_exam_compilation

Acctg 1a --- T2/B2/I22st Trimester 2011-2012

General Instructions:

1.        Strictly NO PERMIT NO EXAM2.        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 TypeFor 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 A Column B__ 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. j. Cash in Bank

_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. l. Income

_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. o. AC – SV / EL

_16.) formula of Interest. p. I = P x R x T

_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 s. A = L + C

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

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

_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. x. Financial Statement

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

Page 6: MELJUN CORTES  ama_exam_compilation

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 MachinesAcquisition 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 4.) Delivery Truck Acquisition Cost : P35, 950.88 Acquisition Cost : P337, 230.58

Scrap Value : 6,789.45 Scrap Value : 46,456.44

Estimated useful life : 36 months Estimated useful life : 2,880 days

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 10% 2 years ________________ ________________2.) P2,200 8% 120 days ________________ ________________3.) P16,456.75 7 ½ % 90 days ________________ ________________4.) P88,690.12 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,ACSCS Instructor Checked by:

Approved by: Noted by:

Aris Pulumbarit,MAT,CCNA Coney H. Torres Junrill Anero Berame DEAN School Director Department Head

AMA COMPUTER COLLEGEPasig Campus

Page 7: MELJUN CORTES  ama_exam_compilation

Midterm EXAMINATIONCSCI06 --- B2

2st Trimester 2011-2012

General Instructions:

1.        Strictly NO PERMIT NO EXAM2.        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.)_____________ byte2.) ___________ E or Exa 8.) _____________ 1.44 megabytes of 3.5 FDD3.) ___________ M or m 9.)_____________ 1440 kilobytes4.) ___________ G or g 10.) ____________ 1 millisecond5.) ___________ T or t 11.) ____________ 1 nanoseconds6.) ___________ P or p 12.) ____________ 1 microseconds

II. Identification (Identify the following statement or definitions)clock cycle byte MIPS system bus control busclock rate hertz (Hz) bus data busbus cycle bus clock address bus

1.)______________ period of time required to perform one data transfer operation on a bus.2.)______________ string of eight bits.3.)______________ time interval between two adjustment clock timing pulses.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 components.8.)_____________ moves data among computer system components.9.)_____________ 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 2.) data transfer rate = 84 bitsclock 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,ACSCS Instructor Checked by:

Approved by: Noted by:

Aris Pulumbarit,MAT,CCNA Coney H. Torres Junrill Anero Berame

AMA COMPUTER COLLEGEPasig Campus

Page 8: MELJUN CORTES  ama_exam_compilation

PRELIMINARY EXAMINATIONAcctg 1a --- T2/B2/I2

2st Trimester 2011-2012General Instructions:1.        Strictly NO PERMIT NO EXAM2.        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 examREQUIREMENTS:

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. (Pls see the attached)3.) Trial Balance ----------------answers must be written on bondpaper with heading already. (Pls see the attached)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 SHOPChart of Accounts

ASSETS OWNER’S EQUITY11 CASH 31 PALUMBARIT, CAPITAL12 ACCOUNTS RECEIVABLE—LEI CAÑA 32 PALUMBARIT, DRAWING13 ACCOUNTS RECEIVABLE—PIOLO PASCUAL14 REPAIR TOOLS INCOME15 REPAIR SUPPLIES 41 SERVICE INCOME16 FURNITURE & FIXTURES17 SERVICE TRUCK

LIABILITIES EXPENSES21 ACCOUNTS PAYABLE – BERAMI FURNITURE Inc. 51 ADVERTISING EXPENSE22 NOTES PAYABLE—COCO MARTIN 52 SALARIES & WAGES EXPENSE

53 UTILITY EXPENSE54 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,500Truck---------------------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,ACSCS Instructor Checked by:

Approved by: Noted by: Aris Pulumbarit,MAT,CCNA Coney H. Torres Junrill Anero Berame DEAN School Director Department Head

Page 9: MELJUN CORTES  ama_exam_compilation

ANSWER SHEET ----for POSTING to T-account: CASH ACCOUNTS RECEIVABLE—LEI CAÑA ACCOUNTS RECEIVABLE—PIOLO PASCUAL

REPAIR TOOLS REPAIR SUPPLIES FURNITURE & FIXTURES

SERVICE TRUCK PALUMBARIT, CAPITAL PALUMBARIT, DRAWING

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

ADVERTISING EXPENSE SALARIES & WAGES EXPENSE UTILITY EXPENSE RENT EXPENSE

Page 10: MELJUN CORTES  ama_exam_compilation

Prepared by:MELJUN P. CORTES, MBA,MPA,BSCS,ACSCS Instructor

ANSWER SHEET ----for Trial Balance

SILAHIS REPAIR SHOPTrial Balance

as of October 31, 2011

Account Titles DEBIT CREDIT

TOTAL

Page 11: MELJUN CORTES  ama_exam_compilation

Prepared by:MELJUN P. CORTES, MBA,MPA,BSCS,ACSCS Instructor

AMA COMPUTER COLLEGEPreliminary Examination

CSCI02 CB2nd 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.__     is a complete stand-alone program that does not require a Web Browser.10.___ 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.)________________{                                                                                                                                               5.)________                 final double PI = 3.14159;--------------7.)__________________

     String radiusStr;                 double radius, area, circumference;                                                                     10.)__________

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

     circumference = 2.0 * PI * radius;                                                        4.) _______________

     JOptionPane.showMessageDialog(null, "Given  Radius: " + radius + "\n" );                  System.out.println ("Programming is great fun!");                                                 8.) __________}                                                                                                                                                           9.) ______

}

III. Enumeration (List Down the following)

A. 6 Java Numerical Data Types B. 6 Parts of a Java ProgramC. 5 Java Arithmetic Operators D. 7 Java Escape SequencesE. 48  Java Reserved or KeywordsF. 8 Java Primitive data types

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

        Prepared by: Checked by:                       MELJUN P. CORTES, MBA,MPA,BSCS,ACS Mr. Junrill Anero Berame

  CS Instructor Department Head

Page 12: MELJUN CORTES  ama_exam_compilation

Approved  by: Noted by:Aris Pulumbarit, MAT,CCNA Coney H. TorresDean  School Director

AMA COMPUTER COLLEGEPasig Campus

PRELIMINARY EXAMINATION

CSCI04 T3Computer Programming 3

2st Trimester 2011-2012General Instructions:1.        Strictly NO PERMIT NO EXAM2.        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 directly, without further recursion.

2. The ____ of a recursive algorithm is the part in which the problem is reduced in size.

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

Page 13: MELJUN CORTES  ama_exam_compilation

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 = 0gcd(a, b) = gcd(b, a % b), when a > 0

----------------------------------------------------------------------------------------------------------------------------------------------------- Prepared by:

MELJUN P. CORTES, MBA,MPA,BSCS,ACSCS Instructor

Approved by: Aris Palumbarit Conney H. Torres Junrill Berame College Dean School Director CAS

AMA COMPUTER COLLEGEPasig Campus

Preliminary ExaminationCompo02 CB

2nd Trimester 2011-2012General Instructions:Strictly NO PERMIT NO EXAMWrite 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.10.______________to 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)

Page 14: MELJUN CORTES  ama_exam_compilation

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-mail2._________________WWW 12.______________________ISP3._________________URL 13.______________________TCP/IP4._________________http 14.______________________IP5._________________HTML 15.______________________IE6._________________FTP 16.______________________CGI7._________________IRC 17.______________________ISDN8._________________ARPANET 18.______________________TelNet9._________________LAN 19.______________________ALU10.________________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).

Computer Network NetworkingTelNet

HTMLVI. 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.)__________ informationOn the internet, which links 3.)_____________on similar subjects located different 4.)________ around the around.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.)___________________.

Page 15: MELJUN CORTES  ama_exam_compilation

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.)__________________________.10._______________would even permits us to go to a private chat room to talk about topics that are confidential.

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

Prepared by: Checked by:

MELJUN P. CORTES, MBA,MPA,BSCS,ACS Mr. Junrill Anero Berame

CS Instructor Department Head

Approved by: Noted by:

Aris Pulumbarit, MAT,CCNA Coney H. TorresDean School Dirctor