WT

Considering the JavaScript code snippet below, how many times will the text "i is now 2" appear? for(i = 1; i < 5; i++) if(i = 2) document.write("i is now 2");
five times
never stops
two times
once
four times
What will the following JavaScript code display? var a = 1; var b = 1; document.write("a+b=" + a + b)
2
a+b=2
a+b=11
a+b
an error about the missing library
Given the following HTML snippet, what does the browser do when the button is pressed? "<input id="textbox" type="text" /> <input type="button" value="Magic" /><code></code></div>
<div><code></code></div>"
Displays the content of the text box in a small dialog
Warns the user about the integer value
Displays the length of the text box
Resets the text box
Shows the received value in the text box
If we want to use SQL to find all employees whose names start with 'E', which is the correct query?
SELECT * FROM employees IF name APPROXIMATES 'E--'
SELECT * FROM employees FOR name SIMILAR TO 'E;'
SELECT * FROM employees WHERE name LIKE 'E%'
SELECT * FROM employees CONDITIONAL name = 'E*'
SELECT * FROM employees AND name INCLUDES '++E'
Mark all statements considered true:
JavaScript is not supported in Internet Explorer
JavaScript is an object-oriented language
JavaScript is an interpreted language
JavaScript is a strongly typed language
JavaScript is faster than C
In CSS, borders can have rounded corners by specifying:
the number of pixels in the corner
the alpha channel transparency
the rounding category
the corner polygon shape
the corner radius
Why is it important to access PHP scripts through a PHP-capable web server?
Because the web browser cannot interpret PHP
Because Apache doesn’t run on Windows
For security reasons, since PHP code should never leave the server
Because Windows doesn’t support PHP
Because Google no longer provides PHP licenses
If in CSS, the padding is 3px and the border is 2px, how far is the content from the edge?
2 × (3 + 2) = 10px
4 × (3 − 2) = 4px
2 − 3 = −1px
3 + 2 = 5px
3 − 2 = 1px
Given the following HTML form, what should reply.php contain in order to respond with "Hello" in the browser only if the text box contains "Hi"? 
"<form action="reply.php" method="post"><input name="textbox" type="text" /> <input type="submit" value="Send it" /></form>"
Incorrect syntax, uses %_SERVER and invalid functions
Uses = instead of ==, and $_CLIENT is not valid
Uses $_POST properly and checks equality
Invalid syntax and $_CLIENT is not a PHP global
Uses $_POST and outputs HTML inside the conditional block
What is considered the best practice when resizing images for web pages?
Using the CSS Lanczos algorithm
Using HTML height="" and width="" attributes
Using the Fast Fourier Transform of HTML
Using the browser's default bicubic interpolation
Using Sinc resampling in an image editor
Why are PHP sessions useful?
The server remembers session variables across multiple successful connections
Client data is persistently stored in a database server
The server generates only the changed data, not the entire web page
The client renders CSS faster using hardware acceleration
The TCP/IP client-server connection is kept open with persistent sockets
Given the HTML and CSS below, mark all the correct statements:
"<p>1</p>
<p class="paras">2</p>
<p id="dapara">3</p>
<p id="other" class="paras">4</p>
<p id="third" class="paras" style="color: green;">5</p>"

css: p { color: red; } .paras { color: blue; } #dapara, #other, #third { color: yellow; }
5 will be yelow
1 will be red
3 will be yellow
4 will be blue
2 will be blue
Choose the correct version of the HTML element that calls a JavaScript function when clicked:

"<p id="mpara" onclick="doit('sometext('doit')');">Mah paragraph.</p>"

"<p id="mpara" onclick="doit("sometext");">Mah paragraph.</p>"

"<p id="mpara" onclick=doit('sometext');>Mah paragraph.</p>"

"<p id="mpara" onclick="doit(<<sometext>>);">Mah paragraph.</p>"

"<p id="mpara" onclick="doit('sometext');">Mah paragraph.</p>"

Which operator should be used to compare both the value and type of two PHP variables?
!=
"==="
===
==
==!
Why is AJAX useful in web applications? Choose the most appropriate answer.
The server sends less data to the client
The application can run on 64-bit
The connection uses a lower port number
The client uses less JavaScript
The server uses less SQL
Given the following JavaScript code, which statement will display "blue"? var k = [ { "type": "car", "make": "Volkswagen", "model": "Beetle", "color": "yellow", }, { "type": "phone", "make": "Nokia", "model": "3310", "color": "blue", }, { "type": "furniture", "make": "Ikea", "model": "Billy Bookcase", "color": "beige", }, ];
document.write(k["make"].Nokia.color);
document.write(k.Nokia.color);
document.write(getElementById("make") == "Nokia" ? color : "");
document.write(k[2].color);
document.write(k[1].color);
What is an advantage provided by AngularJS 1.x?
Server-side view elements are automatically synchronized with their associated SQL models, and vice versa
UI elements are automatically synchronized with their associated data, and vice versa
It allows VBScript applications to become significantly faster
Applications using AngularJS 1.x generally run faster than pure JavaScript applications
Data processing is offloaded more to Python on the server
Given the following HTML snippet, mark all the correct statements:
"<p style="color: #ff00ff;">1</p>"
"<p style="color: #000000;">2</p>"
"<p style="color: #ffffff;">3</p>"
"<p style="color: #0000ff;">4</p>"
4 will be blue
3 will be black
2 will be black
1 will NOT be red
2 will be white
How can we include and use JavaScript in our program from an external file?
"<script>disk.read("lib.js");</script>"
"<script src="lib.js"></script>"
"<script href="lib.js"></script>"
"<meta link="lib.js"></meta>"
"<a href="lib.js"></a>"
How is the character set specified in an HTML document?
"<meta encoding="text/html">"
"<meta string="ISO-666">"
"<meta charset="UTF-8">"
"<meta type="WES-4">"
"<meta valid="LAT-16">"
Which of the following are typical implementations of CRUD operations in web applications and associated services? Mark all valid solutions.
INSERT, SELECT, UPDATE, DELETE
MAKE, RECEIVE, SEND, DESTROY
BIND, LINK, MERGE, UNBIND
ALLOCATE, PULL, PUSH, FREE
POST, GET, PUT, DELETE
Mark all the correct statements regarding CSS style priority:
Styles with an ID selector have higher priority than internal styles
External styles have higher priority than inline styles
Styles with a class selector have higher priority than external styles
Inline styles have higher priority than internal styles
External styles have higher priority than tag (element) selectors
Why is storing password hashes in a database (instead of plain text passwords) recommended?
The server administrator will not know people's passwords
Users will not know the client's passwords
Server programs run faster when using hashing
Web server scripts will be encrypted and hard to break
The client will compute salt and pepper faster and send the encrypted text
Using SQL on the characters table shown below, mark all the correct queries to retrieve the names and powers of the characters, sorted by age in ascending order (youngest first):
SELECT 1, 2 IN characters WHERE age DEC
SELECT name, powers FROM characters ORDER BY age ASC
SELECT 2, 3 FROM characters BY age DEC
SELECT name, 3 FROM characters SORT age INC
GET * FROM characters ORDER UP age
In HTML, comments begin with:
"<?"
"<!--"
"//"
"#"
"<c"
What are the differences between the GET and POST methods for submitting form data? Mark all correct answers.
GET displays data in the address bar, POST does not
GET has a 2KB data limit (in older browsers), POST does not
POST is optimized for Web 2.0, GET is an older method
Binary files can be sent using POST, but GET can only send ASCII data
POST works over TCP, GET works over UDP
Which of the following are valid HTML? Mark all correct answers.
"<a mailto="[email protected]>Sad</a>"
"<a href="http://tomato.com">Potato</a>"
"<a href="http://www.dogs.com/labradoodle/indesx.html"><img href="http://www.cats.com/catadoodle/kitty.jpg"></a>"
"<a href="http://www.citric.com/producs/gimme.php?pid=lemon">Lemon</a>"
"<a href="bio.html#chapter1" target="_blank">Chapter I</a>"
If no other styling is applied, which of the following tags will display the largest text?
"<h1>"
"<title>"
"<h6>"
"<big>"
"<sup>"
If in CSS, the padding is 3px and the border is 2px, how far is the content from the outer edge?
4 × (3 − 2) = 4px
3 − 2 = 1px
2 × (3 + 2) = 10px
3 + 2 = 5px
2 − 3 = −1px
What is an advantage of AngularJS 1.x?
It allows VBScript applications to become significantly faster
Data processing is pushed more toward Python on the server
UI elements are automatically synchronized with their associated data, and vice versa
Server-side view elements are automatically synchronized with their associated SQL models, and vice versa
Applications using AngularJS 1.x generally run faster than pure JavaScript ones
Why is it important to access PHP scripts through a PHP-capable web server? Select all that apply.
Because the web browser cannot interpret PHP
For security reasons, since PHP code should never leave the server
Because Apache does not run on Windows
Because Google no longer provides PHP licenses
Because Windows cannot run PHP
Given the following HTML snippet (with no JavaScript), which CSS selector(s) would apply to the text "A story"? Select all that are valid.
 "<h3>A story</h3>"
"<p>There was an enchanted forest.</p>"
".h3"
"#h3"
"<h3>"
"/p"
"h3"
Given the HTML form below, what should the reply.php script contain to display "Hello" in the browser only if the text box input is "Hi"? Select all correct answers.
 
"<form method="post" action="reply.php">"
"<input type="text" name="textbox">"
"<input type="submit" value="Send it">"
"</form>"
"<?php
if ($_CLIENT['textbox']=="Hi")
print("Hello");
?>"
"<?php
if ($_POST['textbox']=="Hi") {
?>
Hello
<?php
}
?>"
"<?php
if ($_POST['textbox']=="Hi")
echo "Hello";
?>"
"<?php
case (%_SERVER['textbox'].equals("Hi"))
System.echo("Hello");
?>"
"<?php
$_CLIENT['textbox'] ? "Hi"
print("Hello");
?>"
What are the differences between GET and POST methods when submitting form data? Select all correct answers.
GET displays the data in the address bar, POST does not
GET has a 2KB data limit (in older browsers), POST does not
POST is optimized for Web 2.0, GET is an older method
Binary files can be sent with POST, while GET can only send ASCII data
POST uses TCP, GET uses UDP
Why is AJAX useful in web applications? Choose the best answer.
The application can run on 64-bit
The server sends fewer queries to SQL
Applications use less JavaScript
The conection uses
The server sends less data to the client
The connection uses a lower port number
Given the HTML and CSS below, mark all correct statements.

"<p>1</p>"
"<p class="paras">2</p>"
"<p class="paras" id="other">4</p>"
"<p class="paras" id="third" style="color: green;">5</p>"

p { color: red; } .paras { color: blue; } #dapara, #other, #third { color: yellow; }
4 will be yellow
2 will be blue
5 will be yellow
4 will be blue
4 will be red
What are the differences between GET and POST when submitting form data? Mark all correct answers.
POST uses TCP, GET uses UDP
GET has a 2KB size limit (in older browsers), POST does not
POST is optimized for Web 2.0, GET is older
Binary files can be sent with POST, GET only sends ASCII
GET displays the data in the address bar, POST does not
What does Node.js allow? Mark all correct answers.
Running SQL code on the server
Running JavaScript code in the browser
Processing JavaScript code on the server
Running PHP code in the browser
Processing CSS code in the browser
What is the main difference between "<div>" and "<span>"?
"<span>" displays inline-styled content, "<div>" does not
"<div>" displays content on a separate line, "<span>" does not
"<div>" displays embedded content on the page, "<span>" does not
"<span>" wraps larger sections of the page than "<div>"
"<span>" displays content on a separate line, "<div>" does not
0
{"name":"WT", "url":"https://www.supersurvey.com/QMH0AY6BI","txt":"Considering the JavaScript code snippet below, how many times will the text \"i is now 2\" appear? for(i = 1; i < 5; i++) if(i = 2) document.write(\"i is now 2\");, What will the following JavaScript code display? var a = 1; var b = 1; document.write(\"a+b=\" + a + b), Given the following HTML snippet, what does the browser do when the button is pressed? \" \"","img":"https://cloud.quiz-maker.com/uploads/114/5527664-Screenshot-2025-06-17-112059.png"}
Make your own Survey
- it's free to start.