Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
web_final.docx
Скачиваний:
0
Добавлен:
01.05.2025
Размер:
39.13 Кб
Скачать
  1. Choose the correct description of meta data of the Web page.

<*meta name = “description “content =”introduction to IITU”/>

  1. What is the description for 'mysql_fetch_assoc'.

Fetch a result row as an associative array

  1. Can PHP code be embedded in XHTML code?

Yes,if file extension is .php

  1. What will be the result for “2” + 3?

“23”

  1. Which are block elements?

<*div*>,<*p*>

  1. Cookie can be used for:

Authentication;

  1. Choose the right syntax for class and interface relation in PHP

Class ClassName implements InterfaceName{….}

  1. What is the description for ‘mysql_fetch_row’

Get a result row as an enumerated array

  1. What function is used to close the MySql connection

Mysql_close_con()

  1. Sider we have table ‘user’and we run the following script:…; while($row = mysql_fetch_array($result,MYSQL_NUM)) {echo $row[1].’data: ‘ $row[2].#’;}”

Azicus88 data:mypass # tima data:…

  1. $a=”hello”;$b=”world”; How to rpint “hello world” using only variables?

Echo $a. “ ”.$b

  1. SQL: How to add a new entry to users table?

Inserts into users(login,password) values (‘$login’$password);

  1. Sider we have table ‘user’and we run the following script:…; $row = mysql_fetch_row($result);echo $row[0];echo $row[1];”

Timur2

Functionality: can be directly clicked on

Styling: can be styled by CSS rules

Accessibility: screen reader will read it when selected

Myths: Cookies are like worms/viruses and can erase data from the user's hard disk.

Cookies are a form of spyware and can steal your personal information.

Cookies generate popups and spam.

Cookies are only used for advertising.

Facts: Cookies are only data, not program code.

Cookies cannot erase or read information from the user's computer.

Cookies are usually anonymous (do not contain personal information).

Cookies CAN be used to track your viewing habits on a particular site.

Session cookie : the default type; a temporary cookie that is stored only in the browser's memory When the browser is closed, temporary cookies will be erased

  • Can not be used for tracking long-term information

  • Safer, because no programs other than the browser can access them

Persistent cookie : one that is stored in a file on the browser's computer

Can track long-term information

Potentially less secure, because users (or programs they run) can open cookie files, see/change the cookie values, etc.

MVC

The model is the domain-specific representation of the data upon which the application operators.

The View renders the model into a form suitable for interaction,typically a user interface element.

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

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