0

programming languages Online Quiz - 233

Description: programming languages Online Quiz - 233
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. (1) Opens the external file for output and checks the file status code

  2. (2) The main program, which calls all the subprograms and then verifies the contents of a record area

  3. (3) Opens the external file for input and checks the file status code

  4. (4) Reads a record from the external file and checks the file status code


Correct Option: A
  1. (1) It reads a record from the internal Record.

  2. (2) Reads a record from the external file and checks the file status code

  3. (3) The main program, which calls all the subprograms and then verifies the contents of a record area

  4. (4) Reads a record from the external file,checks the file status code and writes the same record into the external file.


Correct Option: B
  1. (1) FILE-CONTROL

  2. (2) FILE SECTION

  3. (3) WORKING-STORAGE SECTION

  4. (4) Procedure division


Correct Option: A
  1. (1) FILE-CONTROL

  2. (2) FILE SECTION

  3. (3) WORKING-STORAGE SECTION

  4. (4) Procedure division


Correct Option: B
  1. (1) Random access

  2. (2) Static access

  3. (3) Dynamic access

  4. (4) Sequential access


Correct Option: D
  1. (1) USING PICTURE Clause

  2. (2) The USAGE IS FUNCTION-POINTER clause

  3. (3) The USAGE IS PROCEDURE-POINTER clause

  4. (4) The USAGE IS FUNCTION-ADDRESS clause


Correct Option: C
  1. (1) Using 5 to 9 digits is 35% faster than using 1 to 4 digits.

  2. (2) Using 10 to 18 digits is 2200% slower than using 1 to 4 digits.

  3. (3) using an odd number of digits is 5% to 20% faster than using an even number of digits

  4. (4) Using the 16 to 18 digits is up to 140% slower than using 1 to 15 digits


Correct Option: B

What is the Performance considerations using FASTSRT?

  1. (1) One program that processed 100,000 records was 35% faster when using FASTSRT compared to using NOFASTSRT

  2. (2) One program that processed 100,000 records was 35% slower when using FASTSRT Compared to using NOFASTSRT

  3. (3) One program that processed using FASTSRT and NOFASTSRT are ssame.

  4. (4) None of the above


Correct Option: A
  1. (1) C/C++-to-COBOL programs calls

  2. (2) COBOL-to-C/C++ programs calls

  3. (3) COBOL-to-COBOL programs calls

  4. (4) C/C++-to-C/C++ programs calls


Correct Option: C
  1. (1) Even though the main program does not contain any input or output statements, it can reference the record area of the file.

  2. (2) Each subprogram can control a single input or output function, such as OPEN or READ.

  3. (3) Each program has access to the file.

  4. (4) All the above


Correct Option: D
  1. (1) Use NAME to generate a link-edit NAME card for each object module.

  2. (2) You can also use NAME to generate names for each load module when you are doing batch compilations.

  3. (3) When NAME is specified, a NAME card is appended to each object module that is created

  4. (4) All the above.


Correct Option: D
  1. (1) One program using variable-length files and AWO was 88% slower than NOAWO.

  2. (2) On the average, AWO was equivalent to NOAWO

  3. (3) One program using variable-length files and AWO was 88% faster than NOAWO

  4. (4) All the above


Correct Option: C
  1. (1) Reads a record from the external file and checks the file status code

  2. (2) The main program, which calls all the subprograms and then verifies the contents of a record area

  3. (3) Opens the external file for input and checks the file status code

  4. (4) Opens the external file for input and checks the file status code


Correct Option: D
  1. (1) A smaller CISZ results in faster retrieval for random processing at the expense of inserts

  2. (2) A larger CISZ is less efficient for sequential processing

  3. (3) A larger CISZ is less efficient for random processing

  4. (4) A smaller CISZ results in slower retrieval for sequential processing at the expense of inserts


Correct Option: A
  1. (1) All data-names which have been used in program

  2. (2) The description of the department code that is passed, using the USING clause of the CALL statement

  3. (3) Address of the deparment code that is passed ,using the USING clause of the CALL statement

  4. (4) All the above


Correct Option: B
  1. (1) Compute the arithmetic operations

  2. (2) Control the maximum number of digits allowed for decimal numbers

  3. (3) Control the inappropriate datatype if it is used by mistake

  4. (4) Identify the sign of the variable being used in the program


Correct Option: B
- Hide questions