0% found this document useful (0 votes)
45 views8 pages

PHP Programmer Sample Exam

computer test

Uploaded by

Mian Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views8 pages

PHP Programmer Sample Exam

computer test

Uploaded by

Mian Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

SAMPLE PAPER

COMPUTER
PROGRAMMER
PHP

Sample Paper COMPUTER PROGRAMMAR PHP 1


ENGLISH

Choose the best option, from the given choices below each sentence.
1. I plan to go ________ England next year.

A) to
B) at
C) on
D) in

2. Aslam is elder ______ Sara.

A) as
B) that
C) than
D) of

3. Ali's essay was not ________ one, as it had been written hurriedly the night
before from a careless ________ of information and research data.

A) a rambling ... collage


B) an ambiguous ... development
C) an amorphous ... morass
D) a coherent ... hodgepodge

Choose the best opposite of the following words.


4. EVEN:

A) follow
B) complete
C) varied
D) clear

5. ARRIVE:

A) arise
B) depart
C) drive
D) bound

6. DETERIORATE:

A) deaden
B) trust
C) rectify
D) drain

Choose the best same meaning of the following words.


7. APPRAISE:

A) search
B) estimate
C) prove
D) complain

Sample Paper COMPUTER PROGRAMMAR PHP 2


8. RUTHLESS:

A) careless
B) useless
C) merciless
D) fearless

Select the lettered pair that best expresses a relationship similar to


that expressed in the original pair.

9. CHATTER: TALK::

A) carry: lift
B) sleep: drowse
C) limp: walk
D) scurry: move

10. CALORIMETER: HEAT::

A) mile: distance
B) exam: ability
C) second: minute
D) telescope: star

Sample Paper COMPUTER PROGRAMMAR PHP 3


GENERAL KNOWLEDGE
11. To the south of Pakistan lies:

A) Bay of Bengal
B) The Arabian Sea
C) The Persian Gulf
D) Iran

12. Which of the following is referred by per capita?

A) By head
B) By law
C) By the way
D) By legal means

13. In Pakistan summer season rain fall is caused by:

A) Due to heat
B) Due to cold wind
C) Due to storm
D) Due to monsoon

14. The cabinet mission plan consisted of how many British Ministers?

A) 3
B) 5
C) 7
D) 9

15. Tochi pass and Gomal pass are situated in:

A) Kho-e-Sufaid Ranges
B) Waziristan Hills
C) Toba Kakar Mountain Range
D) Saihan Hills

16. Which of the following province is the smallest according to population?

A) Punjab
B) Sindh
C) Baluchistan
D) KPK

Sample Paper COMPUTER PROGRAMMAR PHP 4


IQ
17. Which one is different from the rest?

A) Mother
B) Friend
C) Brother
D) Son

18. 5 10 15 20 25 30 35 41 45 50
One number is wrong in the above series. What should that number be?

A) 20
B) 25
C) 35
D) 41

19. In a code language, 'fit kon dan' means 'school is good’; 'mok dan sil' means 'nice
big school' and 'warm tir fit' means 'temperature is high'. Which word stands for
'good' in that language?

A) mok
B) fit
C) kon
D) dan

Sample Paper COMPUTER PROGRAMMAR PHP 5


SUBJECT
20. What will be the output of the following code? echo 5 + "5 apples";

A) 10
B) 5 apples
C) 5
D) Error

21. Which of the following is not a valid PHP data type?

A) integer
B) float
C) double
D) string

22. Printer extension of php in only available in:


A) Linux
B) Window
C) both Linux and Window
D) Not an extension

23. Which of the following is an example of a high-level language?

A) DOS
B) An algorithm
C) An assembler
D) FORTRAN

24. Suppose you are developing android application with Eclipse IDE which tool you
will use to find inefficiencies in application (app)?

A) Froyo
B) SDK viewer
C) Traceview
D) Hierarchy Viewer

25. The primary storage section of a computer has many small storage areas. Each
one is assigned an address. Pick up wrong statement about storage location.

A) An address location can hold only one item at a time


B) A storage location can hold only a data item
C) Each location is identified by a built-in unique number
D) When new data are stored in an address location, the previous
contents are erased and replaced

26. A data path to transfer data is:

A) counter
B) bus line
C) access
D) address

Sample Paper COMPUTER PROGRAMMAR PHP 6


27. A computer program written into a storage medium from which it cannot be
accidentally erased is called:

A) malware
B) shareware
C) firmware
D) software

28. Which of following is/are super global variable(s)?

A) $GLOBALS
B) $_SERVER
C) $_REQUEST
D) All of the above

29. function_exist() is used for which of the following?

A) to determine whether the given function is defined in the current PHP


environment
B) to determine where function is defined
C) to determine if function is declared in global scope
D) to determine if function is declared in global scope

30. $_ENV means:

A) Reference of all global variable


B) Session variable
C) Environmental variable
D) Cookie variable

Sample Paper COMPUTER PROGRAMMAR PHP 7


ANSWER KEYS

Q #. Right Choice
1 A
2 C
3 D
4 C
5 B
6 C
7 B
8 C
9 D
10 B
11 B
12 A
13 D
14 A
15 B
16 C
17 B
18 D
19 C
20 A
21 C
22 B
23 D
24 D
25 B
26 B
27 C
28 D
29 A
30 C

Sample Paper COMPUTER PROGRAMMAR PHP 8

You might also like