0

programming languages Online Quiz - 133

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

Which of the following cannot be used as a modifier for instance variables while defining a class?

  1. Synchronized

  2. Native

  3. Strictfp

  4. All of these


Correct Option: D
  1. 100

  2. Run time Exception. A final object cannot be changed

  3. Compilation Error. A final object cannot be changed

  4. Compilation Error: There cannot be any final objects in a method


Correct Option: A

What is the output of the program?

  1. Compilation fails

  2. 100

  3. RunTime Exception

  4. 0


Correct Option: A

What is the output of the program?

  1. Blue

  2. 2

  3. Runtime Exception

  4. Compilation Error


Correct Option: D

can versioning concept applicable to Private assemblies?

  1. True

  2. False


Correct Option: B

Does XML replace HTML?

  1. True

  2. False


Correct Option: B
  1. Domain

  2. Documentation

  3. Data Models

  4. Dynpro


Correct Option: A

Data element is an example of

  1. Physical definitions

  2. Business object

  3. Semantic Domain

  4. Technical Domain


Correct Option: C

Which data type cannot be used to define parameters

  1. Type N

  2. Type C

  3. Type F

  4. Type P


Correct Option: C

What is the system field for the current date?

  1. SY-DATUM

  2. SY-DATID

  3. SY-DATE

  4. SY-SDATE


Correct Option: A

Which of the following describe the internal representation of a type D data?

  1. DDMMYYYY

  2. YYYYDDMM

  3. MMDDYYYY

  4. YYYYMMDD


Correct Option: D
  1. a structure

  2. invalid

  3. client-independent

  4. not mandatory


Correct Option: C

Within the source code of a function module errors are handled via the keyword.

  1. Exception

  2. Raise

  3. Stop

  4. Abend


Correct Option: A

Which dictionary structure contains system fields?

  1. SYSTEM

  2. SYST

  3. SYS

  4. SYTAB

  5. SY


Correct Option: B

Class C { public static void main(String[] args) { int[]a1[]=new int[3][3]; //3 int a2[4]={3,4,5,6}; //4 int a2[5]; //5 }} What is the result of attempting to compile and run the program ?.

  1. compiletime error at lines

  2. compiltime error at line 4,5

  3. compiletime error at line 3

  4. Runtime Exception

  5. None of the above


Correct Option: B
  1. compiletime error at lines 1,2,3,4

  2. compiletime error at line 3

  3. compiletime error at line 1

  4. compiletime error at lines 3,4

  5. None of the above


Correct Option: D

class C{ int i; public static void main (String[] args) { int i; //1 private int a = 1; //2 protected int b = 1; //3 public int c = 1; //4 System.out.println(a+b+c); //5 }}

  1. compiletime error at lines 1,2,3,4,5

  2. compiletime error at lines 2,3,4,5

  3. compiletime error at lines 2,3,4

  4. prints 3

  5. None of the above


Correct Option: B
- Hide questions