| Java is a general-purpose, object-oriented, high-level programming language with several features that make it ideal for web-based development | 1 | true-false | True | | Java |
| A Java program is first compiled into processor-dependent byte codes, then the byte codes are interpreted at run time by the Java Virtual Machine | 1 | true-false | False | | Java |
| A byte holds 8 binary digits | 1 | true-false | True | | Java |
| The Java Runtime Environment (JRE) is a set of software tools for development of Java applications. It combines the Java Virtual Machine (JVM), platform core classes and supporting libraries | 1 | true-false | True | | Java |
| A CPU understands only binary and hexadecimal numbers | 1 | true-false | False | | Java |
| A bit can hold up to 16 binary digits | 1 | true-false | False | | Java |
| In Java, there are different types of variables, but all types are Objects | 1 | true-false | False | | Java |
| The float and decimal types are equivalent | 1 | true-false | False | | Java |
| Every variable must be given a name and a data type before it can be used. | 1 | true-false | True | | Java |
| Java supports eight different primitive data types, including byte and Boolean | 1 | true-false | False | | Java |
| Strings are objects of Java’s String Class | 1 | true-false | True | | Java |
| The + operator can be used between strings to add them together to make a new string OR you can use the concat() method to concatenate two strings | 1 | true-false | True | | Java |
| A String in Java is an object, which contain methods that can perform certain operations on strings | 1 | true-false | True | | Java |
| The slash (/) escape character turns special characters into string characters | 1 | true-false | False | | Java |
| Java’s arithmetic operators are used for performing calculations on objects | 1 | true-false | False | | Java |
| Explicit casting happens when calculations of mixed types are performed, lower-precision operands are converted, or promoted, to the type of the operand that has the higher precision | 1 | true-false | False | | Java |
| User input can be read into our program from the keyboard, but not from a file | 1 | true-false | False | | Java |
| The Scanner class provides methods for reading String and Integer data types | 1 | true-false | False | | Java |
| The Scanner class is defined in the “java.util” package, so we need to include import the package | 1 | true-false | True | | Java |
| In order to use the Scanner class, we must first instantiate a Scanner object and use the System.in input stream, which is tied to the keyboard | 1 | true-false | True | | Java |
| nextLine() Reads a String value from the user | 1 | true-false | True | | Java |
| Scanner scan = new Scanner(System.in); will create a Scanner object | 1 | true-false | True | | Java |
| A class function is a blueprint or prototype from which objects are created | 1 | true-false | False | | Java |
| Constructor declarations are done identically to method declarations | 1 | true-false | False | | Java |
| Constructors are invoked to create objects from the class blueprint | 1 | true-false | True | | Java |
| Non-static variables defined within a class are called instance variables because each instance of the class contains its own copy of these variables | 1 | true-false | True | | Java |
| Any class can only contain a limited number of non-static methods, and each method can be only be called a limited number of times | 1 | true-false | False | | Java |
| Static variables are associated with the class, rather than with any object | 1 | true-false | True | | Java |
| Every instance of the class shares the class variable, which is in one fixed location in memory | 1 | true-false | True | | Java |
| The static modifier should not be used with the final modifier to define constants | 1 | true-false | False | | Java |
| Defined constants cannot be reassigned, and it is a compile-time error if your program tries to do so | 1 | true-false | True | | Java |
| Object-oriented programming allows classes to inherit commonly used state and behavior from other classes | 1 | true-false | True | | Java |
| In the Java programming language, each class is allowed to have one direct superclass, and each superclass has one subclass | 1 | true-false | False | | Java |
| When a class implements an interface, it has the option to provide the behavior published by that interface | 1 | true-false | False | | Java |
| If your class claims to implement an interface, all methods defined by that interface must appear in its source code before the class will successfully compile | 1 | true-false | True | | Java |
| Access level (visibility) modifiers determine whether other classes can use a particular field or invoke a particular method | 1 | true-false | True | | Java |
| If a class has no modifier, it is visible only within its own package | 1 | true-false | True | | Java |
| The modifier known as package-private is identical to the public modifier | 1 | true-false | False | | Java |
| The private modifier specifies that the member can only be accessed in its own class | 1 | true-false | True | | Java |
| When a number of objects are created from the same class blueprint, they each have their own distinct copies of instance variables | 1 | true-false | True | | Java |
| Class variables are referenced by the class name itself | 1 | true-false | True | | Java |
| The Java programming language supports static methods as well as static variables | 1 | true-false | True | | Java |
| The only required elements of a method declaration are the method's return type and a body between braces, {} | 1 | true-false | False | | Java |
| Overloaded methods are differentiated solely by the number of arguments passed into the method | 1 | true-false | False | | Java |
| Because clients cannot access private instance variables of a class, classes usually provide public accessor ( getter ) methods for the instance variables | 1 | true-false | True | | Java |
| Control flow statements break up the flow of execution by employing decision making, looping, and branching, enabling your program to sequentially execute particular blocks of code | 1 | true-false | False | | Java |
| The if-then statement tells your program to execute a certain section of code only if the conditional parameter is not empty | 1 | true-false | False | | Java |
| If the test of the if-then statement evaluates to false, control jumps to the end of the if-then statement | 1 | true-false | True | | Java |
| The while statement continually executes a block of statements only while a counter is smaller than a pre-defined value | 1 | true-false | False | | Java |
| There is no difference between do-while and while statements | 1 | true-false | False | | Java |
| An array is a container object that holds a fixed number of values of a single type | 1 | true-false | True | | Java |
| The length of an array is established after the array is created | 1 | true-false | False | | Java |
| Each item in an array is called an element, and each element is accessed by its numerical index (starting at 1) | 1 | true-false | False | | Java |
| float arrFloats[]; is a valid declaration of an array of doubles | 1 | true-false | False | | Java |
| arr = new int[10]; creates an array with the numbers from 1 to 10 | 1 | true-false | False | | Java |
| The difference between a built-in array and an ArrayList in Java, is that the size of an array cannot be modified | 1 | true-false | True | | Java |
| ArrayList cars = new ArrayList(); creates a new ArrayList of Strings | 1 | true-false | True | | Java |
| To access an element in the ArrayList, use the get() method and refer to the index number | 1 | true-false | True | | Java |
| To insert an element in the ArrayList, use the set() method and refer to the index number | 1 | true-false | False | | Java |
| To remove an element in the ArrayList, use the remove() method and refer to the index number | 1 | true-false | False | | Java |
| What does PHP stand for? | 1 | multiple | PHP: Hypertext Preprocessor | Private Home Page
PHP: Hypertext Preprocessor
PHP: Hypertext Processor
| PHP |
| How do you write "Hello World" in PHP | 1 | multiple | echo "Hello World"; | Document.Write("Hello World");
echo "Hello World";
"Hello World";
| PHP |
| All variables in PHP start with which symbol? | 1 | multiple | $ | | PHP |
| What is the correct way to end a PHP statement? | 1 | multiple | ; | | PHP |
| The PHP syntax is most similar to: | 1 | multiple | Perl and C | Perl and C
VB Script
Perl and C
JavaScript
| PHP |
| How do you get information from a form that is submitted using the "get" method? | 1 | multiple | $_GET[]; | Request.Form
Request.QueryString
$_GET[];
| PHP |
| When using the POST method, variables are displayed in the URL: | 1 | true-false | False | | PHP |
| In PHP you can use both single quotes ( ) and double quotes ( " " ) for strings: | 1 | true-false | True | | PHP |
| Include files must have the file extension ".inc" | 1 | true-false | False | | PHP |
| What is the correct way to include the file "time.inc" ? | 1 | multiple | <?php include "time.inc"; ?> | <?php include file="time.inc"; ?>
<?php include:"time.inc"; ?>
<?php include "time.inc"; ?>
<!-- include file="time.inc" -->
| PHP |
| What is the correct way to create a function in PHP? | 1 | multiple | function myFunction() | new_function myFunction()
function myFunction()
create myFunction()
| PHP |
| What is the correct way to open the file "time.txt" as readable? | 1 | multiple | fopen("time.txt","r"); | fopen("time.txt","r");
open("time.txt","read");
fopen("time.txt","r+");
open("time.txt");
| PHP |
| PHP allows you to send emails directly from a script | 1 | true-false | True | | PHP |
| Which superglobal variable holds information about headers, paths, and script locations? | 1 | multiple | $_SERVER | $GLOBALS
$_SERVER
$_SESSION
$_GET
| PHP |
| What is the correct way to add 1 to the $count variable? | 1 | multiple | $count++; | count++;
$count =+ 1;
$count++;
++count;
| PHP |
| What is a correct way to add a comment in PHP? | 1 | multiple | /*...*/ | <!--...-->
*\...\*
/*...*/
...
| PHP |
| PHP can be run on Microsoft Windows IIS(Internet Information Server): | 1 | true-false | True | | PHP |
| The die() and exit() functions do the exact same thing. | 1 | true-false | True | | PHP |
| Which one of these variables has an illegal name? | 1 | multiple | $my-Var | | PHP |
| How do you create a cookie in PHP? | 1 | multiple | setcookie() | setcookie()
makecookie()
createcookie()
| PHP |
| In PHP, the only way to output text is with echo. | 1 | true-false | False | | PHP |
| How do you create an array in PHP? | 1 | multiple | $cars = array("Volvo", "BMW", "Toyota"); | $cars = array["Volvo", "BMW", "Toyota"];
$cars = "Volvo", "BMW", "Toyota";
$cars = array("Volvo", "BMW", "Toyota");
| PHP |
| The if statement is used to execute some code only if a specified condition is true | 1 | true-false | True | | PHP |
| Which operator is used to check if two values are equal and of same data type? | 1 | multiple | === | | PHP |
| PHP server scripts are surrounded by delimiters, which? | 1 | multiple | <?php...?> | <&>...</&>
<script>...</script>
<?php...?>
<?php>...</?>
| PHP |
| Which of the following is correct? | 1 | multiple | jQuery is a JavaScript Library | jQuery is a JSON Library
jQuery is a JavaScript Library
| jQuery |
| jQuery uses CSS selectors to select elements? | 1 | true-false | True | | jQuery |
| Which sign does jQuery use as a shortcut for jQuery? | 1 | multiple | $ | | jQuery |
| Look at the following selector: $("div"). What does it select? | 1 | multiple | All div elements | All div elements
The first div element
| jQuery |
| Is jQuery a library for client scripting or server scripting? | 1 | multiple | Client scripting | Client scripting
Server scripting
| jQuery |
| It is possible to use jQuery together with AJAX? | 1 | true-false | True | | jQuery |
| The jQuery html() method works for both HTML and XML documents | 1 | true-false | False | | jQuery |
| What is the correct jQuery code to set the background color of all p elements to red? | 1 | multiple | $("p").css("background-color","red"); | $("p").layout("background-color","red");
$("p").manipulate("background-color","red");
$("p").css("background-color","red");
$("p").style("background-color","red");
| jQuery |
| With jQuery, look at the following selector: $("div.intro"). What does it select? | 1 | multiple | All div elements with class="intro" | All div elements with class="intro"
The first div element with id="intro"
All div elements with id="intro"
The first div element with class="intro"
| jQuery |
| Which jQuery method is used to hide selected elements? | 1 | multiple | hide() | hidden()
hide()
display(none)
visible(false)
| jQuery |
| Which jQuery method is used to set one or more style properties for selected elements? | 1 | multiple | css() | | jQuery |
| Which jQuery method is used to perform an asynchronous HTTP request? | 1 | multiple | jQuery.ajax() | jQuery.ajaxAsync()
jQuery.ajax()
jQuery.ajaxSetup()
| jQuery |
| What is the correct jQuery code for making all div elements 100 pixels high? | 1 | multiple | $("div").height(100) | $("div").height(100)
$("div").height="100"
$("div").yPos(100)
| jQuery |
| Which statement is true? | 1 | multiple | To use jQuery, you can refer to a hosted jQuery library at Google | To use jQuery, you do not have to do anything. Most browsers (Internet Explorer, Chrome, Firefox and Opera) have the jQuery library built in the browser
To use jQuery, you can refer to a hosted jQuery library at Google
o use jQuery, you must buy the jQuery library at www.jquery.com
| jQuery |
| What scripting language is jQuery written in? | 1 | multiple | JavaScript | | jQuery |
| Which jQuery function is used to prevent code from running, before the document is finished loading? | 1 | multiple | $(document).ready() | $(body).onload()
$(document).load()
$(document).ready()
| jQuery |
| Which jQuery method should be used to deal with name conflicts? | 1 | multiple | noConflict() | noConflict()
nameConflict()
noNameConflict()
conflict()
| jQuery |
| Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements? | 1 | multiple | toggleClass() | toggleClass()
switch()
switchClass()
altClass()
| jQuery |
| Look at the following selector: $("div p"). What does it select? | 1 | multiple | All p elements inside a div element | All div elements with a p element
All p elements inside a div element
The first p element inside a div element
| jQuery |
| jQuery is a W3C standard? | 1 | true-false | False | | jQuery |
| Look at the following selector: $("p#intro"). What does it select? | 1 | multiple | The p element with id="intro" | The p element with id="intro"
All p elements with class="intro"
| jQuery |
| Which jQuery method is used to remove selected elements? | 1 | multiple | Both methods can be used | detach()
remove()
Both methods can be used
| jQuery |
| Look at the following selector: $(":disabled"). What does it select? | 1 | multiple | All disabled input elements | All elements containing the text "disabled"
All disabled input elements
All elements that does not contain the text "disabled"
All hidden elements
| jQuery |
| The jQuery animate() method can be used to animate ANY CSS property? | 1 | multiple | Only properties containing numeric values | Yes
All properties except the shorthand properties
Only properties containing numeric values
| jQuery |
| Inside which HTML element do we put the JavaScript? | 1 | multiple | <script> | <script>
<javascript>
<scripting>
<js>
| JavaScript |
| What is the correct JavaScript syntax to change the content of the HTML following element? <p id="demo">This is a demonstration.</p> | 1 | multiple | document.getElementById("demo").innerHTML = "Hello World!"; | document.getElementByName("p").innerHTML = "Hello World!";
document.getElement("p").innerHTML = "Hello World!";
document.getElementById("demo").innerHTML = "Hello World!";
#demo.innerHTML = "Hello World!";
| JavaScript |
| Where is the correct place to insert a JavaScript? | 1 | multiple | Both the <head> section and the <body> section are correct | The <head> section
The <body> section
Both the <head> section and the <body> section are correct
| JavaScript |
| What is the correct syntax for referring to an external script called "xxx.js"? | 1 | multiple | <script src="xxx.js"> | <script name="xxx.js">
<script src="xxx.js">
<script href="xxx.js">
| JavaScript |
| The external JavaScript file must contain the <script> tag. | 1 | true-false | False | | JavaScript |
| How do you write "Hello World" in an alert box? | 1 | multiple | alert("Hello World"); | alertBox("Hello World");
alert("Hello World");
msgBox("Hello World");
msg("Hello World");
| JavaScript |
| How do you create a function in JavaScript? | 1 | multiple | function myFuction() | function myFuction()
function = myFuction()
function:myFuction()
| JavaScript |
| How do you call a function named "myFunction"? | 1 | multiple | myFunction() | call myFunction()
call function myFunction()
myFunction()
| JavaScript |
| How to write an IF statement in JavaScript? | 1 | multiple | if (i == 5) | if i = 5 then
if i == 5 then
if (i == 5)
if i = 5
| JavaScript |
| How to write an IF statement for executing some code if "i" is NOT equal to 5 | 1 | multiple | if (i != 5) | if i =! 5 then
if (i != 5)
if (i <> 5)
if i <> 5
| JavaScript |
| How does a WHILE loop start? | 1 | multiple | while (i <= 10) | while (i <= 10; i++)
while i = 1 to 10
while (i <= 10)
| JavaScript |
| How does a FOR loop start? | 1 | multiple | for (i = 0; i <= 5; i++) | for (i <= 5; i++)
for (i = 0; i <= 5; i++)
for (i = 0; i <= 5)
| JavaScript |
| How can you add a comment in a JavaScript? | 1 | multiple | //This is a comment | //This is a comment
'This is a comment
<!--This is a comment-->
| JavaScript |
| How to insert a comment that has more than one line? | 1 | multiple | /*This comment has more than one line*/ | /*This comment has more than one line*/
//This comment has more than one line//
<!--This comment has more than one line-->
| JavaScript |
| What is the correct way to write a JavaScript array? | 1 | multiple | var colors = ["red", "green", "blue"] | var colors = (1:"red", 2:"green", 3:"blue")
var colors = ["red", "green", "blue"]
var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
var colors = "red", "green", "blue"
| JavaScript |
| How do you round the number 7.25, to the nearest integer? | 1 | multiple | Math.round(7.25) | round(7.25)
rnd(7.25)
Math.round(7.25)
Math.rnd(7.25)
| JavaScript |
| How do you find the number with the highest value of x and y? | 1 | multiple | Math.max(x, y) | ceil(x, y)
Math.ceil(x, y)
Math.max(x, y)
top(x, y)
| JavaScript |
| What is the correct JavaScript syntax for opening a new window called "w2" ? | 1 | multiple | w2 = window.open("http://www.w3schools.com"); | w2 = window.open("http://www.w3schools.com");
w2 = window.new("http://www.w3schools.com");
| JavaScript |
| JavaScript is the same as Java. | 1 | true-false | False | | JavaScript |
| How can you detect the client's browser name? | 1 | multiple | navigator.appName | client.navName
browser.name
navigator.appName
| JavaScript |
| Which event occurs when the user clicks on an HTML element? | 1 | multiple | onclick | onmouseclick
onmouseover
onclick
onmouseclick
| JavaScript |
| How do you declare a JavaScript variable? | 1 | multiple | var carName; | var carName;
v carName;
variable carName;
| JavaScript |
| Which operator is used to assign a value to a variable? | 1 | multiple | = | | JavaScript |
| What will the following code return: Boolean(10 > 9) | 1 | multiple | true | | JavaScript |
| JavaScript is case-sensitive | 1 | true-false | True | | JavaScript |
| What is MySQL? | 1 | multiple | All the options are correct | All the options are correct
A relational database management system
A relational database management system
Developed, distributed, and supported by Oracle Corporation
| MySQL |
| Which MySQL statement is used to select data from a database? | 1 | multiple | SELECT | | MySQL |
| Which MySQL statement is used to update data in a database? | 1 | multiple | UPDATE | | MySQL |
| Which MySQL statement is used to delete data from a database? | 1 | multiple | DELETE | | MySQL |
| Which MYSQL statement is used to insert new data in a database? | 1 | multiple | INSERT INTO | INSERT INTO
ADD NEW
INSERT NEW
ADD RECORD
| MySQL |
| With MySQL, how do you select a column named "FirstName" from a table named "Persons"? | 1 | multiple | SELECT FirstName FROM Persons | EXTRACT FirstName FROM Persons
SELECT FirstName FROM Persons
SELECT Persons.FirstName
| MySQL |
| With MySQL, how do you select all the columns from a table named "Persons"? | 1 | multiple | SELECT * FROM Persons | SELECT Persons
SELECT * FROM Persons
SELECT [all] FROM Persons
SELECT *.Persons
| MySQL |
| With MySQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"? | 1 | multiple | SELECT * FROM Persons WHERE FirstName='Peter' | SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'
SELECT * FROM Persons WHERE FirstName='Peter'
SELECT * FROM Persons WHERE FirstName<>'Peter'
SELECT [all] FROM Persons WHERE FirstName='Peter'
| MySQL |
| With MySQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" starts with an "a"? | 1 | multiple | SELECT * FROM Persons WHERE FirstName LIKE 'a%' | SELECT * FROM Persons WHERE FirstName='%a%'
SELECT * FROM Persons WHERE FirstName='a'
SELECT * FROM Persons WHERE FirstName LIKE '%a'
SELECT * FROM Persons WHERE FirstName LIKE 'a%'
| MySQL |
| The OR operator displays a record if ANY conditions listed are true. The AND operator displays a record if ALL of the conditions listed are true | 1 | true-false | True | | MySQL |
| With MySQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Peter" and the "LastName" is "Jackson"? | 1 | multiple | SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson' | SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson'
SELECT FirstName='Peter', LastName='Jackson' FROM Persons
SELECT * FROM Persons WHERE FirstName<>'Peter' AND LastName<>'Jackson'
| MySQL |
| With MySQL, how do you select all the records from a table named "Persons" where the "LastName" is alphabetically between (and including) "Hansen" and "Pettersen"? | 1 | multiple | SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen' | SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen'
SELECT * FROM Persons WHERE LastName>'Hansen' AND LastName<'Pettersen'
SELECT LastName>'Hansen' AND LastName<'Pettersen' FROM Persons
| MySQL |
| Which MySQL statement is used to return only different values? | 1 | multiple | SELECT DISTINCT | SELECT UNIQUE
SELECT DIFFERENT
SELECT DISTINCT
| MySQL |
| Which MySQL keyword is used to sort the result-set? | 1 | multiple | ORDER BY | | MySQL |
| With MySQL, how can you return all the records from a table named "Persons" sorted descending by "FirstName"? | 1 | multiple | SELECT * FROM Persons ORDER BY FirstName DESC | SELECT * FROM Persons ORDER BY FirstName DESC
SELECT * FROM Persons ORDER FirstName DESC
SELECT * FROM Persons SORT 'FirstName' DESC
SELECT * FROM Persons SORT BY 'FirstName' DESC
| MySQL |
| With MySQL, how can you insert a new record into the "Persons" table? | 1 | multiple | INSERT INTO Persons VALUES ('Jimmy', 'Jackson') | INSERT INTO Persons VALUES ('Jimmy', 'Jackson')
INSERT VALUES ('Jimmy', 'Jackson') INTO Persons
INSERT ('Jimmy', 'Jackson') INTO Persons
| MySQL |
| With MySQL, how can you insert "Olsen" as the "LastName" in the "Persons" table? | 1 | multiple | INSERT INTO Persons (LastName) VALUES ('Olsen') | INSERT ('Olsen') INTO Persons (LastName)
INSERT INTO Persons ('Olsen') INTO LastName
INSERT INTO Persons (LastName) VALUES ('Olsen')
| MySQL |
| How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table? | 1 | multiple | UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen' | MODIFY Persons SET LastName='Nilsen' WHERE LastName='Hansen'
UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen'
UPDATE Persons SET LastName='Hansen' INTO LastName='Nilsen'
MODIFY Persons SET LastName='Hansen' INTO LastName='Nilsen
| MySQL |
| With MySQL, how can you delete the records where the "FirstName" is "Peter" in the Persons Table? | 1 | multiple | DELETE FROM Persons WHERE FirstName = 'Peter' | DELETE FROM Persons WHERE FirstName = 'Peter'
DELETE ROW FirstName='Peter' FROM Persons
DELETE FirstName='Peter' FROM Persons
| MySQL |
| With MySQL, how can you return the number of records in the "Persons" table? | 1 | multiple | SELECT COUNT(*) FROM Persons | SELECT NO(*) FROM Persons
SELECT COLUMNS(*) FROM Persons
SELECT COUNT(*) FROM Persons
SELECT LEN(*) FROM Persons
| MySQL |
| What are the supported types of joins in MySQL? | 1 | multiple | INNER JOIN, LEFT JOIN, RIGHT JOIN, CROSS JOIN | INNER JOIN, LEFT JOIN, RIGHT JOIN, CROSS JOIN
INNER JOIN, OUTER JOIN, LEFT JOIN, RIGHT JOIN
| MySQL |
| Which operator is used to select values within a given range? | 1 | multiple | BETWEEN | | MySQL |
| The NOT NULL constraint enforces a column to not accept NULL values. | 1 | true-false | True | | MySQL |
| Which operator is used to search for a specified pattern in a column? | 1 | multiple | LIKE | | MySQL |
| Which MySQL statement is used to create a database table called 'Customers'? | 1 | multiple | CREATE TABLE Customers | CREATE DATABASE TAB Customers
CREATE DB Customers
CREATE TABLE Customers
CREATE DATABASE TABLE Customers
| MySQL |
| What does HTML stand for? | 1 | multiple | Hyper Text Markup Language | Home Tool Markup Language
Hyper Text Markup Language
Hyperlinks and Text Markup Language
| HTML |
| Who is making the Web standards? | 1 | multiple | The World Wide Web Consortium | Google
The World Wide Web Consortium
Microsoft
Mozilla
| HTML |
| Choose the correct HTML element for the largest heading: | 1 | multiple | <h1> | | HTML |
| What is the correct HTML element for inserting a line break? | 1 | multiple | <br> | | HTML |
| What is the correct HTML for adding a background color? | 1 | multiple | <body style="background-color:yellow;"> | <background>yellow</background>
<body style="background-color:yellow;">
<body bg="yellow">
| HTML |
| Choose the correct HTML element to define important text | 1 | multiple | <strong> | <strong>
<i>
<b>
<important>
| HTML |
| Choose the correct HTML element to define emphasized text | 1 | multiple | <em> | | HTML |
| What is the correct HTML for creating a hyperlink? | 1 | multiple | <a href="http://www.w3schools.com">W3Schools</a> | <a>http://www.w3schools.com</a>
<a href="http://www.w3schools.com">W3Schools</a>
<a url="http://www.w3schools.com">W3Schools.com</a>
<a name="http://www.w3schools.com">W3Schools.com</a>
| HTML |
| Which character is used to indicate an end tag? | 1 | multiple | / | | HTML |
| How can you open a link in a new tab/browser window? | 1 | multiple | <a href="url" target="_blank"> | <a href="url" target="_blank">
<a href="url" target="new">
<a href="url" new>
| HTML |
| Which of these elements are all <table> elements? | 1 | multiple | <table><tr><td> | <table><tr><td>
<thead><body><tr>
<table><tr><tt>
<table><head><tfoot>
| HTML |
| Inline elements are normally displayed without starting a new line. | 1 | true-false | True | | HTML |
| How can you make a numbered list? | 1 | multiple | <ol> | | HTML |
| How can you make a bulleted list? | 1 | multiple | <ul> | | HTML |
| What is the correct HTML for making a checkbox? | 1 | multiple | <input type="checkbox"> | <input type="check">
<check>
<checkbox>
<input type="checkbox">
| HTML |
| What is the correct HTML for making a text input field? | 1 | multiple | <input type="text"> | <textinput type="text">
<input type="textfield">
<textfield>
<input type="text">
| HTML |
| What is the correct HTML for making a drop-down list? | 1 | multiple | <select> | <input type="dropdown">
<input type="list">
<select>
<list>
| HTML |
| What is the correct HTML for making a text area? | 1 | multiple | <textarea> | <input type="textarea">
<input type="textbox">
<textarea>
| HTML |
| What is the correct HTML for inserting an image? | 1 | multiple | <img src="image.gif" alt="MyImage"> | <img href="image.gif" alt="MyImage">
<img src="image.gif" alt="MyImage">
<image src="image.gif" alt="MyImage">
<img alt="MyImage">image.gif</img>
| HTML |
| What is the correct HTML for inserting a background image? | 1 | multiple | <body style="background-image:url(background.gif)"> | <background img="background.gif">
<body bg="background.gif">
<body style="background-image:url(background.gif)">
| HTML |
| An <iframe> is used to display a web page within a web page. | 1 | true-false | True | | HTML |
| HTML comments start with <!-- and end with --> | 1 | true-false | True | | HTML |
| Block elements are normally displayed without starting a new line. | 1 | true-false | False | | HTML |
| Which HTML element defines the title of a document? | 1 | multiple | <title> | | HTML |
| Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed? | 1 | multiple | alt | | HTML |
| Which doctype is correct for HTML5? | 1 | multiple | <!DOCTYPE html> | <!DOCTYPE HTML5>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd">
<!DOCTYPE html>
| HTML |
| Which HTML element is used to specify a footer for a document or section? | 1 | multiple | <footer> | <footer>
<bottom>
<section>
| HTML |
| In HTML, you can embed SVG elements directly into an HTML page. | 1 | true-false | True | | HTML |
| What is the correct HTML element for playing video files? | 1 | multiple | <video> | | HTML |
| What is the correct HTML element for playing audio files? | 1 | multiple | <audio> | | HTML |
| The HTML global attribute, "contenteditable" is used to: | 1 | multiple | Specify whether the content of an element should be editable or not | Specifies a context menu for an element. The menu appears when a user right-clicks on the element
Specify whether the content of an element should be editable or not
Return the position of the first found occurrence of content inside a string
Update content from the server
| HTML |
| In HTML, onblur and onfocus are: | 1 | multiple | Event attributes | Style attributes
Event attributes
HTML elements
| HTML |
| Graphics defined by SVG is in which format? | 1 | multiple | XML | | HTML |
| The HTML <canvas> element is used to: | 1 | multiple | draw graphics | display database records
draw graphics
manipulate data in MySQL
create draggable elements
| HTML |
| In HTML, which attribute is used to specify that an input field must be filled out? | 1 | multiple | required | formvalidate
validate
required
placeholder
| HTML |
| Which input type defines a slider control? | 1 | multiple | range | range
controls
slider
search
| HTML |
| Which HTML element is used to display a scalar measurement within a range? | 1 | multiple | <meter> | <gauge>
<measure>
<meter>
<range>
| HTML |
| Which HTML element defines navigation links? | 1 | multiple | <nav> | <navigation>
<nav>
<navigate>
| HTML |
| In HTML, what does the <aside> element define? | 1 | multiple | Content aside from the page content | A navigation list to be shown at the left side of the page
The ASCII character-set; to send information between computers on the Internet
Content aside from the page content
| HTML |
| Which HTML element is used to specify a header for a document or section? | 1 | multiple | <header> | <top>
<header>
<head>
<section>
| HTML |
| What does CSS stand for? | 1 | multiple | Cascading Style Sheets | Creative Style Sheets
Computer Style Sheets
Cascading Style Sheets
Colorful Style Sheets
| CSS |
| What is the correct HTML for referring to an external style sheet? | 1 | multiple | <link rel="stylesheet" type="text/css" href="mystyle.css"> | <style src="mystyle.css">
<stylesheet>mystyle.css</stylesheet>
<link rel="stylesheet" type="text/css" href="mystyle.css">
| CSS |
| Where in an HTML document is the correct place to refer to an external style sheet? | 1 | multiple | In the <head> section | At the end of the document
In the <body> section
In the <head> section
| CSS |
| Which HTML tag is used to define an internal style sheet? | 1 | multiple | <style> | | CSS |
| Which HTML attribute is used to define inline styles? | 1 | multiple | style | | CSS |
| Which is the correct CSS syntax? | 1 | multiple | body {color: black;} | body:color=black;
{body:color=black;}
body {color: black;}
{body;color:black;}
| CSS |
| How do you insert a comment in a CSS file? | 1 | multiple | /* this is a comment */ | /* this is a comment */
// this is a comment //
// this is a comment
' this is a comment
| CSS |
| Which property is used to change the background color? | 1 | multiple | background-color | background-color
bgcolor
color
| CSS |
| How do you add a background color for all <h1> elements? | 1 | multiple | h1 {background-color:#FFFFFF;} | h1 {background-color:#FFFFFF;}
h1.all {background-color:#FFFFFF;}
all.h1 {background-color:#FFFFFF;}
| CSS |
| Which CSS property is used to change the text color of an element? | 1 | multiple | color | | CSS |
| Which CSS property controls the text size? | 1 | multiple | font-size | text-style
font-style
text-size
font-size
| CSS |
| What is the correct CSS syntax for making all the <p> elements bold? | 1 | multiple | p {font-weight:bold;} | <p style="text-size:bold;">
<p style="font-size:bold;">
p {font-weight:bold;}
p {text-size:bold;}
| CSS |
| How do you display hyperlinks without an underline? | 1 | multiple | a {text-decoration:none;} | a {underline:none;}
a {text-decoration:no-underline;}
a {decoration:no-underline;}
a {text-decoration:none;}
| CSS |
| How do you make each word in a text start with a capital letter? | 1 | multiple | text-transform:capitalize | transform:capitalize
text-style:capitalize
You can't do that with CSS
text-transform:capitalize
| CSS |
| Which property is used to change the font of an element? | 1 | multiple | font-family | font-weight
font-style
font-family
| CSS |
| How do you make the text bold? | 1 | multiple | font-weight:bold; | font:bold;
style:bold;
font-weight:bold;
| CSS |
| How do you display a border like this: The top border = 10 pixels The bottom border = 5 pixels The left border = 20 pixels The right border = 1pixel? | 1 | multiple | border-width:10px 1px 5px 20px; | border-width:10px 20px 5px 1px;
border-width:10px 5px 20px 1px;
border-width:10px 1px 5px 20px;
border-width:5px 20px 10px 1px;
| CSS |
| Which property is used to change the left margin of an element? | 1 | multiple | margin-left | margin-left
padding-left
indent
| CSS |
| When using the padding property; are you allowed to use negative values? | 1 | multiple | No | | CSS |
| How do you make a list that lists its items with squares? | 1 | multiple | list-style-type: square; | list-style-type: square;
list: square;
list-type: square;
| CSS |
| How do you select an element with id 'demo'? | 1 | multiple | #demo | | CSS |
| How do you select elements with class name 'test'? | 1 | multiple | .test | | CSS |
| How do you select all p elements inside a div element? | 1 | multiple | div p | | CSS |
| How do you group selectors? | 1 | multiple | Separate each selector with a comma | Separate each selector with a space
Separate each selector with a comma
Separate each selector with a plus sign
| CSS |
| What is the default value of the position property? | 1 | multiple | static | static
absolute
relative
fixed
| CSS |