Tag: programming languages

Questions Related to programming languages

Which of the following is valid assignments ?

  1. %x = hello

  2. %x = 'hello'

  3. %x = “hello”

  4. Both (a) & (b)

  5. Both (b) & (c)


Correct Option: D

What will be the value of %Z ?

  1. 10

  2. 5

  3. 9.5

  4. 9


Correct Option: B

Which one of the following transfers control to another statement in a request ?

  1. JUMP

  2. JUMP TO

  3. CALL

  4. CALL TO


Correct Option: A

If you want to change the value of CAL DATE from 20090507 to 20090508, then which CHANGE statement is correct ?

  1. CHANGE CAL DATE TO 20090508

  2. CHANGE CAL DATE FROM 20090507 TO 20090508

  3. Both (a) & (b) are correct

  4. None of the above


Correct Option: A
  1. FILEMAN allows us to update the file where READ doesn't

  2. READ allows us to update the file whereas FILEMAN doesn't

  3. Updates can be allowed using both FILEMAN as well as READ

  4. Updates cannot be done using FILEMAN as well as READ


Correct Option: A

Suppose you want to allocate RSREFR file to “RS.M204TST2.RSREFR.FILE”,then which of the following “ALLOCATE” statement is correct ?

  1. ALLOCATE RSREFR WITH DSN= RS.M204TST2.RSREFR.FILE OLD DIRECT

  2. ALLOCATE RSREFR WITH $DSN= RS.M204TST2.RSREFR.FILE OLD DIRECT

  3. ALLOCATE RSREFR WITH DSN= RS.M204TST2.RSREFR.FILE OLD

  4. Both (a) &(c) are correct


Correct Option: D

The statement which causes the output of whole records to be printed is

  1. PAI

  2. PRINT ALL

  3. PRINT

  4. FPC


Correct Option: A

The statement which enables to control spacing between lines

  1. SKIP LINES(S)

  2. NEW

  3. SKIP

  4. PAGE


Correct Option: A