Deck 3: PHP and MYSQL: Object Creation, Cookies, Sessions, and Database Operations
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
العب
ملء الشاشة (f)
Deck 3: PHP and MYSQL: Object Creation, Cookies, Sessions, and Database Operations
1
If you create a _______function, PHP will automatically call this function when you create an object from a class.
A)__construct()
B)___destruct()
C)both a and b
D)none of these
A)__construct()
B)___destruct()
C)both a and b
D)none of these
__construct()
2
A destructor is called when the object is destructed or the script is stopped or exited.
A)true
B)false
C)both a and b
D)none of these
A)true
B)false
C)both a and b
D)none of these
true
3
A cookie is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values.
A)true
B)false
C)both a and b
D)none of these
A)true
B)false
C)both a and b
D)none of these
true
4
A session is a way to store information (in variables) to be used across multiple pages.
A)true
B)false
C)both a and b
D)none of these
A)true
B)false
C)both a and b
D)none of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
Which one of the following databases has PHP supported almost since the beginning?
A)Oracle Database
B)SQL
C)SQL+
D)MySQL
A)Oracle Database
B)SQL
C)SQL+
D)MySQL
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
Which one of the following statements is used to create a table?
A)CREATE TABLE table_name (column_namecolumn_type);
B)CREATE table_name (column_typecolumn_name);
C). CREATE table_name (column_namecolumn_type);
D). CREATE TABLE table_name (column_typecolumn_name);
A)CREATE TABLE table_name (column_namecolumn_type);
B)CREATE table_name (column_typecolumn_name);
C). CREATE table_name (column_namecolumn_type);
D). CREATE TABLE table_name (column_typecolumn_name);
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which method returns the error code generated from the execution of the last MySQL function?
A)errno()
B). errnumber()
C). errorno()
D)errornumber()
A)errno()
B). errnumber()
C). errorno()
D)errornumber()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
If there is no error, then what will the error() method return?
A). TRUE
B). FALSE
C). Empty String
D). non of these
A). TRUE
B). FALSE
C). Empty String
D). non of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
Which one of the following statements should be used to include a file?
A). #include 'filename';
B)include 'filename';
C)include <filename>
D)none of these
A). #include 'filename';
B)include 'filename';
C)include <filename>
D)none of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
Which one of the following methods recuperates any memory consumed by a result set?
A)destroy()
B)remover()
C)alloc()
D)free()
A)destroy()
B)remover()
C)alloc()
D)free()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
Which one of the following methods can be used to diagnose and display information about a MySQL connection error?
A). connect_errno()
B)connect_error()
C)mysqli_connect_errno()
D). mysqli_connect_error()
A). connect_errno()
B)connect_error()
C)mysqli_connect_errno()
D). mysqli_connect_error()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which method retrieves each row from the prepared statement result and assigns the fields to the bound results?
A)get_row()
B). fetch_row()
C). fetch()
D)row()
A)get_row()
B). fetch_row()
C). fetch()
D)row()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
Which one of the Following methods is responsible for sending the query to Database
A)query()
B)send_query( )
C)sendquery()
D)query_send()
A)query()
B)send_query( )
C)sendquery()
D)query_send()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
Which is the comment symbol in mysql?
A)&&
B)/*….*/
C)#
D)%
A)&&
B)/*….*/
C)#
D)%
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
A ________ consists of one or more tables.
A)database
B)command
C)Query
D)none of these
A)database
B)command
C)Query
D)none of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
________ is used to uniquely identify the rows in table.
A)primary key
B)Database
C)not null
D)none of these
A)primary key
B)Database
C)not null
D)none of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
_____ returns the last error description for the most recent function call
A)Error no
B)Zero no
C)no error
D)none of these
A)Error no
B)Zero no
C)no error
D)none of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
A _______ is a server that manages data for user.
A)Wamp
B)World
C)Excel
D)none of these
A)Wamp
B)World
C)Excel
D)none of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
RDBMS stands for __________.
A)Relation data base management
B)reletives data base management
C)Random data base management
D)none of these
A)Relation data base management
B)reletives data base management
C)Random data base management
D)none of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
In PHP $Icon=mySQL_connect("localhost","root","") is used to ____ to the data base .
A)create
B)close
C)connect
D)none of these
A)create
B)close
C)connect
D)none of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
mysql_close() is use to ________database(wamp) in php .
A)create
B)close
C)connect
D)none of these
A)create
B)close
C)connect
D)none of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
______ is use to create the web page .
A)Word press
B)Lotus
C)Word star
D)none of these .
A)Word press
B)Lotus
C)Word star
D)none of these .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
die(mySQL_error()) is used to show _______ message .
A)error
B)Connect
C)create
D)none of these
A)error
B)Connect
C)create
D)none of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
The long form of SQL is __________.
A)Structural query language
B)Structural question language
C)System Query Language
D)None of these
A)Structural query language
B)Structural question language
C)System Query Language
D)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
the switch statement is used to perform different actions based on different conditions
A)true
B)false
C)both a and b
D)none of these
A)true
B)false
C)both a and b
D)none of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck