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

Quiz

php and css

Ayobami Ojo 9 questions

Take the quiz

This quiz has a time limit, so it opens in the usual player.

Questions in this quiz (9)

  1. 1Considering the CSS box model, what is the final width of an element of this class:
    .item {
    width: 100px;
    margin: 10px;
    padding-left: 10px;
    padding-right: 0px;
    }
    1. A130
    2. B120
    3. C140
    4. D100
  2. 2In PHP, what is the output of the following code
    $a = 2 + 3 * 5 + 10;
    print $a;
    1. A23510
    2. B20
    3. C27
    4. D35
  3. 3$a = 10;
    $b = 1.238;
    $c = $a * $b;
    1. Aarray
    2. Binteger
    3. Cstring
    4. D. boolean
    5. Efloat
  4. 4The following PHP code has an error. What line is this error on?
    0: $a = 10 + 1;
    1: $b = "10"
    2: if ($a <> $b)
    3: {
    4: print "Not equal";
    5: }
    6: else
    7: {
    8: $b++;
    9: }
    1. Aa. 4
    2. Bb. 1
    3. Cc. 0
    4. Dd. 8
  5. 5In CSS, which property would be used to allow an image to be positioned on the right?
    1. Aa. overflow: hidden
    2. Bb. clear: right
    3. Calign: right
    4. Dfloat: right
  6. 6In CSS which property is used to control the background
    color?
    1. Acolor
    2. Bbackground-colour
    3. Ccolor-background
    4. Dbgcolor
  7. 7In CSS the selector #p matches
    1. Aall <p> elements
    2. Ball <p> elements whose id is p
    3. C. all elements whose class is p
    4. Dall elements whose id is p
    5. Eall <p> elements whose class is p
  8. 8Which of the following is not a valid variable in PHP?
    1. A$name
    2. B$1name
    3. C$_name1
    4. D$name1
  9. 9Where should the reference to a style sheet be
    placed in an HTML document ?
    1. AIn the <css> section.
    2. B. In the <style> section.
    3. CIn the <body> section.
    4. DIn the <head> section

Information

Description
Quiz on php and css, created by Ayobami Ojo on 21/10/2017.
Language
English
Views
1
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?