Iqtech Ltd. Exam (Basic Part) On PHP + Mysql Course: Time: 60 Mins Total Questions:30 Total Marks:60 Pass Marks:45
Iqtech Ltd. Exam (Basic Part) On PHP + Mysql Course: Time: 60 Mins Total Questions:30 Total Marks:60 Pass Marks:45
Name:________________________________________________________________
Batch:_____________________________________Mobile:____________________
a) //
b) ##
c) /*
Ans:
a) Faster
b) Easier to read
c) Both a) and b)
Ans:
A. 0
B. 1
C. 2
D. NULL
Ans:
4. What will $bar be set to in this expression: $bar = 5 * 5 + 5?
A. 30
B. 50
C. 5
D. NULL
Ans:
a) delete()
b) unset()
c) deset()
d) remove()
Ans:
a) str_to_upper()
b) str_to_upper_first()
c) uc_first()
d) ucfirst()
Ans:
Ans:
<?php
$a = array('c', 'b', 'a');
$b = (array) $a;
print_r($b);
?>
A.TRUE
B. array('c', 'b', 'a')
C. array(array('c', 'b', 'a'))
D. None of the above
E. Array ( [0] => c [1] => b [2] => a )
Ans:
a) CHAR(20)
b) VARCHAR(300)
c) TEXT
d) LONGINT
Ans:
10. Suggest the ideal data type for the following fields:
a) First name
b) Age
c) Height
Ans:
Ans:
Ans:
Ans:
14. What are the current versions of apache, PHP, and MySQL?
Ans:
Ans:
Ans:
17. What is the difference between char and varchar data types in MySQL?
Ans:
Ans:
Ans:
Ans:
Ans:
<?php
$txt1="5,6,7,8,9";
$txt2="0,1,2,3,4,";
echo $txt2 . " " . $txt1;
?>
Ans:
23. What will the following script output?
<?php
function father()
{
function child()
{
echo "I don't exist until father() is called.\n";
}
echo "Father";
}
father();
?>
Ans:
24. What is the name of a function used to convert an array into a string?
Ans:
Ans:
Ans:
Name Owner Species Sex Birth Death
Fluffy Harold Cat f 1993-02-04
Claws Gwen Cat m 1994-03-17
Buffy Harold Dog f 1989-05-13
Fang Benny Dog m 1990-08-27
Bowser Diane Dog m 1979-08-31 1995-07-29
Chirpy Gwen Bird f 1998-09-11
Whistler Gwen Bird 1997-12-09
Slim Benny Snake m 1996-04-29
27. What is the MySQL query for finding the initials (1st character) word “b” from
“name” column ? (FIGURE 1 is just for helping your imagination)
ANS:
28. What is the MySQL query for finding the word “w” from anywhere of the words
from “name” column ? (FIGURE 1 is just for helping your imagination)
ANS:
29. What is the MySQL query for finding the words formed 5 spacing from “name”
column ? (FIGURE 1 is just for helping your imagination)
Ans:
Ans: