0

programming languages Online Quiz - 228

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

A: FIND ALL RECORDS FOR WHICH FULLNAME IS LIKE J+++S END FIND FR A PRINT FULL NAME END FOR What will be the output?

  1. Jacks, Janus

  2. Jaxons , Jonnes

  3. Jacckys , Jefers

  4. Jamuna, Jackson


Correct Option: A

What is the syntax for PLACE RECORDS statement?

  1. PLACE RECORDS IN label IN [LIST] listname

  2. PLACE RECORDS IN label ON [LIST] listname

  3. PLACE RECORDS ON label ON [LIST] listname

  4. PLACE RECORDS ON label IN [LIST] listname


Correct Option: B

What can be the maximum length of a listname and what is it made up of?

  1. 16 ; alphanumeric

  2. 16 ; alphabetic

  3. 255 ; alphanumeric

  4. 255 ; alphabetic


Correct Option: C

Which among the following is the correct syntax for CLEAR LIST?

  1. CLEAR LIST IN listname

  2. CLEAR LIST listname

  3. CLEAR LIST ON listname

  4. CLEAR listname


Correct Option: B

The ADD statement is used to add the new field value to the record only inside the FOR EACH RECORD loop statement.

  1. True

  2. False


Correct Option: A

The specified field name and the value is added to the record if not mentioned in which of the following statements?

  1. CHANGE statement

  2. UPDATE statement

  3. DELETE statement

  4. ADD statement


Correct Option: A

Which statement is necessary when using lists with FIND statements?

  1. FOR EACH

  2. FOR WHICH

  3. FOR EACH RECORD IN LOOP

  4. None of the above


Correct Option: B

A collection of records on a list can be referred by entering which statement as a condition in the FIND statement?

  1. LIST$

  2. LIST listname

  3. Listname

  4. None of the above


Correct Option: A

What is the result of the mixed fixed and float operation ?

  1. Fixed

  2. Float

  3. String

  4. decimal


Correct Option: A

What will be the value of %a in the expression %a = emp_num ?

  1. emp_num

  2. value of emp_num

  3. none

  4. null


Correct Option: B

The DELETE [ALL] RECORDS statement is used to delete all the records from which of the following?

  1. a) LIST

  2. b) label

  3. c) Both a & b

  4. d) None of the above


Correct Option: C

Which of the following statements are not supported in the UPDATE RECORD statement?

  1. DELETE statement

  2. CHANGE statement

  3. DELETE EACH statement

  4. Both a & c


Correct Option: C

If no updates are found between UPDATE RECORD and END UPDATE, the program abends.

  1. True

  2. False


Correct Option: A

The store record statement should not end with which of the following?

  1. END STORE

  2. END LABEL

  3. END BLOCK

  4. END UPDATE


Correct Option: C

What is the maximum length of a string character ?

  1. 256

  2. 245

  3. 265

  4. 255


Correct Option: D

For the given program what is the value of X ? BEGIN %X IS FIXED DP 0 %X = 1.9 PRINT ’%X = ’ WITH %X END

  1. 1

  2. 2

  3. 0

  4. Undetermined


Correct Option: A

Which operator is used for concatenation ?

  1. Concat

  2. And

  3. With

  4. Append


Correct Option: C

How is a filed name indicated ?

  1. a) %fieldname

  2. b) %%fieldname

  3. c) both a and b

  4. d) None


Correct Option: B

$INDEX('OTHER' , 'THE') equals

  1. 4

  2. 2

  3. 3

  4. 1


Correct Option: B
- Hide questions