Mainframe and Unix Programming Fundamentals

Covers mainframe programming concepts including COBOL, DB2, VSAM, and IMS along with Unix shell scripting and file operations

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

FTP is

  1. File Transmission Protocol
  2. File Transfer Protocol
  3. Transmission control Protocol
  4. Data Transmission protocol
Question 2 Multiple Choice (Single Answer)

The following characteristics of a file can be changed while transmitting to a remote host

  1. LRECL
  2. RECFM
  3. None of the attributes can be changed
  4. All the attributes can be changed
Question 3 Multiple Choice (Single Answer)

Which of the following is not a FTP Parameter?

  1. GET
  2. PUT
  3. EXIT
  4. BYE
Question 4 Multiple Choice (Single Answer)

Which parameter is used to copy one file from the remote machine to the local machine

  1. OPEN
  2. RMDIR
  3. OUT
  4. GET
Question 5 Multiple Choice (Single Answer)

Which command is used to terminate the conncetion with another computer?

  1. TERMINATE
  2. DELETE
  3. CLOSE
  4. None of the above
Question 6 Multiple Choice (Single Answer)

In the program specification Block the field length for the status code is

  1. 4
  2. 8
  3. 6
  4. 2
Question 7 Multiple Choice (Single Answer)

What does PLAN parameter refers?

  1. PLAN Name in which the DB2 program has to be bound
  2. Collection name in to which the program has to be bound
  3. Database Name
  4. Dataset in which the DB2 program resides
Question 8 Multiple Choice (Single Answer)

What is SQL code -818?

  1. Authentication failure
  2. SELECT statement has resulted in retrieval of more than one row
  3. Generated when the consistency tokens in the DBRM and the load module are different
  4. Resource Unavailable
Question 9 Multiple Choice (Single Answer)

Which of the following Environment cannot access DB2?

  1. TSO
  2. CICS
  3. IMS
  4. ENDEVOUR
Question 10 Multiple Choice (Single Answer)

What are the advantages of using a PACKAGE?

  1. Avoid having to bind a large number of DBRM members into a plan
  2. Minimize fallback complexities if changes result in an error
  3. Avoid cost of a large bind
  4. Time consumption is reduced
Question 11 Multiple Choice (Single Answer)

The actual call to access the database will be done by calling

  1. CBLTDLI
  2. PLITDLI
  3. Only a
  4. A or b
Question 12 Multiple Choice (Single Answer)

Which one is not a type of VSAM file?

  1. KSDS
  2. ESDS
  3. RSDS
  4. RRDS
Question 13 Multiple Choice (Single Answer)

What is S0C4 error?

  1. Caused by invalid Data in a Numeric field
  2. Protection Exception
  3. Timeout
  4. Data protection Exception
Question 14 Multiple Choice (Single Answer)

What the below command does? echo var=$<

  1. Assigns value of < to var variable
  2. Assigns value of $< to var variable
  3. Gets input from stdin and assigns that to var variable
  4. Assigns previously returned value to var variable
Question 15 Multiple Choice (Single Answer)

Assume that the .login/.profile file has the following command umask 27 What is the permission set upon creating a new file?

  1. -rwx--x---
  2. -rw--wx-wx
  3. -----w-rwx
  4. -rw-r-----
Question 16 Multiple Choice (Single Answer)

What is the difference between $* and $@?

  1. $* returns the number of arguments passed whereas $@ represents the arguments list.
  2. All arguments are double quoted using $* whereas all arguments are individually double quoted when using $@.
  3. $* is used in for loop whereas $@ is used in while loop.
  4. $* and $@ are same
Question 17 Multiple Choice (Single Answer)

What does $! represent?

  1. Process ID of current process
  2. Process ID of last background process
  3. Process ID of first background process
  4. Process ID of foreground process
Question 18 Multiple Choice (Single Answer)

What is the output of the below command? a=2;(a=3; echo -n $a) ; echo -n $a

  1. 33
  2. 22
  3. 32
  4. none
Question 19 Multiple Choice (Single Answer)

What does the below line does when inserted as first line in a shell script and executed? #! /usr/bin/bash -f

  1. bash is used to intrepret the script and it does not invoke .bashrc before executing the script
  2. bash is used to intrepret the script and it does invoke .bashrc before executing the script
  3. bash as well as sh are used to intrepret the script
  4. none
Question 20 Multiple Choice (Single Answer)

Which of the following compiler options can affect the runtime performance?

  1. (a) AWO
  2. (b) FASTSRT
  3. (c) RENT
  4. (d) All of the above