Mainframe and Enterprise Programming Quiz

A mixed quiz covering SQL, Java platform, and Easytrieve mainframe reporting concepts for enterprise developers working with legacy and modern systems

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which among the following is correct for the given piece of code? FILE PERSNL FB (150 1800) REGION 1 1 N BRANCH 2 2 N NAME 17 16 A FILE MYFILE FB(150 1800) COPY PERSNL JOB INPUT PERSNL NAME MYPROG MOVE LIKE PERSNL TO MYFILE PUT MYFILE

  1. This statement is used to copy record from PERSNL to MYFILE if the entire record is identical in both the files
  2. This statement moves the like named field values from PERSNL to MYFILE
  3. This statement moves the record from PERSNL to MYFILE if the record-length matches
  4. Both a & c are correct
Question 2 Multiple Choice (Single Answer)

Which among the following is true?

  1. The POINT statement will only establish the position within an ISAM, VSAM relative record (RRDS), VSAM (KSDS) indexed file.
  2. Data in the file will be available only after the next successful sequential retrieval by a file input statement.
  3. both a & b
  4. None of the above
Question 3 Multiple Choice (Single Answer)

Which among the following is false?

  1. TALLY is a system defined field for control report.
  2. Can be used in a Line statement or in calculations within report-procs
  3. Commonly used to determine averages for a control level
  4. Won’t contain the number of detail records that comprise a control break
Question 4 Multiple Choice (Single Answer)

JOB INPUT (CAMMAILP) TEST. In this JOB statement

  1. CAMMAILP is the Job name
  2. CAMMAILP is the File name that you choose for this job
  3. CAMMAILP is the DDName and the input Filename that you have coded
  4. CAMMAILP is the Report name
Question 5 Multiple Choice (Single Answer)

JOB INPUT NULL. Which among the following are valid statements?

  1. This statement cannot be coded in Easytrieve
  2. The input is could be inside the JOB activity
  3. There is no input to this job statement
  4. Both b & c
Question 6 Multiple Choice (Single Answer)

Which among the following is false?

  1. Easytrieve is an information retrieval and data management system
  2. Easytrieve allows fixed, variable, undefined, or spanned record formats
  3. Matches an unlimited number of files
  4. Cannot call progams written in other languages
Question 7 Multiple Choice (Single Answer)

In Easytrieve if a line has to be continued to the next line

  1. “-“ can only be used
  2. “+” can only be used
  3. # can be used
  4. Both “+” and “-“ can be used
Question 8 Multiple Choice (Single Answer)

What is the maximum length of field name that could be declared?

  1. 48 characters
  2. 40 characters
  3. 32 characters
  4. None of the above
Question 9 Multiple Choice (Single Answer)

The possible Activity statements in Easytrieve are

  1. JOB, SORT and MERGE
  2. JOB Alone
  3. SORT Alone
  4. JOB and SORT
Question 10 Multiple Choice (Single Answer)

How to refer to the status of an i-o operation done on a file?

  1. DDName::FILE-STATUS
  2. FILE-STATUS::DDName
  3. DDName:FILE-STATUS
  4. None of the above
Question 11 Multiple Choice (Single Answer)

Which of the following can not be used on a report?

  1. NOADJUST
  2. NODATE
  3. NOPAGE
  4. AUTOSKIP
Question 12 Multiple Choice (Single Answer)

MASK can be used

  1. Only for an outfile defined as printer
  2. For any outfile that we write to
  3. Both a & b
  4. None of the above
Question 13 Multiple Choice (Multiple Answers)

Java architecture consists of? (Multiple)

  1. Java Programming Language
  2. Java Class file format
  3. Java Application Programming Interface
  4. Java Common Type System
  5. Java Virtual Machine
  6. Java Common Language Runtime
Question 14 Multiple Choice (Multiple Answers)

When Java JNI (Java Native Interface) should be used? (Multiple)

  1. To improve memory management.
  2. To achieve Platform independence
  3. To improve the Application performance
  4. If Java API is not available for platform specific operation
  5. For small applications
Question 15 Multiple Choice (Multiple Answers)

What are valid Java Editions? (Multiple)

  1. Micro Edition
  2. Mobile Edition
  3. Enterprise Edition
  4. Mono Edition
  5. Standard Edition
  6. Robust Edition
Question 16 Multiple Choice (Single Answer)

Java Platform is made of?

  1. Java Virtual Machine
  2. Java Programming Language
  3. Java Application Programming Interface
  4. 1, 2 & 3
  5. 1 & 3
  6. 2 & 3
Question 17 Multiple Choice (Single Answer)

What is not true about Java platform?

  1. JVM's default class loader is bootstrap
  2. Java code is compiled into bytecode
  3. JVM can run code in any language, provided it has been complied to bytecode meeting JVM specification
  4. Java class file use little-endian format
  5. Garbage collector is an integral part of JVM
Question 18 Multiple Choice (Single Answer)

Abbreviation of SQL

  1. Structure Query Language
  2. Structured Query Language
  3. Structure Queried Language
  4. None of the above
Question 19 Multiple Choice (Multiple Answers)

Mark the correct statements ?

  1. LIKE '%XXX%'
  2. LIKE 'XXX'
  3. LIKE XXX
  4. LIKE NULL