Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
web_final.docx
Скачиваний:
0
Добавлен:
01.05.2025
Размер:
39.13 Кб
Скачать
  1. A correct order for laying out elements is css

aligning>floating>positioning

  1. Which statement is right?

Cookies are saved in client side, session – in server

  1. What function(s) opens a connection to a MySQL server.

mysql_connect(),mysqli_connection()

  1. What is the difference between unset($_SESSION["varname"]) and session_destroy()?

Unset() deletes only one variable, session_destroy() - all session variables;

  1. Choose method that doesn't exist in javascript.

getElementByParentName

  1. What is FALSE about interfaces and abstract classes

Abstract classes are like interfaces, but you can instantiate them.

  1. Which attribute gives the URL of the page that will process form's data?

url

  1. Input "type" (html form) can NOT be:

Image

  1. Given the following code: <*p*>Watch how high I can count: <*?php for($i=0; $i<*=10; $i++){ ?*><*br /*><*? echo $i; ?*><*/p*> What will be the output of that program?

We will see an error

  1. What does VISIBILITY property makes with <*p*> element in p {visibility:hidden}?

used to hide content within the element on the HTML page

  1. $.post("login.php", "login=qwerty", function(data){ alert(data); }); What is "data" here?

Data, which is sent to the server;

  1. Two days ago John has authenticated at facebook.com. Today he typed "facebook.com" in his browser's address bar, and his profile page was opened. How does the site know that he is John?

Information about authentication is saved in cookies;

  1. Choose method of "window" object in javascript.

getElementById

  1. Which are block elements?

<*div*>, <*p*>

  1. $a=false; do{ echo "hi"; }while($a); What will be the output?

hi;

  1. How to set temporary(which is deleted when we close browser) cookie (name="login", value="John" )?

setcookie("login", "John");

  1. What statement is WRONG about PHP and OOP?

PHP is nowadays procedural language, PHP is not OOP language still.

  1. Whichstatementis FALSE?

Block elements must be nested inside inline elements

  1. What is true about AJAX and Jquery?

Jquery provides several functions to AJAX functionality;

  1. What is true about CSS?

The author's style sheet is the strongest and takes precedence over the user's and the browser's style sheets.

  1. What will be the result of the following code: <*?php $a="Hello world"; echo $a[2]; ? *>

L

  1. $s = "hello world"; $a=explode(" ", $s); What is $a here?

$a is an array of strings, consists 2 elements - "hello" and "world";

  1. In PHP, a variable is NULL if(choose incorrect answer):

It has not been set to any value?

  1. Which one is WRONG way to create an object in javascript?

Varobj = newvar;

  1. Choose the correct css syntax.

Selector {property1 : value1; ... propertyN : valueN;}

  1. How to check if $_SESSION["username"] variable is set?

  2. How to check if $_SESSION["username"] variable is set?

If(isset($_SESSION["username"]));

  1. What is Controller in MVC pattern.

The Controller receives input and initiates a response by making calls on model object

  1. Can we place elements like <*div*>, <*h1*>, <*span*> or so on inside FORM, like this: <*form*><*div*><*input type="text" name="name" /*><*/div*><*/form*>.

Yes

  1. What statement is true about HTML "form"?

Accept information from the user and sends the information to a web server…

  1. How input type="radio" elements are grouped (that only one can be checked at a moment)?

By "name" attribute;

  1. We have a function f1($a, $b){ return $a+$b; } How can we call this function?

$a = f1(5, 6);

  1. How to check if $a*>0 and $a<*100 inside one "if" statement?

if($a*>0&&$a<*100);

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]