National Institute of computer Education
Final Exam
Web Designing (JavaScript and PHP)
Total Marks: 100 Duration: 2:00 hr.
Q: 1) WAP to create a Insert query in database using PHP and HTML? (15)
Q: 2) WAP to create a search query in database using PHP and HTML? (15)
Q: 3) What is control flow Statement in PHP? Explain its types with examples? (20)
Q: 4) WAP to create Hide and Show effect in JavaScript? (10)
Q: 5) Explain function in JavaScript? Explain its types with examples? (10)
Q: 6) WAP to create a foreign key to join two tables? (10)
Q:7) PHP stands for -
(2)
1. Hypertext Pre-processor
2. Pretext Hypertext Pre-processor
3. Personal Home Processor
4. None of the above
Q:8) Variable name in PHP starts with -
(2)
1. ! (Exclamation)
2. $ (Dollar)
3. & (Ampersand)
4. # (Hash)
Q:9) Which of the following is used to display the output in PHP?
(2)
1. echo
2. write
3. print
4. Both (a) and (c)
Q:10) Which of the following is the correct way to create a function in PHP?
(2)
1. Create myFunction()
National Institute of computer Education
Final Exam
Web Designing (JavaScript and PHP)
2. New_function myFunction()
3. function myFunction()
4. None of the above
Q:11) Which of the following is the correct way to print "Hello World" in PHP?
(2)
1. "Hello World";
2. write("Hello World");
3. echo "Hello World";
4. None of the above
Q:12) The "function" and " var" in JavaScript are known as :
(2)
1. Keywords
2. Data types
3. Declaration statements
4. Prototypes
Q:13) In JavaScript the x===y statement implies that:
(2)
1. Both x and y are equal in value, type and reference address as well.
2. Both are x and y are equal in value only.
3. Both are equal in the value and data type.
4. Both are not same at all.
Q:14) Which one of the following is used for the calling a function or
a method in the JavaScript:
(2)
1. Property Access Expression
2. Functional expression
3. Invocation expression
4. Primary expression
National Institute of computer Education
Final Exam
Web Designing (JavaScript and PHP)
Q:15) Which one of the following is correct output for the following
(2)
given JavaScript code:
string X= "Good"; string Y="Evening";
alert(X+Y);
1. Good
2. Evening
3. Good Evening
Q:16) Which one of the following is known as the Equality operator
(2)
which is used to check whether the two values are equal or not:
1. =
2. ===
3. ==
4. &&