0

programming languages Online Quiz - 211

Description: programming languages Online Quiz - 211
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

The COBOL PERFORM loop is the equivalent of which of the following statements found in Java or C++ ?

  1. DO WHILE

  2. METHOD

  3. IF

  4. FOR


Correct Option: A

AI Explanation

To answer this question, you need to understand the functionality of the COBOL PERFORM loop and compare it with the options provided.

Option A) DO WHILE - This option is incorrect because the DO WHILE loop in Java or C++ is used to repeat a block of code while a condition is true. It is not equivalent to the COBOL PERFORM loop.

Option B) METHOD - This option is incorrect because a method in Java or C++ is a block of code that is executed when it is called. It is not equivalent to the COBOL PERFORM loop.

Option C) IF - This option is incorrect because the IF statement in Java or C++ is used to perform a conditional operation based on a condition. It is not equivalent to the COBOL PERFORM loop.

Option D) FOR - This option is incorrect because the FOR loop in Java or C++ is used to iterate over a sequence of values. It is not equivalent to the COBOL PERFORM loop.

The correct answer is A) DO WHILE. The DO WHILE loop in Java or C++ is similar to the COBOL PERFORM loop as it repeats a block of code while a condition is true.

Which one of the following is not a COBOL division?

  1. Identification

  2. Linkage

  3. Data

  4. Procedure


Correct Option: B

As per COBOL coding standards what is the meaning of an asterisk in column 7?

  1. Indicates start of a new line

  2. Indicates the line is commented

  3. Indicates the continuation of the previous line

  4. None of the above


Correct Option: B

What does the Acronym COBOL stand for?

  1. Common OBservation Official Language

  2. COmputer Basic Operating Language

  3. COmmon Business Oriented Language

  4. None of the above


Correct Option: C

What is the command used for printing in COBOL?

  1. SHOW

  2. PRINT

  3. DISPLAY

  4. DISP


Correct Option: C

Condition names are names associated with a field that take on a true/false status depending on whether their value is equal to the field value. They are indicated by a level number of what?

  1. 66

  2. 77

  3. 88

  4. 5


Correct Option: C

What is the result of compilation of a COBOL module?

  1. LINKDECK

  2. LINKLIB

  3. LINKEDIT

  4. All the above


Correct Option: B

State TRUE or FALSE. In the PROCEDURE DIVISION, only SECTION is optional. There must be at least one PARAGRAPH, SENTENCE and STATEMENT.

  1. True

  2. False


Correct Option: B

How many Bytes does a PIC 9(7) COMP-3 occupy?

  1. 7

  2. 6

  3. 5

  4. 4


Correct Option: D

what is the interface between application program and smartfrom?

  1. Function Module

  2. Subroutinue

  3. Macro

  4. Event


Correct Option: A

What is the system field to display the total number of pages for the currently processed form?

  1. &SFSY-JOBPAGES&

  2. &SFSY-PAGEBREAK&

  3. &SFSY-FORMPAGES&

  4. &SFSY-PAGENAME&


Correct Option: C

SMARTFORM does not generate any Function Module when activated.

  1. True

  2. False


Correct Option: B

What is the basic object of data Dictionary?

  1. Domains

  2. Documentation

  3. Data Models

  4. Dynpro


Correct Option: A

What is invalid attribute of a domain?

  1. Type

  2. Fixed values

  3. Length

  4. Header


Correct Option: D
Explanation:

To solve this question, the user needs to be familiar with the concept of a domain and its attributes.

A domain is a set of possible values for a specific attribute. It is used to define the type of data that can be stored in a database table column or an object property. The attributes of a domain specify the characteristics of the data that can be stored in it.

Option D is incorrect because "Header" is not a valid attribute of a domain. The attributes of a domain include:

A. Type: Specifies the data type of the attribute, such as integer, string, or date.

B. Fixed values: Specifies a set of allowed values for the attribute, such as a list of predefined options.

C. Length: Specifies the maximum length of the attribute's value, such as the maximum number of characters in a string.

Therefore, the answer is: D

Sub query usually more efficient because

  1. Data is filtered in the database

  2. Data is filtered on the network

  3. Data is filtered in the sapgui

  4. Data is filtered at the application server


Correct Option: A

From the below given options, select all those which are correct.

  1. VALUE clause is used to initialize the data items in the working storage section.

  2. INITIALIZE is used to initialize the data items in the procedure division.

  3. INITIALIZE clause is used to initialize the data items in the working storage section.

  4. VALUE is used to initialize the data items in the procedure division.


Correct Option: A,B

Select the sections which are main sections in DATA DIVISION?

  1. FILE SECTION

  2. LINKAGE SECTION

  3. WORKING-STORAGE SECTION

  4. REPORT SECTION


Correct Option: A,C

Search help can not be attach to

  1. Domain

  2. Field of a table

  3. Check table

  4. Type


Correct Option: D

Full Buffering would be appropriate for?

  1. Transaction Tables

  2. Small Static tables

  3. Internal Tables

  4. Tables with generic Keys


Correct Option: B
- Hide questions