Professional Documents
Culture Documents
(ComputerScience)
CS-363:WEB TECHNOLOGIES – II
(Semester-VI)
a) in the background
b) before loading the page
c) with reloading the page
d) All of the above
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
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>
</head>
<body>
<script>
var x=0,y=0;
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
a) PHP
b) JavaScript
c) Java
d) Python
A. 4
B. 3
C. 5
D. 7
A. Top-to-Bottom
B. Bottom-to-top
C. Both
D. None