0

programming languages Online Quiz - 231

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

Class Y is a subclass of Class X.Will this compile? Y myY=new Y(); X myX=myY;

  1. No

  2. Compile Error

  3. Yes

  4. Runtime Error

  5. Not Sure


Correct Option: C

In a Switch construct ,the default statement must be placed after all the case statements.

  1. True

  2. False


Correct Option: B

This is a legal way to create an instance of an inner class: OuterClass.InnerClass x=new OuterClass().InnerClass();

  1. True

  2. False


Correct Option: A

A method with no access modifier can be overridden by a method marked protected.

  1. True

  2. False


Correct Option: A

When an array is constructed,are its elements automatically initialized?

  1. True

  2. False


Correct Option: A

What happens when this is in your code? double x; x=24.0/0;

  1. Compiler Error

  2. Compiles and runs

  3. Runtime Error

  4. None of these


Correct Option: B

Abbreviation for FIND AND PRINT COUNT is

  1. a) FP

  2. b) FPC

  3. c) Both (a) & (b)

  4. d) None of the above


Correct Option: B

Which one of the following terminates the request and returns you to command level

  1. STOP

  2. END

  3. END NORUN

  4. CANCEL


Correct Option: C

A: IN RSREFR FDWOL RECTYPE = REPORT END FIND PLACE RECORDS IN A ON LIST ABC RELEASE RECORDS ON LIST ABC CT: COUNT RECORDS ON LIST ABC PRINT COUNT IN CT What will be the value of count in label CT

  1. Will be the number of records on LIST ABC

  2. Will be equal to the number of records in label A

  3. Zero

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


Correct Option: C

Suppose “AGE” is the field name and you want to get the value of age between 10 and 20, which of the following statement is correct ?

  1. AGE IS BETWEEN 10 AND 20

  2. AGE BETWEEN 10 AND 20

  3. AGE ONLY BETWEEN 10 AND 20

  4. AGE BETWEEN 10 ,20


Correct Option: A

The statement which allows you to add new records to m204 file is:

  1. Store

  2. ADD RECORD

  3. STORE RECORD

  4. INSERT RECORD


Correct Option: C

The statement to add new field value to a record is:

  1. INSERT

  2. ADD

  3. STORE

  4. INSERT INTO


Correct Option: B

You can use global variables to:

  1. Pass information from one request to another request

  2. Include procedures conditionally at the Model 204 command level

  3. Tailor a request dynamically

  4. All the above


Correct Option: D

Functions in the M204 procedure are prefixed with

  1. %

  2. $

  3. ?

  4. #


Correct Option: C

Which function strips the leading and trailing blanks of a string?

  1. $STRIP

  2. $DECODE

  3. $DEBLANK

  4. $EDIT


Correct Option: C

What will be the result of $EDIT(25.734,'99999.99') statement ?

  1. 25.73

  2. 025.73

  3. 0025.73

  4. 00025.73


Correct Option: D

What will be the result of $VNUM(’ -256.73 AB’)statement?

  1. -256.73

  2. 256

  3. 0

  4. 1


Correct Option: C

A: IN RSREFR FDWOL RECTYPE = REPORT END FIND PLACE RECORDS IN A ON LIST ABC CT: COUNT RECORDS ON LIST ABC PRINT COUNT IN CT What will be the value of count in label CT

  1. Will be the number of records on LIST ABC

  2. Will be equal to the number of records in label A

  3. Zero

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


Correct Option: D

Statement which indicates the end of a subroutine is:

  1. END

  2. SUBROUTINE END

  3. END SUBROUTINE

  4. CLOSE SUBROUTINE


Correct Option: C

Which statement indicates the beginning of a subroutine

  1. BEGIN SUBROUTINE

  2. SUBROUTINE

  3. SUBROUTINE BEGIN

  4. START SUBROUTINE


Correct Option: B
- Hide questions