Web Programming
Web Programming
A. Undefined
B. Number
C. Boolean
D. Float
A. Letsfindcourse 30
B. 30
C. Letsfindcourse30
D. Exception
14. What are the three important manipulations done in a for loop on a
loop variable in JavaScript?
A. the initialization, the Incrementation, and update
B. the initialization, the test, and the update
C. the initialization, the test, and Incrementation
D. All of the above
28. JavaScript string using double quotes is exactly the same as a string
using single quotes?
A. True
B. False
42. The _______ method of an Array object adds and/or removes elements
from an array.
A. Reverse
B. Shift
C. Slice
D. Splice
A. user-side scripting
B. client-side scripting
C. server-side scripting
D. Both B and C
45. PHP files have a default file extension of_______.
A. .html
B. .xml
C. .php
D. .hphp
46. Which of the following is the correct syntax of php?
A. <?php >
B. <php >
C. ?php ?
D. <?php ?>
47. Which of the below statements is equivalent to $sub -= $sub?
A. $sub = $sub
B. $sub = $sub -$sub
C. $sub = $sub - 1
D. $sub = $sub - $sub – 1
48. Which statement will output $lfc on the screen?
A. echo "$lfc";
B. echo "$$lfc";
C. echo "/$lfc";
D. echo "$lfc;";
49. Which of the below symbol is a newline character?
A. \r
B. \n
C. /r
D. /n
50. PHP files can contain ________ code.
A. text
B. HTML
C. python
D. Both A and B
51. What will be the output of the following PHP code?
<?php
$x = 8;
$y = 8.0;
?>
A. 8 === 8
B. No Output
C. 1
D. 0
52. The script that executes at the browser side is called _____
A. Client-side scripting
B. Server-side scripting
C. Both A and B
D. None of the above
53. How many ways user can print output in PHP?
A. 1
B. 2
C. 3
D. 4
54. How many ways user can print output in PHP?
A. 1
B. 2
C. 3
D. 4
55. How many return value does echo statement has?
A. 1
B. 2
C. 3
D. 0
56. What will be the output of the following PHP code?
<?php
?>
A. Hello world
B. Hello world I am learning PHP at letsfindcourse
C. Hello world
I am learning PHP at letsfindcourse
D. Error
57. What will be the output of the following PHP code?
<?php
$five = 5;
print($five);
print $five;
?>
A. 05
B. 55
C. 50
D. Error
58. What will be the output of the following PHP code?
<?php
print("I"."am"."learning"."php");
?>
A. Iamlearningphp
B. I am learning php
C. Nothing
D. error
59. which of the following is correct echo statement?
<?php
?>
A. This is Letsfindcourse
B. This is Letsfindcourse(Letsfindcourse in italic)
C. This is
D. Error
61. Any variables declared in PHP must begin with a _____?
A. .
B. #
C. &
D. $
62. A variable can have ________?
A. long descriptive names
B. short names
C. Both A and B
D. None of the above
63. A variable name can only contain ____________?
A. alphanumeric characters
B. underscores
C. Both A and B
D. None of the above
64. Variable names in PHP must start with?
A. letter
B. underscore
C. no numbers
D. All of the above
65. PHP variables are case-sensitive?
A. True
B. False
C. For "sum" variable it is case-sensitive
D. None of the above
66. How many variable scope are there in php?
A. 2
B. 3
C. 1
D. 4
67. choose the incorrect variable name in php?
A. $_AGE
B. $18AGE
C. $AGE18
D. $_AGE18
68. A variable declared _____ has a GLOBAL SCOPE?
A. outside program
B. inside function
C. outside function
D. None of the Above
69. A variable declared _____ has a LOCAL SCOPE?
A. outside program
B. inside function
C. outside function
D. None of the Above
70. Which of the following will be output of the following code?
<?php
function myTest() {
static $x;
echo $x;
myTest();
?>
A. 0
B. 1
C. No Output
D. Error
71. Which of the following is NOT a super global variable ?
A. $_SERVER
B. $_GLOBAL
C. $_GET
D. $_POST
72. Predict the output of the following code snippet :
<?php
$i=10;
function sample($i)
$i++;
echo $i.",";
echo $i.",";
GLOBAL $i;
sample($i);
echo $i;
?>
A. 11,11,11
B. 10,11,11
C. 10,11,10
D. 10,10,10
73. Can we change the value of constant during the execution of the
script.
A. can
B. can not
C. depends on data type
D. depends on variable