Spring 2012

Name:___________________________________ CPR nr. or birth date:_______________________

CIRCLE THE CORRECT ANSWER

HTML Which of the following is not a valid HTML tag? ● ● ● ●



Which of the following tags is used to display bigger text? ● ● ● ●



Which of the following is not a standard attribute for a “img” tag? ● alt ● title ● id ● class ● input Which of the following code will you use to create a text box? ● ● ● ●



Which of the following code will you use to be able to display an image in a website? ● ● ● ●



CSS

You are building a website, what will be the best approach for the CSS? ● ● ● ●

Inline CSS External CSS Inline and External CSS Manage the layout with JavaScript

You want to show the text of a div in red. How? ● ● ● ●

text: red; letters: red; color: red; text color: red;

You want to show an element on top of another element. How? ● ● ● ●

showTop: 1; index: 1; z-index: 1; top: 1;

You want to show an element with a blue background. How? ● ● ● ●

bgColor: blue; background-color: blue; back-color: “blue”; backColor: {blue};

You want to show an element that uses 960px in width. How? ● ● ● ●

setWidth: 960px; width: 960px; width: 960; width: “960px”;

You have to style part of a website. The final result should look like the following image. Pretend that you have 2 divs. The first div contains the text box, the second div contains the image. Which solution could you use?

● ● ● ●

I will float the 1st and 2nd div to the left I will float the 1st div to the left and float the 2nd div to the right I will position the 1st div absolute to 0, 0 I will position the 2nd div absolute to 5, 0

DATABASES What does ‘CRUD’ stand for? ● ● ●

Circle, readable, usable, durable Create, readable, unbreakable, databases Create, read, update, delete

In a database, what is a table? ● ● ● ●

Virtual disk A place where primary keys are stored A place where foreign keys are stored A collection of columns

In databases, what is a primary key? ● ● ● ●

The first column in a table A unique identifier A relation to other databases A unique e-mail

In databases, you have a table called “students”. Which of the following SQL statements will select all the data from that table? ● ● ● ●

SELECT ALL FROM students WHERE id = ALL SELECT COUNT(*) FROM studetns SELECT * FROM students SELECT ALL FROM students

In your database, you want to update the e-mail address of a person from “[email protected]” to “[email protected]”. Which of the following SQL statements will do that? ● ● ● ●

UPDATE “[email protected]” to “[email protected]” UPDATE persons SET email = “[email protected]” WHERE email = “[email protected]” UPDATE email FROM “[email protected]” TO “[email protected]” REFRESH email FROM “[email protected]” INTO “[email protected]

PROGRAMMING Where is JavaScript being executed? ● ● ● ●

In the web browser On the server In Visual Studio In Dreamweaver

What is the value being passed to the function in the following code? variable name = ‘KEA’; name = “”; GetName(); function GetName(name) {...} ● ● ● ●

There is no value being passed It is empty It is KEA It is null

A ‘foreach’ loop does something similar to? ● ● ● ●

A while loop Select each random number Calling each variable in the file A for loop

What does ‘message’ contain at the end of the following code? string message = ‘’; string name = ‘Peter’ string lastName = ‘Petersen’; message = ‘Welcome ’ + lastName; // + name ●

Welcome Peter

● ● ●

Welcome Petersen Welcome Peter Petersen Welcome

At the end of the following code, what does ‘total’ contain? variable total = 0; for(variable i = 0; i < 2; i++) { total += 1; } ● ● ● ●

0 1 2 3

OTHER What is XML standing for? ● ● ● ●

1. Extensible Markup Language 2. Extended Marking Language 3. Xtreme Multimedia Library 4. Xtreme Markup Library

Which port is used in web servers? ● ● ● ●

1024 25 80 2012

Which one of the following is not a back-end programming language? ● ● ● ●

PHP C# JavaScript Python

Explain what a storyboard is

If a multimedia project requires you to add a video clip, what do you choose between the avi format and the mp4 format for the video, and why?

To zoom in/zoom out an image without loss of quality, should the image be in raster graphics format or vector graphics format? Explain why.

What is the RGB color model?