0

web technology Online Quiz - 114

Description: web technology Online Quiz - 114
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

JSP expressions should be enclosed within


Correct Option: B

Predefined variables are also called as

  1. scriptlets

  2. declarations

  3. implicit objects

  4. expressions


Correct Option: C

The following is not an implicit object

  1. out

  2. response

  3. session

  4. page


Correct Option: D

Following is a type of JSP directives

  1. page

  2. include

  3. taglib

  4. all the above


Correct Option: D

The number of page directives

  1. 8

  2. 12

  3. 16

  4. 9


Correct Option: B

The only page directive that can be used a number of times in a jsp is

  1. extends

  2. session

  3. import

  4. language


Correct Option: C

The following is not a feature of java beans

  1. directives

  2. properties

  3. methods

  4. events


Correct Option: A

A Bean class

  1. must have empty constructor

  2. should have no public fields

  3. Both a and b

  4. None of a and b


Correct Option: C

The number of JSP action tags

  1. 2

  2. 3

  3. 4

  4. 5


Correct Option: B

TLD is

  1. Tag Library Descriptor

  2. Tag Language Description

  3. Tag Library Description

  4. Tag Language Dynamics


Correct Option: A

package polymorphism;class TestPolymorphismSuper { int p; TestPolymorphismSuper testPoly() { TestPolymorphismSuper TS = new TestPolymorphismSuper(); TS.p =100; return TS; }}public class TestPolymorphism1 extends TestPolymorphismSuper{ TestPolymorphism1 testPoly() { TestPolymorphism1 TSub = new TestPolymorphism1(); TSub.p =500; return TSub; } public static void main(String[] args) { TestPolymorphismSuper TSuper = new TestPolymorphism1(); TSuper = TSuper.testPoly(); System.out.println(TSuper.p); }}

  1. 500

  2. 100

  3. 0

  4. Null Pointer Exception


Correct Option: A
  1. mysql_selectDB_server($server,$user,$password)

  2. mysql_connection($server,$user,$password)

  3. mysql_connect($server,$user,$password)

  4. database_connect($mysql,$server,$user,$password,$database)


Correct Option: C
  1. $object.method()

  2. $object->$method()

  3. $object:$method()

  4. $object->method()


Correct Option: D

Which is the problem with the following code using PHP5?

  1. Object attributes are not of any specific data type

  2. The constructor of the class is not correctly defined

  3. You cannot put an equal when recieving a parameter in the constructor

  4. The word function is missing before the class constructor


Correct Option: D

Which is the final value of $n?

  1. 36

  2. 30

  3. 33

  4. 25


Correct Option: A
  1. strconcat(string $glue, array $pieces)

  2. implode ( string $glue , array $pieces )

  3. strcmp(array $pieces, string $concat, int $elementNumber)

  4. arrayConcat(array $pieces, string $concat, string $EOF)


Correct Option: B

Which of these are valid array operators in php?

  1. ==

  2. ===

  3. +

  4. union


Correct Option: A,B,C
  1. $var = new asoc_array("key"->"value","key2"->"value2");

  2. $var = array("key"=>"value","key2"=>"value2");

  3. $var = new ArrayList("key,value","key1,value1");

  4. $var = new List(Of Associative)["key"=>"value","key1","value1"];


Correct Option: B
- Hide questions