Mainframe and Unix Programming Fundamentals
Covers mainframe programming concepts including COBOL, DB2, VSAM, and IMS along with Unix shell scripting and file operations
Questions
FTP is
- File Transmission Protocol
- File Transfer Protocol
- Transmission control Protocol
- Data Transmission protocol
The following characteristics of a file can be changed while transmitting to a remote host
- LRECL
- RECFM
- None of the attributes can be changed
- All the attributes can be changed
Which of the following is not a FTP Parameter?
- GET
- PUT
- EXIT
- BYE
Which parameter is used to copy one file from the remote machine to the local machine
- OPEN
- RMDIR
- OUT
- GET
Which command is used to terminate the conncetion with another computer?
- TERMINATE
- DELETE
- CLOSE
- None of the above
In the program specification Block the field length for the status code is
- 4
- 8
- 6
- 2
What does PLAN parameter refers?
- PLAN Name in which the DB2 program has to be bound
- Collection name in to which the program has to be bound
- Database Name
- Dataset in which the DB2 program resides
What is SQL code -818?
- Authentication failure
- SELECT statement has resulted in retrieval of more than one row
- Generated when the consistency tokens in the DBRM and the load module are different
- Resource Unavailable
Which of the following Environment cannot access DB2?
- TSO
- CICS
- IMS
- ENDEVOUR
What are the advantages of using a PACKAGE?
- Avoid having to bind a large number of DBRM members into a plan
- Minimize fallback complexities if changes result in an error
- Avoid cost of a large bind
- Time consumption is reduced
The actual call to access the database will be done by calling
- CBLTDLI
- PLITDLI
- Only a
- A or b
Which one is not a type of VSAM file?
- KSDS
- ESDS
- RSDS
- RRDS
What is S0C4 error?
- Caused by invalid Data in a Numeric field
- Protection Exception
- Timeout
- Data protection Exception
What the below command does? echo var=$<
- Assigns value of < to var variable
- Assigns value of $< to var variable
- Gets input from stdin and assigns that to var variable
- Assigns previously returned value to var variable
Assume that the .login/.profile file has the following command umask 27 What is the permission set upon creating a new file?
- -rwx--x---
- -rw--wx-wx
- -----w-rwx
- -rw-r-----
What is the difference between $* and $@?
- $* returns the number of arguments passed whereas $@ represents the arguments list.
- All arguments are double quoted using $* whereas all arguments are individually double quoted when using $@.
- $* is used in for loop whereas $@ is used in while loop.
- $* and $@ are same
What does $! represent?
- Process ID of current process
- Process ID of last background process
- Process ID of first background process
- Process ID of foreground process
What is the output of the below command? a=2;(a=3; echo -n $a) ; echo -n $a
- 33
- 22
- 32
- none
What does the below line does when inserted as first line in a shell script and executed? #! /usr/bin/bash -f
- bash is used to intrepret the script and it does not invoke .bashrc before executing the script
- bash is used to intrepret the script and it does invoke .bashrc before executing the script
- bash as well as sh are used to intrepret the script
- none
Which of the following compiler options can affect the runtime performance?
- (a) AWO
- (b) FASTSRT
- (c) RENT
- (d) All of the above