0
Alien head

programming languages Online Quiz - 248

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

Which of the following collection classes from java.util package are Thread safe?

  1. Vector

  2. HashMap

  3. ArrayList

  4. Hashtable


Correct Option: A,D

What is the legal range of a byte integral type?

  1. 0 - 65, 535

  2. (-128) - 127

  3. (-32,768) - 32,767

  4. (-256) - 255


Correct Option: B

A program written in the Java programming language can run on any platform because...

  1. Java programming is derived from C++.

  2. The Java Virtual Machine1(JVM) interprets the program for the native operating system.

  3. The compiler is identical to a C++ compiler.

  4. The APIs do all the work.


Correct Option: B

float fl = 1.2;

  1. True

  2. False


Correct Option: B

If you add int wit a byte , what will be the result?

  1. Int

  2. Byte

  3. Float

  4. None of the above


Correct Option: A

Which of the following uses the same number of bits as the double primitive variable?

  1. int

  2. byte

  3. float

  4. long


Correct Option: D

The class AssertionError has "is - a" relationship with which of these classes:

  1. RuntimeException

  2. Error

  3. VirtualMachineError

  4. IllegalAccessException


Correct Option: B

What will be the result of executing the following code? 1. boolean a = true; 2. boolean b = false; 3. boolean c = true; 4. if (a == true) 5. if (b == true) 6. if (c == true) System.out.println("Some things are true in this world"); 7. else System.out.println("Nothing is true in this world!"); 8. else if (a && (b = c)) System.out.println("It's too confusing to tell"); 9. else System.out.println("Hey this won't compile");

  1. The code won't compile

  2. Some things are true in this world

  3. Hey this won't compile

  4. none of the above


Correct Option: D

What results from attempting to compile and run the following code? public class Ternary{ public static void main(String args[]){ int a = 5; System.out.println("Value is - " + ((a < 5) ? 9.9 : 9)); } }

  1. 9.9

  2. 9

  3. 9.0

  4. None of the above


Correct Option: C

consider the following classes. Class A, Class B extends A, Class C extends B. if we instantiate an object, which order the constructor of the above classes get executed?

  1. A,C,B

  2. C,B,A

  3. A,B,C

  4. none of the above


Correct Option: C

Automatic conversion between the primitives and the object wrapper class is called

  1. Autounboxing

  2. Autoboxing

  3. polymorphism

  4. encapsulation


Correct Option: B

Which access modifier allows to access only within the package?

  1. public

  2. private

  3. default(no access modifier)

  4. protected


Correct Option: C

In Java, static means

  1. one per method

  2. one per object

  3. one per class

  4. one per package


Correct Option: C

consider the following classes.(class A,class B,class C) which comes under multilevel inheritance?

  1. class A,class B extends A,class C extends B

  2. class A implements B,implements C

  3. class A extends B,extends C

  4. none of the above


Correct Option: A

String buffer objects are mutable.

  1. True

  2. False


Correct Option: A

What are the differences between SAP memory and ABAP memory?

  1. SAP Memory is a memory area in the internal session (roll area) of an ABAP program. Data within this area is retained within a sequence of program calls, allowing you to pass data between programs that call one another. It is also possible to pass data be

  2. ABAP Memory is a memory area to which all sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session (as with ABAP memory) or to pass data from one session to another.

  3. ABAP Memory is a memory area in the internal session (roll area) of an ABAP program. Data within this area is retained within a sequence of program calls, allowing you to pass data between programs that call one another. It is also possible to pass data b

  4. SAP Memory is a memory area to which all sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session (as with ABAP memory) or to pass data from one session to another.


Correct Option: C,D

What is the difference between GUI_UPLOAD and WS_UPLOAD?

  1. WS_UPLOAD - File transfer with dialog from presentation server file to internal table. Data which is available in a file on the presentation server is transferred in an internal table. ASCII & Binary files can be transferred.

  2. GUI_UPLOAD - To read data from the presentation server into an internal table without a user dialog, use the function module WS_UPLOAD. The most important parameters are listed below.

  3. GUI_UPLOAD - File transfer with dialog from presentation server file to internal table. Data which is available in a file on the presentation server is transferred in an internal table. ASCII & Binary files can be transferred.

  4. WS_UPLOAD - To read data from the presentation server into an internal table without a user dialog, use the function module WS_UPLOAD. The most important parameters are listed below.


Correct Option: C,D

What is the difference between Synchronous and Asynchronous updates?

  1. In synchronous processing, the program waits: control returns to the program only when the task has been completed.

  2. In asynchronous processing, the program does not wait: the system returns control after merely logging the request for execution.

  3. In asynchronous processing, the program waits: control returns to the program only when the task has been completed.

  4. In synchronous processing, the program does not wait: the system returns control after merely logging the request for execution.


Correct Option: A,B

What are presentation and application servers in SAP?

  1. Application server is actually a program named Sapgui.exe. It is usually installed On a user’s workstation.

  2. Application server is a set of executables that collectively interpret the ABAP/4 Programs and manage the input & output for them.

  3. Presentation server is actually a program named Sapgui.exe. It is usually installed On a user’s workstation.

  4. Presentation server is a set of executables that collectively interpret the ABAP/4 Programs and manage the input & output for them.


Correct Option: B,C

What are the check tables and value tables?

  1. Check table will be at field level checking.

  2. Value table will be at domain level checking

  3. Value table will be at field level checking

  4. Check table will be at domain level checking.


Correct Option: A,B
+ View questions