Warning: Undefined array key 1 in /home/acaproso/public_html/._System/._Template/.Main.php on line 116
Web design and programming questions.

Web design and programming questions.

Find Web design and programming university examination questions in acaproso.com

# Question
1

For each of the following terms give the meaning and its suitable uses in web design

  1. Internal stylesheets
  2. External stylesheets

Short answers
2

Suppose you have a group of HTML tags in a class named class_one. Write CSS code fragment that will apply the following styles on this class

  • Background color of Pink (#FF00FF)
  • Foreground color of blue
  • A font size 10 pixels
  • Bolded text
  • left aligned text.

Short answers
3

Using few English words explain what the following CSS code achieve

  • #container{width:70%; margin:0 auto; }
  • div#container h1{ font-style:italic;}

Short answers
4

With example give the meaning of Scripting language and event handler.


Short answers
5

What is the result of the following code

<script type="text/javascript">

var a=1;

a=a+1;

var b = "a is " + a;

a=5;

alert(b);

</script>


Short answers
6

State whether the following is true or false and if the statement is false state why.

  1. Javascript can  use either single or double quotes around its strings.
  2. We use a dot(.) operator to concatenate strings in Javascript.
  3. In Javascript , "5"===5 yields the boolean value TRUE.
  4. The javascript statement var book[10] creates an array that will hold ten books.

True OR False
7

Suppose you want to create a Javascript function that will prompt the user to enter the name and then display back his/her name on the browser, then

  • Describe how the alert and prompt function can be used to achieve this job
  • Write a user defined function named greeting that achieves the mentioned objective.

True OR False
8

Match the items from column A to those in column B.

A B
  1. CSS
  2. margin
  3. float
  4. a:hover
  5. style
  6. inline stylesheet
  7. link tag
  8. function
  9. prompt
  10. script
  • keyword used to write a function in javascript
  • cascading sheet style
  • clears an area around the content
  • HTML tag used in stylesheets
  • one javascript function that can be used to capture some input
  • cascading style sheet
  • uses a `script`` attribute  of  a html tag include the css
  • used to style a link tag when the mouse cursor is over it
  • clears an area around the border
  • html tag used in external linking of css
  • the float property specifies whether or not the box (an element ) should float
  • the tag used to include javascript code in a html file
  • has a higher precedence than embedded stylesheets
  • javascript function used to create other functions

 


Matching items
9

For each of the following questions fill in the blacks that give the complete meaning.

  1. A piece of information that javascript function needs between its parentheses in order to work correctly is called -------------
  2. The information put in front of a curly brace in a css rule is called a(n) ---------
  3. -------- html tag is used to define an internal style sheet.
  4. Use ---- selector when you want to apply certain style for all occurrences of a certain tag.
  5. --- keyword is used to declare variables in javascrip
  6. ------- is a css property that controls the text size
  7. ---- is a javascript function that converts string  literals to integers
  8. In css a comment is written using ---------- notation
  9. The child selector is represented  using ---- symbol.

Short answers
10

Javascript can use either single or double quotes around its strings.


True OR False