Mock Test QA & ANS
Mock Test QA & ANS
ENGLISH :-
Find the error Q13-A man who speaks less in the forum
Q1- Peter and Andrea walked (1) besides each ans-reticent
other (2) in complete (3) silence. (4) No Error
(5) Q14- A country that is ruled by a king or queen
Ans-2 ans-monarchy
Q2- Maria brought the chocolates (1) and Q15-The practice of having several wives
distributed them (2) between her (3) four ans-polygamy
children. (4) No error (5)
Ans-3 Solved Change of Voice
Q16-Her selection in the crew surprised Peter.
Q3-The fish is (1) the favorite food (2) of (3)
the Bengalis. (4) No error (5) A. Her selection in the crew was a big surprise.
Ans-1 B. Peter was surprised at her selection in the
crew.
Q4- She has been (1) promoted to the (2) rank C. Her selection was a surprise.
of (3) the D.I.G. (4) No error (5) D. Peter was surprised at her selection of the
Ans-4 crew.
Q5- It was (1) by a mistake (2) that Peter (3) Ans- Peter was surprised at her selection in the
broke (4) the glass window. (5) No error crew.
Ans-b
17-The student committed the mistake.
Selecting Words A.The mistake has committed by the student.
Q6- She lived ____________ the expectations. B. The mistake had been committed by the
Ans-up to student.
C. The mistake was committed by the student.
Q7- The Himalayas are located __________ the D. The mistake is committed by the student.
northern frontier of India. Ans-The mistake was committed by the
Ans-along student.
2. Which function add new element at end of 11. PHP arrays are also called as
array? A.push() B.pop() C.stack() D.None A. Vector arrays B. Perl arrays
Ans. A C. Hashes D. All of them
Ans.C
3. Which function is use to check weather
variable is array or not? 12. Which of the following is a PHP resource?
A.on_array() B.is_array() C.the_array() D.None a. Domxml document b. Odbc link c. File d. All
Ans. B of the above
Ans: d
4. When you use the $_POST variable to collect
data, the data is visible to.. 13. What will be the output of following code?
a) none b) only you c) everyone d) selected $a = 10; echo ‘Value of a = $a’;
few a. Value of a = 10
Ans Ans. B b. Value of a = $a
c. Undefined
5. ) When you use the $_GET variable to collect d. Syntax Error
data, the data is visible to.. Ans: a
a) none b) only you c) everyone d) selected few
Ans.C 14. Which of the following is correct with
regard to echo and print?
6. Which two predefined variables are used to a. echo is a construct and print is a function
retrieve information from forms? b. echo is a function and print is a construct
a) $GET & $SET b) $_GET & $_SET c) $__GET & c. Both are functions
$__SET d) GET & SET d. Both are constructs
Ans: d
Ans. B
7. Which of the methods are used to manage 15. The following php variables are declared:
result sets using both associative and indexed
arrays? $company = ‘ABS Ltd’;
a) get_array() and get_row() $$company = ‘,Sydney’;
b) get_array() and get_column()
c) fetch_array() and fetch_row() Which of the following is not a correct way of
d) fetch_array() and fetch_column() printing ‘ABS Ltd,Sydney’?
Ans. C
a. echo ‘$company $$company’;
8. )Which one of the following statements can b. echo ‘$company ${$company}’;
be used to select the database? c. echo ‘$company ${‘ABS Ltd’}’;
a) $mysqli=select_db(‘databasename’); d. echo ‘$company {$$company}’;
b) mysqli=select_db(‘databasename’); Ans: a
c) mysqli->select_db(‘databasename’);
d) $mysqli->select_db(‘databasename’);
Ans.D
16. What will be the output of the following
code?
$Rent = 250;
function Expenses($Other)
{ $Rent = 250 + $Other;
return $Rent;
}
Expenses(50);
echo $Rent;
a. 300
b. 250
c. 200
d. Program will not compile
Ans: b