0

web technology Online Quiz - 95

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

Select the important Bean Life cycle methods

  1. Init

  2. setup

  3. teardown

  4. tearup


Correct Option: B,C

This context loads a context definition from an XML file located in the class path, treating context definition files as class path resources

  1. ClassPathXmlApplicationContext

  2. FileSystemXmlApplicationContext

  3. XmlWebApplicationContext

  4. XmlFileSystemApplicationContext


Correct Option: A

Which of the following is/are true about Mapplet?

  1. a) If you use a Sequence Generator transformation, you must use a reusable Sequence Generator transformation

  2. b) You cannot include Normalizer transformation in a mapplet

  3. c) You can include target definitions in a mapplet

  4. d) You cannot include source definitions in a mapplet


Correct Option: A,B

What will be the size of the @fields array my $record = ':a:b:c:'; my @fields = split(':', $record, -1);

  1. 0

  2. 1

  3. 3

  4. 4

  5. 5


Correct Option: E

Perl was first released in:

  1. 1978

  2. 1998

  3. Perl hasn't yet been released

  4. 1988

  5. 1980


Correct Option: D

What does the following SQL statement return? Assume the value of SysDate is 05-05-5555 Select SysDate / 5 from dual

  1. 01-01-1111

  2. Error

  3. 01

  4. 1111


Correct Option: B

AI Explanation

To answer this question, let's break down the SQL statement and analyze each part:

SELECT SysDate / 5 FROM dual

The statement is using the SELECT clause to retrieve the result of the expression "SysDate / 5". The expression "SysDate" represents the current system date.

Now, let's evaluate the expression "SysDate / 5" using the given value for SysDate (05-05-5555):

SysDate / 5 = 05-05-5555 / 5 = 1111-01-01

Based on this evaluation, the result of the SQL statement would be "1111-01-01".

However, the correct answer is B) Error. This is because the division operator (/) is not applicable to date values in SQL. Therefore, attempting to divide the SysDate by 5 will result in an error.

What is the syntax for declaring a variable

  1. None of the above


Correct Option: A

Page directive can be declared as True or False

  1. True

  2. False


Correct Option: A

Name the http method that sends the same response as the request. Select the one correct answer

  1. DEBUG method

  2. OPTIONS method

  3. TRACE method

  4. HEAD method


Correct Option: C

The location where compiled class files will be present within a war file?

  1. /WEB-INF/classes

  2. /classes

  3. /META-INF/classes

  4. /root/classes


Correct Option: A

Name the method defined in the HttpServletResponse class that may be used to set the content type?

  1. setResponseContentType

  2. setContent

  3. setContentType

  4. setType


Correct Option: C

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) setResponseContentType - This option is incorrect because there is no method named setResponseContentType in the HttpServletResponse class.

Option B) setContent - This option is incorrect because the setContent method is not used to set the content type in the HttpServletResponse class. It is used to set the actual content of the response.

Option C) setContentType - This option is correct because the setContentType method is used to set the content type in the HttpServletResponse class. It allows you to specify the MIME type of the response, such as "text/html" or "application/json".

Option D) setType - This option is incorrect because there is no method named setType in the HttpServletResponse class.

The correct answer is Option C) setContentType. This option is correct because it is the method defined in the HttpServletResponse class that is used to set the content type.

which option is correct when $def = \%any_hash ?

  1. all key value pairs are copied but in random order

  2. all key value pairs are copied in proper order

  3. all key value pairs from def may not be copied into abc

  4. syntax error


Correct Option: A

The proc which is used to redirect the output from the normal place to another file is

  1. PRINT

  2. PRINTTO

  3. FSLIST

  4. REPORT


Correct Option: B

data qtr;y=qtr('01OCT2010'd);run;what is the value of y?

  1. 3

  2. Syntax Error qtr name used as dataset name

  3. 4

  4. 2


Correct Option: C

Which of the file formats has smaller size

  1. WAV

  2. MP3

  3. AVI

  4. VOB


Correct Option: B

Which of the following is not a video file extension

  1. MP4

  2. QT

  3. JPG

  4. MOV


Correct Option: C

In animation, A keyframe is frame in which the artworks differs from the previous frame.

  1. True

  2. False


Correct Option: A

DAT is an acronym for

  1. Digital Audio Tape

  2. Data Audio Tape

  3. Digital Asynchronous Tape

  4. Digital Audio Type


Correct Option: A

A broadcast/NTSC video requires how many FPS it to play smoothly?

  1. 10

  2. 20

  3. 30

  4. 40


Correct Option: C

When a table is created :

  1. By default it is accessible to all users.

  2. By default they are created in the public schema.

  3. By default tables are created in your schema.

  4. By default they are created in the DBA schema.

  5. You must specify the schema when the table is created.


Correct Option: E
- Hide questions