Page:15
Below are the scanned copy of Kerala Public Service Commission (KPSC) Question Paper with answer keys of Exam Name 'Tradesman- Information Technology' And exam conducted in the year 2023. And Question paper code was '023/2023/OL'. Medium of question paper was in Malayalam or English . Booklet Alphacode was ''. Answer keys are given at the bottom, but we suggest you to try answering the questions yourself and compare the key along wih to check your performance. Because we would like you to do and practice by yourself.
Question76:-The output of the following script is
echo substr("Kerala State",strpos("Kerala Government","Kerala"));
A:-Kerala State
B:-Kerala Government
C:-State Government
D:-Kerala State Government
Correct Answer:- Option-A
Question77:-What will be the output of the following script?
$a=-1
while ($¢a++){
echo "$a";}
echo $a;
?>
A:--1
B:-0
C:--10
D:-01
Correct Answer:- Option-D
Question78:-What is the difference between include and require statements in PHP?
A:-require will produce a fatal error and stop the script, while include will only
produce a warning and the script will continue
B:-include will produce a fatal error and stop the script, while require will only
produce a warning and the script will continue
C:-require will produce a fatal error and the script will continue, while include
will only produce a warning and stop the script
D:-require will produce a warning and stop the script, while include will only
produce a fatal error and the script will continue
Correct Answer:- Option-A
Question79:-Which of the following is used in PHP to invoke a method?
A:-$object.methodname()
B:-$object.smethodname()
C:-$object->methodname()
D:-$object->$methodname()
Correct Answer:- Option-C
Question80:-Which feature of PHP allows calling one or more methods in single
instruction?
A:-method adding