0

programming languages Online Quiz - 244

Description: programming languages Online Quiz - 244
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. It should be equal to length for variable length records

  2. It should be equal to four plus the record length for variable length records

  3. It should be a multiple of four plus the record length for variable length records

  4. It should be multiple of variable record length

  5. None


Correct Option: B

For getting the dump of user and system areas to the output device when a job terminates, we have to use which parameter?

  1. SYSMDUMP

  2. SYSABEND

  3. SYSUDUMP

  4. Any of the above

  5. None


Correct Option: B

What is the maximum number of DD stmt a step can have?

  1. 100

  2. 15

  3. 300

  4. 255


Correct Option: D

What is the default value for MSGLEVEL keyword?

  1. MSGLEVEL=(1,0)

  2. MSGLEVEL=(0,1)

  3. MSGLEVEL=(1,1)

  4. MSGLEVEL=(2,1)


Correct Option: C

In jsp the java bean can not used in below scope

  1. application

  2. session

  3. request

  4. page


Correct Option: C
  1. TIME=(14,39)

  2. TIME=NOLIMIT

  3. TIME=UNLIMIT

  4. TIME=MAXIMUM


Correct Option: B

Name the implicit variable available to JSP pages that may be used to access all the other implicit objects.

  1. page

  2. pageContext

  3. context

  4. object

  5. jspPave


Correct Option: B

AI Explanation

To answer this question, you need to understand the implicit objects available in JSP pages.

The implicit variable available to JSP pages that may be used to access all the other implicit objects is the pageContext object.

Let's go through each option to understand why it is correct or incorrect:

Option A) page - This option is incorrect because the page object is not available as an implicit object in JSP pages.

Option B) pageContext - This option is correct because the pageContext object is available as an implicit object in JSP pages and it provides access to all the other implicit objects.

Option C) context - This option is incorrect because the context object is not available as an implicit object in JSP pages.

Option D) object - This option is incorrect because the object object is not available as an implicit object in JSP pages.

Option E) jspPage - This option is incorrect because the jspPage object is not available as an implicit object in JSP pages.

The correct answer is B) pageContext. This option is correct because the pageContext object is available as an implicit object in JSP pages and it provides access to all the other implicit objects.

What is default delimiter for instream data?

  1. /*

  2. //*

  3. */

  4. &&


Correct Option: A

Which of the following statements are true for . Select the two correct answers.

  1. The id attribute must be defined for .

  2. The scope attribute must be defined for .

  3. The class attribute must be defined for .

  4. The must include either type or class attribute or both.


Correct Option: A,D

Which is the correct statement which will check only for errors?

  1. TYPRUN=COMPILE

  2. TYPRUN=ERRFREE

  3. TYPRUN=HOLD

  4. TYPRUN=SCAN


Correct Option: D

What IBM utility is used to rename a dataset?

  1. IEBCOPY

  2. IEBGENER

  3. IEHPROGM

  4. IEBCOMPR


Correct Option: C

Which one is the valid statement? 1 SYSIN DD DSN=DUMMY 2 SYSIN DD * 3 SYSIN DD DUMMY 4 SYSIN DD DSN=NULLFILE

  1. ALL THE ABOVE

  2. ONLY 1 AND 2

  3. ONLY 2 AND 4

  4. ONLY 2, 3 AND 4

  5. ONLY 2


Correct Option: D

A bean with a property color is loaded using the following statement Which of the following statements may be used to set the of color property of the bean. Select the one correct answer.


Correct Option: E
  1. This is incorrect syntax of and will generate a compilation error. Either value or param must be defined.

  2. All the properties of the fruit bean are initialized to a value of null.

  3. All the properties of the fruit bean are assigned the values of input parameters of the JSP page that have the same name.

  4. All the properties of the fruit bean are initialized to a value of *.


Correct Option: C

Is the following statement true or false. If the isThreadSafe attribute of the page directive is false, then the generated servlet implements the SingleThreadModel interface.

  1. True

  2. False


Correct Option: A

Name the default value of the scope atribute of .

  1. page

  2. application

  3. session

  4. request


Correct Option: A

If DISP parameter is not coded in the DD statement that what is the default value?

  1. DISP=OLD,DELETE,KEEP

  2. DISP=OLD,KEEP,KEEP

  3. DISP=NEW,DELETE,DELETE

  4. DISP=SHR,KEEP,DELETE


Correct Option: C
- Hide questions