Hello Everyone..!!!
This morning i am here with some PHP interview questions for PHP developers to improve their web development skills and prepare for PHP interviews.
This morning i am here with some PHP interview questions for PHP developers to improve their web development skills and prepare for PHP interviews.
Questions
PHP Database Questions
Que.1 Which of the following
DBMSs do not have a native PHP extension?
A) MySQL
B) IBM DB/2
C) PostgreSQL
D) Microsoft SQL Server
E) None of the above
Que.2 In PHP in order to
access MySQL database you will use:
A) mysqlconnect() function
B) mysql-connect() function
C) mysql_connect() function
D) sql_connect() function
Que.3 Transactions are used to
treat sets of SQL statements atomically.
A) True
B) False
Que.4 SQL is not case
sensitive. SELECT is the same as select.
A) True
B) False
Que.5 Which of the following
is not an SQL aggregate function?
A) AVG
B) SUM
C) MIN
D) MAX
E) CURRENT_DATE()
Session Handling Questions :
Que.1 Which one of the
following is the very first task executed by a session enabled page?
a) Delete the previous session
b) Start a new session
c) Check whether a valid
session exists
d) Handle the session
Que.2 How many ways can a
session data be stored?
a) 3
b) 4
c) 5
d) 6
3. Which directive determines
how the session information will be stored?
a) save_data
b) session.save
c) session.save_data
d) session.save_handler
4. Which one of the following
is the default PHP session name?
a) PHPSESSID
b) PHPSESID
c) PHPSESSIONID
d) PHPIDSESS
5. If session.use_cookie is
set to 0, this results in use of..
a) Session
b) Cookie
c) URL rewriting
d) Nothing happens
User Authentication Questions
Que.1 How many predefined
variables does PHP use to authenticate a user?
a) 1
b) 2
c) 3
d) 4
Que.2 Which of the following
variables does PHP use to authenticate a user?
i) $_SERVER['PHP_AUTH_USER']
ii) $_SERVER['PHP_AUTH_USERS']
iii) $_SERVER['PHP_AUTH_PU']
iv) $_SERVER['PHP_AUTH_PW']
a) i) and ii)
b) ii) and iv)
c) i) and iv)
d) ii) and iii)
Que.3 Which of the following
PHP function is commonly used when handling authentication via PHP?
i) header()
ii) footer()
iii) inset()
iv) isset()
a) i) and iv)
b) ii) and iv)
c) ii) and iii)
d) i) and iii)
Que.4 Which function is used
to verify whether a variable contains a value?
a) header()
b) footer()
c) inset()
d) isset()
Que.5 Which of the following
are types of PHP authentication implementation methodologies?
i) Hard-coding a login pair
directly into the script
ii) File-based authentication
iii) Data-based authentication
iv) PEAR’S HTTP
authentication
a) ii) and iii)
b) i) and iv)
c) ii), iii) and iv)
d) All of the mentioned
Answersheet of these Questions will be available Tomorrow
Want more Questions....??? CLICK THE LINKS BELOW
PHP Multiple choice questions and answers-1
PHP Multiple choice questions and answers-2
PHP Multiple choice questions and answers-3
PHP Multiple choice questions-4
PHP Multiple choice questions and answers-8
PHP Multiple choice questions and answers-2
PHP Multiple choice questions and answers-3
PHP Multiple choice questions-4
0 comments:
Post a Comment