0
Alien head

programming languages Online Quiz - 230

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

A: IN RSREFR FPC RECTYPE = REPORT END FIND FR A PAI END FOR “FR” stands for

  1. “FOR ALL RECORDS IN A”

  2. “FOR EACH RECORD IN A”

  3. ”FOR ONE RECORD IN A”

  4. ”FOR ANY RECORD IN A”


Correct Option: B

The statement which enables to control spacing between lines

  1. SKIP LINES(S)

  2. NEW

  3. SKIP

  4. PAGE


Correct Option: A

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

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

Retrievable data of all the records in the file is present in

  1. TABLE A

  2. TABLE B

  3. TABLE C

  4. TABLE D


Correct Option: B

O RSREFR FILEMAN/READ CLOSE RSREFR Which statement is correct about FILEMAN/READ ?

  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

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

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

Which one of the following transfers control to a subroutine ?

  1. JUMP

  2. JUMP TO

  3. CALL

  4. CALL TO


Correct Option: C

What will be the value of %Z ?

  1. 10

  2. 5

  3. 9.5

  4. 9


Correct Option: B

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

Suppose 'ab' is a variable,how it is represented in M204 ?

  1. %%ab

  2. $ab

  3. %ab

  4. ab


Correct Option: C

BEGIN %X IS FIXED DP 0 %X = 1.95 PRINT %X END What will be the value of %X

  1. 1.95

  2. 2

  3. 1

  4. 0


Correct Option: C

Spacing on output line can be controlled using

  1. AND

  2. WITH

  3. TAB

  4. All of the above


Correct Option: D

Which is correct for PRINT statement

  1. PRINT 'HELLO'

  2. PRINT “HELLO”

  3. Both (a) & (b)

  4. None of the above


Correct Option: A

Consider the following: A: IN RSREFR FPC RECTYPE = REPORT REPT.KEY IS PRESENT END FIND The above adhoc results in:

  1. Retrieves all records in RSREFR with RECTYPE = REPORT which contains atleast one occurrence of the field name REPT.KEY.

  2. Retrieves all records in RSREFR with RECTYPE = REPORT which contains no occurrence of the field name REPT.KEY

  3. Retrieves all records in RSREFR with RECTYPE = REPORT

  4. None of the above


Correct Option: A

In the following which is not a pattern matching character?

  1. #

  2. !

  3. ^

  4. @


Correct Option: C

The purpose of the REMEMBER statement is to

  1. Store the processing position in a FOR loop.

  2. Store the processing position in a IF loop.

  3. Store the processing information in a FOR loop.

  4. )Remembers your User ID


Correct Option: A

BY EACH phrase in the SORT RECORDS statement

  1. Loops through all occurrences of a field

  2. Loops through the occurrences of a field except the First and the Last Field

  3. PLACE RECORDS ON label ON [LIST] listname

  4. Loops through none of the Occurences of a fiel


Correct Option: A

A: IN RSREFR FPC RECTYPE = REPORT END FIND Here “A” is a

  1. Variable

  2. label

  3. statement

  4. function


Correct Option: B
+ View questions