MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Computer Science
Ajax
Quiz 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Q.1
SOAP is a format for sending messages and is also called as __________.
Data Transfer protocol
Communication protocol
Network protocol
None of these
Q.2
What is the correct jQuery code for making all div elementspixels high?
$("div").height="100"
$("div").height(100)
$("div").yPos(100)
Q.3
How do we keep data inside an Object ?
Key : value
key = value
value : key
key = value
Q.4
Which is an AJAX function?
can load data from the server to a web browser without reloading (refreshing)
make code more concise
add style to the web page
create slide animations
Q.5
The functions provided by JQuery to hide elements are ...
fadeOut
fadeIn
fadeToggle
fadeSlow
Q.6
The function in JQuery that is used to ensure all the desired elements are displayed on the web page is ...
document ready()
document complete()
document all()
document display()
Q.7
Which is the wrong way to write variables in PHP?
$name
$_address
$1student
$school?
Q.8
The following is not a way of writing PHP code in HTML is ...
<? dan ?>
<?php dan ?>
<$ dan $>
Q.9
PHP is a server-side programming, where the code will be executed on the server side. The following which one can act as a server on a local computer ...
XAMPP
HTDOCS
APACHE
MYSQL
Q.10
The right syntax used to stop a loop when a condition occurs and continue the next loop is ...
WHILE
DO ... WHILE
BREAK
CONTINUE
Q.11
Which operator is used to calculate the modulo?
*
/
+/
%
Q.12
A PHP program will display the name of the month when entering a number between 1 andin the input form. The use of the right branching is ...
IF
IF ... ELSE
IF - IF .. ELSE - ELSE
SWITCH
Q.13
If a condition has two choices, namely true and false, then the syntax used is ...
IF
IF ... ELSE
IF - IF .. ELSE - ELSE
SWITCH
Q.14
Which jQuery function is used to prevent code from running, before the document is finished loading?
$(body).onload()
$(document).load()
$(document).ready()
Q.15
Look at the following selector: $("div p"). What does it select?
The first p element inside a div element
All p elements inside a div element
All div elements with a p element
Q.16
Which jQuery method is used to hide selected elements?
hide()
hidden()
visible(false)
display(none)
Q.17
Which jQuery method is used to perform an asynchronous HTTP request?
jQuery.ajax()
jQuery.ajaxSetup()
jQuery.ajaxAsync()
NOTA
Q.18
Which jQuery method is used to set one or more style properties for selected elements?
css()
style()
html()
both style and css
Q.19
With jQuery, look at the following selector: $("div.intro"). What does it select?
All div elements with id="intro"
All div elements with class="intro"
The first div element with class="intro"
The first div element with id="intro"
Q.20
What is the correct jQuery code to set the background color of all p elements to red?
$("p").manipulate("background-color","red");
$("p").style("background-color","red");
$("p").layout("background-color","red");
$("p").css("background-color","red");
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page