Preboard Scripting Language PDF
Preboard Scripting Language PDF
Preboard Scripting Language PDF
Symbol No:
Candidates are required to answer the questions in their own words as far as possible.
Group A
Attempt all the questions. 101 = 10
Circle (O) the correct answer.
1. Which tag is used to check JavaScript enable state,
a) <checkscript> b) <script>
c) <noscript> d) <javascript>
2. Which of following function return 1 when output is successful?
a) echo ( ) c) both
b) print ( ) d) None
3. Which one of the following variable cannot be used inside a static method?
a) $this c) $set
b) $get d) $date
4. $.foo() is equivalent to ?
a) javascript.foo(); c) jQuery.foo();
b) document.foo(); d) none of the above
5. Which of the following function is used to sort an array in descending order in PHP?
a) sort(); c) rsort();
b) asort (); d) dsort ();
8. If your object must inherit behavior from a number of sources you must use a/an
var a = 10;
do {
a += 1;
console.log (a);
} while (a < 5);
a) 11121314 c) 12345
b) 1112 d) 11
10. Which one of the following PHP functions can be used to build a function that accepts any number of
arguments?
i. func_get_argv() iii. get_argv()
ii. func_get_argc() iv. get_argc()
Bachelor in Computer Applications Full Marks: 60
Course Title: Scripting Language Pass Marks: 24
Code No: CACS 254 Time: 3 hours
Semester: 4th
Candidates are required to answer the questions in their own words as far as possible.
Group B
Attempt any SIX questions. [65 = 30]
11. What is difference between array and object in JavaScript? Write a JS program to create custom object
[1 + 4]
12. Explain XMLHTTPRequest? Write code to display phone number from database using Ajax? [5]
13. What is JavaScript Object? Describe different properties and methods associated
with DOM object. [1 + 4]
14. What is cookie? Explain how can we store and destroy cookie using PHP? [1 + 4]
15. What is CMS? What are advantage and disadvantage of CMS? [5]
16. List and explain super global variable? Differentiate between GET and POST method. [5]
17. What is framework, Describe How MVC framework work in PHP? [5]
Group C
Attempt any TWO questions. [210 = 20]
18. Write a program to insert student information and delete data from database using PHP? [5 + 5]
20. What is Exception Handling? Describe 4 major principles of object oriented programming with PHP.
[2+8]
21. What is the need of client side scripting? Why need from validation into website, which validation is
best among client side and server side validation describe with examples. [2+8]