0

web technology Online Quiz - 99

Description: web technology Online Quiz - 99
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0
  1. A script is a
  1. Program or sequence of instructions that is interpreted or carried out by processor directly

  2. Program or sequence of instruction that is interpreted or carried out by another program

  3. Program or sequence of instruction that is interpreted or carried out by web server only

  4. None of above


Correct Option: B
  1. Faster

  2. Slower

  3. The execution speed is similar

  4. All of above


Correct Option: B
  1. PHP is a widely used ……………. scripting language that is especially suited for web development and can be embedded into html
  1. Open source general purpose

  2. Proprietary general purpose

  3. Open source special purpose

  4. Proprietary special purpose


Correct Option: A
  1. PHP can be used to develop web applications

  2. PHP makes a website dynamic.

  3. PHP applications can not be compiled.

  4. PHP can not be embedded into html.


Correct Option: D
  1. It can never be changed or undefined

  2. It can never be changed but can be undefined

  3. It can be changed but can not be undefined

  4. It can be changed and can be undefined


Correct Option: A
  1. The following piece of script will output: $email=’[email protected]’; $new=strstr($email, ‘@’ print $new; ?>
  1. admin

  2. [email protected]

  3. @psexam.com

  4. psexam.com


Correct Option: C
  1. Which of the following function returns the number of characters in a string variable?
  1. count($variable)

  2. len($variable)

  3. strcount($variable)

  4. strlen($variable)


Correct Option: D
  1. When you need to obtain the ASCII value of a character which of the following function you apply in PHP?
  1. chr( );

  2. asc( );

  3. ord( );

  4. val( );


Correct Option: C

The same file name can be specified in the USING and GIVING phrase of a SORT statement.

  1. True

  2. False


Correct Option: A

When you execute 'open with lock', the following occurs :

  1. If the specified file is already in the open mode, the program is suspended, and waits for exclusive availability of the file.

  2. If the specified file is not in the open mode, the file is opened.

  3. If the specified file is not in the open mode, the program is suspended, and waits for exclusive availability of the file.

  4. If the specified file is in the open mode, the file is opened.


Correct Option: A,B

Which are the JSP scripting elements below?

  1. Declarations

  2. Scriptlets

  3. Expressions

  4. Include


Correct Option: A,B,C

How many JSP scripting elements are there?

  1. 5

  2. 3

  3. 4

  4. 2


Correct Option: B

Fullform of a JSP ?

  1. Java servlet paper

  2. Java server Paper

  3. Java Server Pages

  4. None


Correct Option: C
  1. Cookies

  2. URL- rewriting

  3. sessions

  4. SSL sessions


Correct Option: A,B,D

Explain the life cycle methods of a Servlet?

  1. init(ServletConfig config)

  2. service( ServletRequest req, ServletResponse res)

  3. destroy( ServletRequest req, ServletResponse res)

  4. destroy()


Correct Option: A,B,D

A doGet() method is limited with 2k of data to be sent?

  1. True

  2. False


Correct Option: A

Inside which HTML element do we put the JavaScript?


Correct Option: C

What is the correct JavaScript syntax to write "Hello World"?

  1. "Hello World"

  2. document.write("Hello World")

  3. response.write("Hello World")

  4. ("Hello World")


Correct Option: B
- Hide questions