0

programming languages Online Quiz - 4

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

Which of the following relational operator is not allowed in the START statement?

  1. > &

  2. >=

  3. =

  4. <=


Correct Option: D

A COBOL 85 program can invoke routines written

  1. C

  2. C++

  3. PASCAL

  4. FORTAN

  5. TAL

  6. All of the above


Correct Option: F

Different modes of stopping a Pathway

  1. IMMEDIATE

  2. ABORT

  3. ORDERLY

  4. All of the above

  5. None of the above


Correct Option: D

The DELETE statement does not remove a record from

  1. RELATIVE files

  2. SEQUENTIAL files

  3. INDEXED files

  4. NONE OF THESE


Correct Option: B

TMF provides the integrity of the database against failure of the any of the following:

  1. Disk drive and Disk controller

  2. Disk process and CPU

  3. An application process and Entire system

  4. Both a, b and c


Correct Option: D

What are the features of TMF?

  1. Consistency

  2. Fault Tolerant Records

  3. Roll Back

  4. Locking

  5. All of the above


Correct Option: E

Can a SEARCH be applied to a table which does not have an INDEX defined?

  1. True

  2. False


Correct Option: B

When a pathway system is shut down, all configuration information up to that time is retained in the pathway control file

  1. True

  2. False


Correct Option: B

PROGRAM-ID is optional paragraph in any program

  1. True

  2. False


Correct Option: B

DAY-OF-INTEGER is a Numeric Intrinsic Function

  1. True

  2. False


Correct Option: B

In TANDEM COBOL85, it is not necessary to explicitly close files through the CLOSE statement before executing a STOP RUN

  1. True

  2. False


Correct Option: B

An object within a pathway system can be independently referenced, configured and controlled

  1. True

  2. False


Correct Option: B

Which mode of opening is required when REWRITE is used?

  1. INPUT

  2. OUTPUT

  3. I-O

  4. EXTEND

  5. All of the above

  6. None of the above


Correct Option: C

AI Explanation

To understand which mode of opening is required when the REWRITE statement is used, let's go through each option:

Option A) INPUT - This option is incorrect because the INPUT mode is used for reading data from a file, not for rewriting existing data.

Option B) OUTPUT - This option is incorrect because the OUTPUT mode is used for writing data to a file, not for rewriting existing data.

Option C) I-O - This option is correct because the I-O mode (Input-Output) is used when you want to both read and rewrite existing data in a file. The REWRITE statement is used specifically to rewrite existing records within a file.

Option D) EXTEND - This option is incorrect because the EXTEND mode is used to add new records to the end of a file, not for rewriting existing data.

Option E) All of the above - This option is incorrect because not all of the above options are required when using the REWRITE statement. Only the I-O mode is required.

Option F) None of the above - This option is incorrect because the correct answer is option C, I-O.

Therefore, the correct answer is option C, I-O. This option is correct because the I-O mode is required when using the REWRITE statement to rewrite existing records in a file.

Several pathway environments can exist for a system

  1. True

  2. False


Correct Option: B

There can be many PATHMONs for a single pathway system

  1. True

  2. False


Correct Option: B

AI Explanation

To answer this question, you need to understand the concept of a PATHMON in a pathway system.

A PATHMON (pathway monitor) is a device or software that monitors and manages the performance and availability of a pathway system. It ensures that the pathway is functioning properly and can detect any issues or failures.

In a single pathway system, there is typically only one PATHMON. This single PATHMON is responsible for monitoring and managing the entire pathway system.

Therefore, the statement "There can be many PATHMONs for a single pathway system" is false. The correct answer is B) False.

Once a pathway system is started, the global limits can be altered without shutting down the system

  1. True

  2. False


Correct Option: B

When starting a server class, PATHMON repeats the server start up operations for the total number of processes specified by the NUMSTATIC attribute

  1. True

  2. False


Correct Option: B

How much storage is occupied for COMP data items of 5 through 9 range

  1. 2

  2. 4

  3. 8

  4. 5


Correct Option: B
- Hide questions