0
Alien head

programming languages Online Quiz - 235

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

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


Correct Option: D

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


Correct Option: A

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


Correct Option: C

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


Correct Option: B

What is the difference between $* and [email protected]?

  1. $* returns the number of arguments passed whereas [email protected] represents the arguments list.

  2. All arguments are double quoted using $* whereas all arguments are individually double quoted when using [email protected]

  3. $* is used in for loop whereas [email protected] is used in while loop.

  4. $* and [email protected] are same


Correct Option: B

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-----


Correct Option: D

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


Correct Option: C

What is S0C4 error?

  1. Caused by invalid Data in a Numeric field

  2. Protection Exception

  3. Timeout

  4. Data protection Exception


Correct Option: B

Which one is not a type of VSAM file?

  1. KSDS

  2. ESDS

  3. RSDS

  4. RRDS


Correct Option: C

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

  1. CBLTDLI

  2. PLITDLI

  3. Only a

  4. A or b


Correct Option: D

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


Correct Option: D

Which of the following Environment cannot access DB2?

  1. TSO

  2. CICS

  3. IMS

  4. ENDEVOUR


Correct Option: D

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


Correct Option: C

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


Correct Option: A

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

  1. 4

  2. 8

  3. 6

  4. 2


Correct Option: D

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

  1. TERMINATE

  2. DELETE

  3. CLOSE

  4. None of the above


Correct Option: C

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

  1. OPEN

  2. RMDIR

  3. OUT

  4. GET


Correct Option: D

Which of the following is not a FTP Parameter?

  1. GET

  2. PUT

  3. EXIT

  4. BYE


Correct Option: C

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


Correct Option: D

FTP is

  1. File Transmission Protocol

  2. File Transfer Protocol

  3. Transmission control Protocol

  4. Data Transmission protocol


Correct Option: B
+ View questions