Online Exam Quiz

questionQuestion  1 to 30

What is the correct way to include a PHP file?

  • <?php include "filename"; ?>
  • <?php include_file("filename"); ?>
  • <?php require("filename"); ?>
  • <?php require_file("filename"); ?>
Mark for review

Which property is used to change the font of an element?

  • font-family
  • font-style
  • font-weight
  • font
Mark for review

How do you define a constant in PHP?

  • const
  • define
  • constant
  • define_constant
Mark for review

Which method sends input to a PHP script via URL?

  • GET
  • POST
  • REQUEST
  • SERVER
Mark for review

How do you make a list that lists its items with squares?

  • list-style-type: square;
  • list-type: square;
  • list-square-type: square;
  • list: square;
Mark for review

Which SQL statement is used to insert new data into a database?

  • ADD
  • INSERT INTO
  • ADD RECORD
  • INSERT NEW
Mark for review

Which HTML element is used to specify a footer for a document or section?

  • <footer>
  • <bottom>
  • <section>
  • <foot>
Mark for review

How can you change "Hannah" into "Hana" in the "FirstName" column of the "Students" table?

  • UPDATE Students SET FirstName='Hana' WHERE FirstName='Hannah';
  • CHANGE Students SET FirstName='Hana' WHERE FirstName='Hannah';
  • MODIFY Students SET FirstName='Hana' WHERE FirstName='Hannah';
  • ALTER Students SET FirstName='Hana' WHERE FirstName='Hannah';
Mark for review

Which SQL statement is used to create a database?

  • CREATE DATABASE
  • CREATE DB
  • NEW DATABASE
  • MAKE DATABASE
Mark for review

Which function is used to start a session in PHP?

  • session_start()
  • session()
  • start_session()
  • session_begin()
Mark for review

Which event occurs when the user clicks on an HTML element?

  • onmouseover
  • onchange
  • onclick
  • onmouseclick
Mark for review

How do you create a function in JavaScript?

  • function = myFunction()
  • function myFunction()
  • function()
  • function => myFunction()
Mark for review

What does JS stand for?

  • JavaStyle
  • JavaScript
  • JustScript
  • JScript
Mark for review

How do you declare a JavaScript variable?

  • var carName;
  • variable carName;
  • v carName;
  • string carName;
Mark for review

Which SQL statement is used to delete data from a database?

  • DELETE
  • REMOVE
  • ERASE
  • DROP
Mark for review

Which keyword is used to sort the result-set in SQL?

  • ORDER BY
  • SORT
  • ORDER
  • SORT BY
Mark for review

Which SQL clause is used to filter records?

  • WHERE
  • FILTER
  • HAVING
  • LIMIT
Mark for review

How can you make a numbered list?

  • <ul>
  • <ol>
  • <dl>
  • <list>
Mark for review

Which HTML attribute is used to define inline styles?

  • class
  • font
  • styles
  • style
Mark for review

Which SQL function is used to calculate the average value of a numeric column?

  • AVG
  • SUM
  • MEAN
  • AVERAGE
Mark for review

Which SQL statement is used to update data in a database?

  • MODIFY
  • UPDATE
  • CHANGE
  • ALTER
Mark for review

How do you select an element with id "demo"?

  • #demo
  • .demo
  • demo
  • *demo
Mark for review

How do you call a function named "myFunction"?

  • call myFunction()
  • call function myFunction()
  • myFunction()
  • Call.myFunction()
Mark for review

Which SQL clause is used to group records by one or more columns?

  • GROUP
  • GROUP BY
  • SORT
  • ORDER BY
Mark for review

Which property is used to change the text color of an element?

  • fgcolor
  • text-color
  • color
  • font-color
Mark for review

What does SQL stand for?

  • Structured Query Language
  • Strong Question Language
  • Structured Question Language
  • Strong Query Language
Mark for review

Which keyword is used to declare a class in PHP?

  • class
  • declare
  • new
  • function
Mark for review

Which of the following is used to get the length of a string in PHP?

  • len()
  • strlen()
  • count()
  • str_length()
Mark for review

Which SQL statement is used to extract data from a database?

  • GET
  • OPEN
  • EXTRACT
  • SELECT
Mark for review

What is the correct SQL statement to return the number of records in a table?

  • COUNT
  • NUMBER
  • COUNT RECORDS
  • NUMBER RECORDS
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review