Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
web_final.docx
Скачиваний:
0
Добавлен:
01.05.2025
Размер:
39.13 Кб
Скачать
  1. Definition for "null"(variable) in javascript.

Exists but was assigned a null value.

  1. What argument(s) has 'mysql_connect' function.

'hostname', 'username', 'password'.

  1. Which is NOT a benefit of javascript?

  1. Not subject to browser compatibility issues.

  2. Can respond to user actions like clicks and key presses.

  3. Can modify a page without having to post back to the server.

  4. Can make small, quick changes to page without waiting for server.

  1. What is an extension of jQuery library?

Js

  1. A correct order for laying out elements is CSS

aligning>floating>positioning

  1. What statement is WRONG about PHP and OOP?

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

  1. Which statement is FALSE?

Xhtml describes the appearance and behaviour of the document.

  1. SQL: How to select an information about user with given login and password from table "users"?

Select * from users where login="$login" and password="$password";

  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*>?

No, we can place only text, textfields and buttons;

  1. What does AJAX stands for?

Asynchronous JavaScript and XML;

  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. for($i=0; i<*10; i++) echo $i; What will be the output

Code has errors;

  1. Which of the following comments is NOT supported in PHP:

<*!—some code--*>;

  1. Choose the right syntax for inheritance between classes in PHP.

class ClassName extends ClassName2{...}

  1. Correct way of variable declaration in javascript.

Var age;

  1. What is true about AJAX and Jquery?

Jquery provides several functions to AJAX functionality

  1. A correct way to make all <*p*> elements italic?

p {font-style:italic}

  1. Is it possible to create more than one session per client(browser or another client)?

No, only one session per client;

  1. Given code: <*input type="text" name="name1" value="login" /*>. What does "value" attribute specifies?

It specifies initial text - "login" will be written in that text field;

  1. Which statement is WRONG?

Cookies are used only for advertising;

  1. How to set textarea's width and height in html?

rows="10" cols="20";

  1. Which is NOT appropriate rule for XHTML?

All tag attributes must be enclosed in quotation marks

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

Action

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

Hi;

  1. Types of properties in CSS that are inheritable by children elements

text, color, and font

  1. Which statement is wrong?

The script with require() will continue run when the target wasn't found;

  1. Which input type DOESN'T exist in html "form"?

input type="directory";

  1. What will be the result of the following code: The answer is<*?=6*7 ?*>;?

The answer is 42;

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

Image

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

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

  1. What is NOT a common problem used to be solved by Web frameworks (from our lecture's list) in developing a Web Applications.

Charset problems

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

setcookie("login", "John");

  1. sider we have table 'user' and we run the following script: "INSERT INTO user (`id`, `login`, `password`, `name`, `surname`) VALUES ('1', 'azicus88', 'mypass', 'Azamat', 'Tolegenov'), ('2', 'tima', 'timapass', 'Timur', 'Yeslamgaliyev'), ('3', 'erba', 'erbapass', 'Erbol', 'Naimanov');" What will be the output of the following code: "$result = mysql_query("SELECT name, id FROM user"); $row = mysql_fetch_row($result); $row = mysql_fetch_row($result); $row = mysql_fetch_row($result); echo $row[1];echo $row[0];"

3Erbol

  1. The stricter and more standard version of HTML is called ....

XHTML

  1. CSS stands for:

Cascading Style Sheets

  1. Choose the correct CSS syntax.

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

  1. Choose the correct way of constructor syntax in a class in PHP.

public function __construct(parameters){statements;}

  1. Which element is required in all HTML documents, is placed within the HEAD of the page and is displayed when bookmarking the page?

<*title*>

  1. What is FALSE about interfaces and abstract classes

Abstract classes are like interfaces, but you can instantiate them

  1. Choose the correct description of meta data of the Web Page.

<*meta description="Content-Type" content=" introduction to IITU" charset="utf-8" /*>

  1. How do you change the left margin of an element?

margin-left:

  1. How to remove cookie (in php)?

Set cookie again, by passing a timeout that is prior to the present time;

  1. A HTML tag to make a list of items with bullets

<*ul*>

  1. What will be output of the following code: <*?php $a="5"; $b=$a+6; echo $b; ? *>

11

  1. How to send requests to the server without reloading the page?

Using input type="submit";

  1. What is the difference between framework and library.

A framework calls your code, but a library is called by your code.

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

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

  1. What is true about 'static' keyword.

Static fields/methods are shared throughout a class rather than replicated in every object

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

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