You are on page 1of 7

T.Y.B.Sc.

(ComputerScience)
CS-363:WEB TECHNOLOGIES – II
(Semester-VI)

1) Ajax stands for ______.

a) Asynchronous JavaScript and XML


b) Asynchronous JSON and XML
c) Asynchronous Java and XML
d) Asynchronous JavaScript and XMLHttpRequest

2) Ajax is used for creating _____.


a) Web applications
b) Desktop applications
c) System applications
d) Both A. and B.

3) Which are the two major features of AJAX?


a) Make requests to the server without reloading the page
b) Receive and work with data from the server
c) Make requests to the server with reloading the page
d) Only receive the data from the server
Answer: A & B

4) Ajax sends data to a web server _____.

a) in the background
b) before loading the page
c) with reloading the page
d) All of the above

5) Ajax technologies include ______.

a) HTML/XHTML and CSS


b) DOM
c) XML or JSON
d) XMLHttpRequest
e) JavaScript
f) All of the above

6) Which is the correct syntax to add HTTP headers to the request?


a) setRequestHeader(value, header)
b) setAllRequestHeader(value, header)
c) setRequestHeader(header, value)
d) setAllRequestHeader(header, value)

7) jQuery is a -
a) JavaScript method
b) JavaScript library
c) JSON library
d) PHP method

8) Which of the following jQuery method is used to hide the selected elements?
a) The hidden() method
b) The hide() method
c) The visible(false) method
d) The display(none) method

9) What is the purpose of the Attr object in the HTML DOM?


a) Used to focus on a particular part of the HTML page
b) HTML Attribute
c) Used to arrange elements
d) CSS attribute

10) How are the objects organized in the HTML DOM?


a) Class-wise
b) Queue
c) Hierarchy
d) Stack

11) Which object is the top of the hierarchy?


a) Window Object
b) Document Object
c) Form Object
d) Form Control Elements

12) Which type of JavaScript language is ___

1. Object-Oriented
2. Object-Based
3. Assembly-language
4. High-level
13) In JavaScript, what is a block of statement?

a) Conditional block
b) block that combines a number of statements into a single compound
statement
c) both conditional block and a single statement
d) block that contains a single statement

14) Which of the following is the correct output for the following JavaScript code:

Int x=8;
if(x>9)
{
document.write(9);
}
else
{
document.write(x);
}

a) 9
b) 0
c) 8
d) Undefined

15) Which one of the following is the correct way for calling the JavaScript code?

a) Preprocessor
b) Triggering Event
c) RMI
d) Function/Method

16) Which of the following number object function returns the value of the number?

1. toString()
2. valueOf()
3. toLocaleString()
4. toPrecision()

17) Which of the following function of the String object returns the character in the string
starting at the specified position via the specified number of characters?

1. slice()
2. split()
3. substr()
4. search()
18) Find Correct output

<!DOCTYPE html>

<html>

<head>

<H1>The concept of the "===" stement</H1>

</head>

<body>

<script>

var x=0,y=0;

var a=0, b=1;

if(x===y){

document.write(true);

else{

document.write(false);

if (a===b){

document.write(true);

}else

{ document.write(false);

</script>
</body>

</html>

a) True
b) False
c) True False
d) 0,1

19) See the given code of JavaScript and choose the correct output from the following:

functioncomparing()
{
intx=9;
chary=9;
if(x==y)
returntrue;
else
returnfalse;
}

a) compilation error
b) false
c) runtime error
d) true

20) In JavaScript, what will be used for calling the function definition expression:

a) Function prototype
b) Function literal
c) Function calling
d) Function declaration

21) CodeIgniter uses which programming language?

a) PHP
b) JavaScript
c) Java
d) Python

22) CodeIgniter uses which of the following approach?

A. MVC Model view controller


B. Master-slave
C. Client-server
D. Layered
23) How many reserved routes are there in CodeIgniter?

A. 4
B. 3
C. 5
D. 7

24) CodeIgniter reads its routing rules from ____?

A. Top-to-Bottom
B. Bottom-to-top
C. Both
D. None

25) Choose the correct syntax of PHP.


a) <php>
b) <?php>
c) ?php?
d) <?php?>

You might also like