Hướng dẫn php mysql mcq

Latest PHP & MySQL MCQ Objective Questions

PHP & MySQL MCQ Question 1:

In ASP.NET, each session uses a unique ______ bits identifier.

  1. 60
  2. 180
  3. 120
  4. 30

Answer (Detailed Solution Below)

Option 3 : 120

Hướng dẫn php mysql mcq
Key Points

 Sessions are identified by a unique identifier. It is 120 bit identifier in ASP.NET. It can be read using the SessionID property.

The client requests a web page in the application from the web server, then the server checks the SessionID value sent from the web browser.

If the SessionID value is not supplied then ASP.NET starts a new session and the SessionID value for that session is sent to the browser with the response. By default, SessionID values are stored in a cookie. However, you can also configure the application to store the SessionID value in the URL for a "cookieless" session.

Hence the correct answer is 120.

Hướng dẫn php mysql mcq
Important Points 

  • When you use Session State, a session cookie named ASP.NET_SessionId is added to your browser automatically.
  • By default, the ASP.NET Session timeout is 20 minutes.
  • It is a server-side state management technique because each session is stored on the server.

PHP & MySQL MCQ Question 2:

What does PHP stand for?

  1. Preprocessed Hypertext Page
  2. Hypertext Markup Language
  3. PHP: Hypertext Preprocessor
  4. Hypertext Transfer Protocol

Answer (Detailed Solution Below)

Option 3 : PHP: Hypertext Preprocessor

The correct answer is option 3 i.e. PHP: Hypertext Preprocessor

Top PHP & MySQL MCQ Objective Questions

In ASP.NET, each session uses a unique ______ bits identifier.

  1. 60
  2. 180
  3. 120
  4. 30

Answer (Detailed Solution Below)

Option 3 : 120

Hướng dẫn php mysql mcq
Key Points

 Sessions are identified by a unique identifier. It is 120 bit identifier in ASP.NET. It can be read using the SessionID property.

The client requests a web page in the application from the web server, then the server checks the SessionID value sent from the web browser.

If the SessionID value is not supplied then ASP.NET starts a new session and the SessionID value for that session is sent to the browser with the response. By default, SessionID values are stored in a cookie. However, you can also configure the application to store the SessionID value in the URL for a "cookieless" session.

Hence the correct answer is 120.

Hướng dẫn php mysql mcq
Important Points 

  • When you use Session State, a session cookie named ASP.NET_SessionId is added to your browser automatically.
  • By default, the ASP.NET Session timeout is 20 minutes.
  • It is a server-side state management technique because each session is stored on the server.

PHP & MySQL MCQ Question 4:

In ASP.NET, each session uses a unique ______ bits identifier.

  1. 60
  2. 180
  3. 120
  4. 30

Answer (Detailed Solution Below)

Option 3 : 120

Hướng dẫn php mysql mcq
Key Points

 Sessions are identified by a unique identifier. It is 120 bit identifier in ASP.NET. It can be read using the SessionID property.

The client requests a web page in the application from the web server, then the server checks the SessionID value sent from the web browser.

If the SessionID value is not supplied then ASP.NET starts a new session and the SessionID value for that session is sent to the browser with the response. By default, SessionID values are stored in a cookie. However, you can also configure the application to store the SessionID value in the URL for a "cookieless" session.

Hence the correct answer is 120.

Hướng dẫn php mysql mcq
Important Points 

  • When you use Session State, a session cookie named ASP.NET_SessionId is added to your browser automatically.
  • By default, the ASP.NET Session timeout is 20 minutes.
  • It is a server-side state management technique because each session is stored on the server.

PHP & MySQL MCQ Question 5:

What does PHP stand for?

  1. Preprocessed Hypertext Page
  2. Hypertext Markup Language
  3. PHP: Hypertext Preprocessor
  4. Hypertext Transfer Protocol

Answer (Detailed Solution Below)

Option 3 : PHP: Hypertext Preprocessor

The correct answer is option 3 i.e. PHP: Hypertext Preprocessor

PHP & MySQL MCQ Question 6:

In PHP language, ‘explode’ is used to _____

  1. merge a string
  2. display a string
  3. split a string by a string
  4. input a string

Answer (Detailed Solution Below)

Option 3 : split a string by a string

Concept:

The explode() function breaks a string into an array.

Code:

$str = "Hello world";

print_r (explode(" ",$str));

?>