array(0) { }

All Questions | count: 224

Questions Difficulty level Type Answer Options Tag(s)
Java is a general-purpose, object-oriented, high-level programming language with several features that make it ideal for web-based development1true-falseTrue
  • True
  • False
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 Machine1true-falseFalse
  • True
  • False
Java
A byte holds 8 binary digits1true-falseTrue
  • True
  • False
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 libraries1true-falseTrue
  • True
  • False
Java
A CPU understands only binary and hexadecimal numbers1true-falseFalse
  • True
  • False
Java
A bit can hold up to 16 binary digits1true-falseFalse
  • True
  • False
Java
In Java, there are different types of variables, but all types are Objects1true-falseFalse
  • True
  • False
Java
The float and decimal types are equivalent1true-falseFalse
  • True
  • False
Java
Every variable must be given a name and a data type before it can be used.1true-falseTrue
  • True
  • False
Java
Java supports eight different primitive data types, including byte and Boolean1true-falseFalse
  • True
  • False
Java
Strings are objects of Java’s String Class1true-falseTrue
  • True
  • False
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 strings1true-falseTrue
  • True
  • False
Java
A String in Java is an object, which contain methods that can perform certain operations on strings1true-falseTrue
  • True
  • False
Java
The slash (/) escape character turns special characters into string characters1true-falseFalse
  • True
  • False
Java
Java’s arithmetic operators are used for performing calculations on objects1true-falseFalse
  • True
  • 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 precision1true-falseFalse
  • True
  • False
Java
User input can be read into our program from the keyboard, but not from a file1true-falseFalse
  • True
  • False
Java
The Scanner class provides methods for reading String and Integer data types1true-falseFalse
  • True
  • False
Java
The Scanner class is defined in the “java.util” package, so we need to include import the package1true-falseTrue
  • True
  • False
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 keyboard1true-falseTrue
  • True
  • False
Java
nextLine() Reads a String value from the user1true-falseTrue
  • True
  • False
Java
Scanner scan = new Scanner(System.in); will create a Scanner object1true-falseTrue
  • True
  • False
Java
A class function is a blueprint or prototype from which objects are created1true-falseFalse
  • True
  • False
Java
Constructor declarations are done identically to method declarations1true-falseFalse
  • True
  • False
Java
Constructors are invoked to create objects from the class blueprint1true-falseTrue
  • True
  • False
Java
Non-static variables defined within a class are called instance variables because each instance of the class contains its own copy of these variables1true-falseTrue
  • True
  • False
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 times1true-falseFalse
  • True
  • False
Java
Static variables are associated with the class, rather than with any object1true-falseTrue
  • True
  • False
Java
Every instance of the class shares the class variable, which is in one fixed location in memory1true-falseTrue
  • True
  • False
Java
The static modifier should not be used with the final modifier to define constants1true-falseFalse
  • True
  • False
Java
Defined constants cannot be reassigned, and it is a compile-time error if your program tries to do so1true-falseTrue
  • True
  • False
Java
Object-oriented programming allows classes to inherit commonly used state and behavior from other classes1true-falseTrue
  • True
  • False
Java
In the Java programming language, each class is allowed to have one direct superclass, and each superclass has one subclass1true-falseFalse
  • True
  • False
Java
When a class implements an interface, it has the option to provide the behavior published by that interface1true-falseFalse
  • True
  • 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 compile1true-falseTrue
  • True
  • False
Java
Access level (visibility) modifiers determine whether other classes can use a particular field or invoke a particular method1true-falseTrue
  • True
  • False
Java
If a class has no modifier, it is visible only within its own package1true-falseTrue
  • True
  • False
Java
The modifier known as package-private is identical to the public modifier1true-falseFalse
  • True
  • False
Java
The private modifier specifies that the member can only be accessed in its own class1true-falseTrue
  • True
  • False
Java
When a number of objects are created from the same class blueprint, they each have their own distinct copies of instance variables1true-falseTrue
  • True
  • False
Java
Class variables are referenced by the class name itself1true-falseTrue
  • True
  • False
Java
The Java programming language supports static methods as well as static variables1true-falseTrue
  • True
  • False
Java
The only required elements of a method declaration are the method's return type and a body between braces, {}1true-falseFalse
  • True
  • False
Java
Overloaded methods are differentiated solely by the number of arguments passed into the method1true-falseFalse
  • True
  • False
Java
Because clients cannot access private instance variables of a class, classes usually provide public accessor ( getter ) methods for the instance variables1true-falseTrue
  • True
  • False
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 code1true-falseFalse
  • True
  • False
Java
The if-then statement tells your program to execute a certain section of code only if the conditional parameter is not empty1true-falseFalse
  • True
  • False
Java
If the test of the if-then statement evaluates to false, control jumps to the end of the if-then statement1true-falseTrue
  • True
  • False
Java
The while statement continually executes a block of statements only while a counter is smaller than a pre-defined value1true-falseFalse
  • True
  • False
Java
There is no difference between do-while and while statements1true-falseFalse
  • True
  • False
Java
An array is a container object that holds a fixed number of values of a single type1true-falseTrue
  • True
  • False
Java
The length of an array is established after the array is created1true-falseFalse
  • True
  • False
Java
Each item in an array is called an element, and each element is accessed by its numerical index (starting at 1)1true-falseFalse
  • True
  • False
Java
float arrFloats[]; is a valid declaration of an array of doubles1true-falseFalse
  • True
  • False
Java
arr = new int[10]; creates an array with the numbers from 1 to 101true-falseFalse
  • True
  • False
Java
The difference between a built-in array and an ArrayList in Java, is that the size of an array cannot be modified1true-falseTrue
  • True
  • False
Java
ArrayList cars = new ArrayList(); creates a new ArrayList of Strings1true-falseTrue
  • True
  • False
Java
To access an element in the ArrayList, use the get() method and refer to the index number1true-falseTrue
  • True
  • False
Java
To insert an element in the ArrayList, use the set() method and refer to the index number1true-falseFalse
  • True
  • False
Java
To remove an element in the ArrayList, use the remove() method and refer to the index number1true-falseFalse
  • True
  • False
Java
What does PHP stand for?1multiplePHP: Hypertext Preprocessor
  • Private Home Page
  • PHP: Hypertext Preprocessor
  • PHP: Hypertext Processor
PHP
How do you write "Hello World" in PHP1multipleecho "Hello World";
  • Document.Write("Hello World");
  • echo "Hello World";
  • "Hello World";
PHP
All variables in PHP start with which symbol?1multiple$
  • $
  • &
  • !
PHP
What is the correct way to end a PHP statement?1multiple;
  • </php>
  • ;
  • .
  • New Line
PHP
The PHP syntax is most similar to:1multiplePerl 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?1multiple$_GET[];
  • Request.Form
  • Request.QueryString
  • $_GET[];
PHP
When using the POST method, variables are displayed in the URL:1true-falseFalse
  • True
  • False
PHP
In PHP you can use both single quotes ( ) and double quotes ( " " ) for strings:1true-falseTrue
  • True
  • False
PHP
Include files must have the file extension ".inc"1true-falseFalse
  • True
  • False
PHP
What is the correct way to include the file "time.inc" ?1multiple<?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?1multiplefunction myFunction()
  • new_function myFunction()
  • function myFunction()
  • create myFunction()
PHP
What is the correct way to open the file "time.txt" as readable?1multiplefopen("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 script1true-falseTrue
  • True
  • False
PHP
Which superglobal variable holds information about headers, paths, and script locations?1multiple$_SERVER
  • $GLOBALS
  • $_SERVER
  • $_SESSION
  • $_GET
PHP
What is the correct way to add 1 to the $count variable?1multiple$count++;
  • count++;
  • $count =+ 1;
  • $count++;
  • ++count;
PHP
What is a correct way to add a comment in PHP?1multiple/*...*/
  • <!--...-->
  • *\...\*
  • /*...*/
  • ...
PHP
PHP can be run on Microsoft Windows IIS(Internet Information Server):1true-falseTrue
  • True
  • False
PHP
The die() and exit() functions do the exact same thing.1true-falseTrue
  • True
  • False
PHP
Which one of these variables has an illegal name?1multiple$my-Var
  • $myVar
  • $my-Var
  • $my_Var
PHP
How do you create a cookie in PHP?1multiplesetcookie()
  • setcookie()
  • makecookie()
  • createcookie()
PHP
In PHP, the only way to output text is with echo.1true-falseFalse
  • True
  • False
PHP
How do you create an array in PHP?1multiple$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 true1true-falseTrue
  • True
  • False
PHP
Which operator is used to check if two values are equal and of same data type?1multiple===
  • !=
  • ==
  • ===
  • =
PHP
PHP server scripts are surrounded by delimiters, which?1multiple<?php...?>
  • <&>...</&>
  • <script>...</script>
  • <?php...?>
  • <?php>...</?>
PHP
Which of the following is correct?1multiplejQuery is a JavaScript Library
  • jQuery is a JSON Library
  • jQuery is a JavaScript Library
jQuery
jQuery uses CSS selectors to select elements?1true-falseTrue
  • True
  • False
jQuery
Which sign does jQuery use as a shortcut for jQuery?1multiple$
  • ?
  • %
  • $
jQuery
Look at the following selector: $("div"). What does it select?1multipleAll div elements
  • All div elements
  • The first div element
jQuery
Is jQuery a library for client scripting or server scripting?1multipleClient scripting
  • Client scripting
  • Server scripting
jQuery
It is possible to use jQuery together with AJAX?1true-falseTrue
  • True
  • False
jQuery
The jQuery html() method works for both HTML and XML documents1true-falseFalse
  • True
  • False
jQuery
What is the correct jQuery code to set the background color of all p elements to red?1multiple$("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?1multipleAll 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?1multiplehide()
  • hidden()
  • hide()
  • display(none)
  • visible(false)
jQuery
Which jQuery method is used to set one or more style properties for selected elements?1multiplecss()
  • css()
  • html()
  • style()
jQuery
Which jQuery method is used to perform an asynchronous HTTP request?1multiplejQuery.ajax()
  • jQuery.ajaxAsync()
  • jQuery.ajax()
  • jQuery.ajaxSetup()
jQuery
What is the correct jQuery code for making all div elements 100 pixels high?1multiple$("div").height(100)
  • $("div").height(100)
  • $("div").height="100"
  • $("div").yPos(100)
jQuery
Which statement is true?1multipleTo 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?1multipleJavaScript
  • VBScript
  • JavaScript
  • C#
  • C++
jQuery
Which jQuery function is used to prevent code from running, before the document is finished loading?1multiple$(document).ready()
  • $(body).onload()
  • $(document).load()
  • $(document).ready()
jQuery
Which jQuery method should be used to deal with name conflicts?1multiplenoConflict()
  • noConflict()
  • nameConflict()
  • noNameConflict()
  • conflict()
jQuery
Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?1multipletoggleClass()
  • toggleClass()
  • switch()
  • switchClass()
  • altClass()
jQuery
Look at the following selector: $("div p"). What does it select?1multipleAll 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?1true-falseFalse
  • True
  • False
jQuery
Look at the following selector: $("p#intro"). What does it select?1multipleThe 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?1multipleBoth methods can be used
  • detach()
  • remove()
  • Both methods can be used
jQuery
Look at the following selector: $(":disabled"). What does it select?1multipleAll 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?1multipleOnly 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?1multiple<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>1multipledocument.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?1multipleBoth 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"?1multiple<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.1true-falseFalse
  • True
  • False
JavaScript
How do you write "Hello World" in an alert box?1multiplealert("Hello World");
  • alertBox("Hello World");
  • alert("Hello World");
  • msgBox("Hello World");
  • msg("Hello World");
JavaScript
How do you create a function in JavaScript?1multiplefunction myFuction()
  • function myFuction()
  • function = myFuction()
  • function:myFuction()
JavaScript
How do you call a function named "myFunction"?1multiplemyFunction()
  • call myFunction()
  • call function myFunction()
  • myFunction()
JavaScript
How to write an IF statement in JavaScript?1multipleif (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 51multipleif (i != 5)
  • if i =! 5 then
  • if (i != 5)
  • if (i <> 5)
  • if i <> 5
JavaScript
How does a WHILE loop start?1multiple while (i <= 10)
  • while (i <= 10; i++)
  • while i = 1 to 10
  • while (i <= 10)
JavaScript
How does a FOR loop start?1multiplefor (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?1multiple//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?1multiple/*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?1multiplevar 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?1multipleMath.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?1multipleMath.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" ?1multiplew2 = 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.1true-falseFalse
  • True
  • False
JavaScript
How can you detect the client's browser name?1multiplenavigator.appName
  • client.navName
  • browser.name
  • navigator.appName
JavaScript
Which event occurs when the user clicks on an HTML element?1multipleonclick
  • onmouseclick
  • onmouseover
  • onclick
  • onmouseclick
JavaScript
How do you declare a JavaScript variable?1multiple var carName;
  • var carName;
  • v carName;
  • variable carName;
JavaScript
Which operator is used to assign a value to a variable?1multiple=
  • -
  • =
  • X
  • *
JavaScript
What will the following code return: Boolean(10 > 9)1multipletrue
  • NAN
  • false
  • true
JavaScript
JavaScript is case-sensitive1true-falseTrue
  • True
  • False
JavaScript
What is MySQL?1multipleAll 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?1multipleSELECT
  • OPEN
  • EXTRACT
  • GET
  • SELECT
MySQL
Which MySQL statement is used to update data in a database?1multipleUPDATE
  • INSERT
  • SAVE
  • UPDATE
  • MODIFY
MySQL
Which MySQL statement is used to delete data from a database?1multipleDELETE
  • DELETE
  • COLLAPSE
  • REMOVE
MySQL
Which MYSQL statement is used to insert new data in a database?1multipleINSERT 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"?1multipleSELECT 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"?1multipleSELECT * 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"?1multipleSELECT * 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"?1multipleSELECT * 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 true1true-falseTrue
  • True
  • False
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"?1multipleSELECT * 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"?1multipleSELECT * 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?1multipleSELECT DISTINCT
  • SELECT UNIQUE
  • SELECT DIFFERENT
  • SELECT DISTINCT
MySQL
Which MySQL keyword is used to sort the result-set?1multipleORDER BY
  • SORT BY
  • SORT
  • ORDER BY
  • ORDER
MySQL
With MySQL, how can you return all the records from a table named "Persons" sorted descending by "FirstName"?1multipleSELECT * 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?1multipleINSERT 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?1multipleINSERT 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?1multipleUPDATE 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?1multipleDELETE 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?1multipleSELECT 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?1multipleINNER 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?1multipleBETWEEN
  • UNION
  • IN
  • BETWEEN
  • RANGE
MySQL
The NOT NULL constraint enforces a column to not accept NULL values.1true-falseTrue
  • True
  • False
MySQL
Which operator is used to search for a specified pattern in a column?1multipleLIKE
  • LIKE
  • FROM
  • GET
MySQL
Which MySQL statement is used to create a database table called 'Customers'?1multipleCREATE TABLE Customers
  • CREATE DATABASE TAB Customers
  • CREATE DB Customers
  • CREATE TABLE Customers
  • CREATE DATABASE TABLE Customers
MySQL
What does HTML stand for?1multipleHyper Text Markup Language
  • Home Tool Markup Language
  • Hyper Text Markup Language
  • Hyperlinks and Text Markup Language
HTML
Who is making the Web standards?1multipleThe World Wide Web Consortium
  • Google
  • The World Wide Web Consortium
  • Microsoft
  • Mozilla
HTML
Choose the correct HTML element for the largest heading:1multiple<h1>
  • <h6>
  • <h1>
  • <heading>
  • <head>
HTML
What is the correct HTML element for inserting a line break?1multiple<br>
  • <lb>
  • <br>
  • <break>
HTML
What is the correct HTML for adding a background color?1multiple<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 text1multiple<strong>
  • <strong>
  • <i>
  • <b>
  • <important>
HTML
Choose the correct HTML element to define emphasized text1multiple<em>
  • <i>
  • <em>
  • <italic>
HTML
What is the correct HTML for creating a hyperlink?1multiple<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?1multiple/
  • <
  • ^
  • *
  • /
HTML
How can you open a link in a new tab/browser window?1multiple<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?1multiple<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.1true-falseTrue
  • True
  • False
HTML
How can you make a numbered list?1multiple<ol>
  • <dl>
  • <ol>
  • <ul>
  • <list>
HTML
How can you make a bulleted list?1multiple<ul>
  • <ol>
  • <list>
  • <list>
  • <ul>
HTML
What is the correct HTML for making a checkbox?1multiple<input type="checkbox">
  • <input type="check">
  • <check>
  • <checkbox>
  • <input type="checkbox">
HTML
What is the correct HTML for making a text input field?1multiple<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?1multiple<select>
  • <input type="dropdown">
  • <input type="list">
  • <select>
  • <list>
HTML
What is the correct HTML for making a text area?1multiple<textarea>
  • <input type="textarea">
  • <input type="textbox">
  • <textarea>
HTML
What is the correct HTML for inserting an image?1multiple<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?1multiple<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.1true-falseTrue
  • True
  • False
HTML
HTML comments start with <!-- and end with -->1true-falseTrue
  • True
  • False
HTML
Block elements are normally displayed without starting a new line.1true-falseFalse
  • True
  • False
HTML
Which HTML element defines the title of a document?1multiple<title>
  • <title>
  • <meta>
  • <head>
HTML
Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?1multiplealt
  • alt
  • src
  • title
  • longdesc
HTML
Which doctype is correct for HTML5?1multiple<!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?1multiple<footer>
  • <footer>
  • <bottom>
  • <section>
HTML
In HTML, you can embed SVG elements directly into an HTML page.1true-falseTrue
  • True
  • False
HTML
What is the correct HTML element for playing video files?1multiple<video>
  • <video>
  • <media>
  • <movie>
HTML
What is the correct HTML element for playing audio files?1multiple<audio>
  • <sound>
  • <mp3>
  • <audio>
HTML
The HTML global attribute, "contenteditable" is used to:1multipleSpecify 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:1multipleEvent attributes
  • Style attributes
  • Event attributes
  • HTML elements
HTML
Graphics defined by SVG is in which format?1multipleXML
  • CSS
  • HTML
  • XML
HTML
The HTML <canvas> element is used to:1multipledraw 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?1multiplerequired
  • formvalidate
  • validate
  • required
  • placeholder
HTML
Which input type defines a slider control?1multiplerange
  • range
  • controls
  • slider
  • search
HTML
Which HTML element is used to display a scalar measurement within a range?1multiple<meter>
  • <gauge>
  • <measure>
  • <meter>
  • <range>
HTML
Which HTML element defines navigation links?1multiple<nav>
  • <navigation>
  • <nav>
  • <navigate>
HTML
In HTML, what does the <aside> element define?1multipleContent 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?1multiple<header>
  • <top>
  • <header>
  • <head>
  • <section>
HTML
What does CSS stand for?1multipleCascading 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?1multiple<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?1multipleIn 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?1multiple<style>
  • <script>
  • <css>
  • <style>
CSS
Which HTML attribute is used to define inline styles?1multiplestyle
  • class
  • style
  • font
  • styles
CSS
Which is the correct CSS syntax?1multiplebody {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?1multiple/* 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?1multiplebackground-color
  • background-color
  • bgcolor
  • color
CSS
How do you add a background color for all <h1> elements?1multipleh1 {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?1multiplecolor
  • color
  • text-color
  • fgcolor
CSS
Which CSS property controls the text size?1multiplefont-size
  • text-style
  • font-style
  • text-size
  • font-size
CSS
What is the correct CSS syntax for making all the <p> elements bold?1multiplep {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?1multiplea {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?1multipletext-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?1multiplefont-family
  • font-weight
  • font-style
  • font-family
CSS
How do you make the text bold?1multiplefont-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?1multipleborder-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?1multiplemargin-left
  • margin-left
  • padding-left
  • indent
CSS
When using the padding property; are you allowed to use negative values?1multipleNo
  • No
  • Yes
CSS
How do you make a list that lists its items with squares?1multiplelist-style-type: square;
  • list-style-type: square;
  • list: square;
  • list-type: square;
CSS
How do you select an element with id 'demo'?1multiple#demo
  • *demo
  • #demo
  • demo
  • .demo
CSS
How do you select elements with class name 'test'?1multiple.test
  • #test
  • .test
  • *test
  • test
CSS
How do you select all p elements inside a div element?1multiplediv p
  • div + p
  • div.p
  • div p
CSS
How do you group selectors?1multipleSeparate 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?1multiplestatic
  • static
  • absolute
  • relative
  • fixed
CSS