GoConqr has a new look! Let us know what you think.

Quiz

Untitled

luke daniels 19 questions Updated 17 Jun 2017

Take the quiz

Questions in this quiz (19)

  1. 1When using the POST method, variables are displayed in the URL: (0.5 mark)
    1. Aa) True
    2. Bb) False
  2. 2What is a correct way to add a comment in PHP? (0.5 mark)
    1. Aa) /*…*/
    2. Bb) <!--…-->
    3. Cc) <comment>…</comment>
    4. Dd) *\..\*
  3. 3 Choose the correct PHP variable name(s) (1.5 marks)
    1. Aa) $0name
    2. Bb) $hello0_
    3. Cc) $family name
    4. Dd) $given_name
    5. Ee) $name*
    6. Ff) $000
    7. Gg) $_000
  4. 4Choose the statement that best describes the relationship between JSP and
    servlets: (0.5 mark)
    1. Aa) Servlets are built on JSP semantics and all servlets are compiled to
      JSP pages for runtime usage.
    2. Bb) JSP and servlets are unrelated technologies.
    3. Cc) Servlets and JSP are competing technologies for handling web requests. Servlets are being superseded by JSP, which is preferred. The two technologies are not useful in combination.
    4. Dd) JSPs are built on servlet semantics and all JSPs are compiled to
      servlets for runtime usage.
  5. 5What alternatives exist to embedding Java code directly within the HTML
    markup of your JSP page? (0.5 mark)
    1. Aa) Moving the code into your session manager.
    2. Bb) Moving the code into scriptlets.
    3. Cc) Moving the code into JavaBeans and servlets.
    4. Dd) Moving the code into a transaction manager.
  6. 6What is the output of the following code? (0.5 mark)
    <% session.setAttribute("name", "John"); %>
    <%= session.getAttribute("John") %>
    1. Aa) John
    2. Bb) null
  7. 7 In which HTML section(s) do we insert JavaScript statements?
    1. Aa) The <body> section only
    2. Bb) Both the <head> section and the <body> section are correct
    3. Cc) The <head> section only
    4. Dd) None of the above.
  8. 8Which one of the following is the correct way to define an array in
    JavaScript?
    1. Aa) var txt = new Array("tim","kim","jim") ;
    2. Bb) var txt = new Array:1=("tim") 2=("kim") 3=("jim") ;
    3. Cc) var txt = new Array(1:"tim",2:"kim",3:"jim") ;
    4. Dd) var txt = new Array="tim","kim","jim" ;
  9. 9All variables in PHP start with which of the following symbols?
    1. Aa) &
    2. Bb) !
    3. Cc) $
    4. Dd) #
  10. 10 What is the correct way to include the file "time.inc" in PHP?
    1. Aa) <!--include file="time.inc"-->
    2. Bb) <% include file="time.inc" %>
    3. Cc) <?php include_file("time.inc"); ?>
    4. Dd) <?php require("time.inc"); ?>

Information

Description
Quiz on Untitled, created by luke daniels on 17/06/2017.
Language
English
Views
4
History
Created on 17 Jun 2017 · updated on 17 Jun 2017
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?