PHP, Java, and ABAP Programming Quiz

Questions covering PHP web development, Java threading and collections, and ABAP programming fundamentals

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Assuming a pushbutton with function code 'FUNC' is available in the toolbar of a list report, what event is processed when the button is clicked?

  1. AT USER-COMMAND
  2. AT PFn
  3. AT SELECTION-SCREEN
  4. END-OF-SELECTION
Question 2 Multiple Choice (Single Answer)

The complete technical definition of a table field is determined by the field's:

  1. Domain
  2. Field name
  3. Data type
  4. Data element
Question 3 Multiple Choice (Single Answer)

The ABAP statement below indicates that the program should continue with the next line of code if the internal table itab:CHECK NOT itab[] IS INITIAL.

  1. Contains no rows
  2. Contains at least one row
  3. Has a header line
  4. Has an empty header line
Question 4 Multiple Choice (Single Answer)

n regard to SET PF-STATUS, you can deactivate unwanted function codes by using ____.

  1. EXCLUDING
  2. IMMEDIATELY
  3. WITHOUT
  4. HIDE
Question 5 Multiple Choice (Single Answer)

What happens if message E046 is raised? At Selection-Screen on sales. If sales-low < 500. Message E046. Endif.

  1. The initialization event is fired again
  2. Field Sales is open for input and all other fields are not available for input
  3. All fields are open for input and cursor is positioned on field sales
  4. The program ends
Question 6 Multiple Choice (Single Answer)

Which of the following is not a component of control break processing when looping at an internal table?

  1. AT START OF
  2. AT FIRST
  3. AT LAST
  4. AT NEW
Question 7 Multiple Choice (Single Answer)

The AT USER-COMMAND event is triggered by functions defined in the ____.

  1. Screen painter
  2. ABAP report
  3. Menu painter status
  4. ABAP Dictionary
Question 8 Multiple Choice (Single Answer)

PERFORM subroutine USING var. The var field is known as what type of parameter?

  1. Formal
  2. Actual
  3. Static
  4. Value
Question 9 Multiple Choice (Single Answer)

What is true of passing by value and result in the following code? More than one answer is correct. Perform calculate_sales using amount. FORM calculate_sales changing value(f_amount) a) Formal Parameter f_amount is allocated it’s own memory space b) The address of the actual parameter is passed to the formal parameter c) Formal parameter is copied to memory space of actual parameter at the end of the form d) Formal parameter is not copied to memory space of actual parameter

  1. a&b
  2. a&c
  3. b&c
  4. b&d
Question 10 Multiple Choice (Single Answer)

After a DESCRIBE TABLE statement SY-TFILL will contain

  1. The number of rows in the internal table
  2. The current OCCURS value
  3. Zero, if the table contains one or more rows
  4. The length of the internal table row structure
Question 11 True/False

ArrayList is thread-safe whereas Vector is not thread-safe.

  1. True
  2. False
Question 12 True/False

HashMap permits null values and only one null key.

  1. True
  2. False
Question 13 True/False

IOException is a type of checked exception.

  1. True
  2. False
Question 14 True/False

Immutable objects are automatically thread-safe.

  1. True
  2. False
Question 15 True/False

An object becomes eligible for Garbage Collection when there are very few threads that can access it.

  1. True
  2. False
Question 16 True/False

There is only one way to create threads i.e. Implement the Runnable interface

  1. True
  2. False
Question 17 True/False

this keyword can't be assigned null value

  1. True
  2. False
Question 18 Multiple Choice (Single Answer)

PHP is a widely used ……………. scripting language that is especially suited for web development and can be embedded into html

  1. Open source general purpose
  2. Proprietary general purpose
  3. Open source special purpose
  4. Proprietary special purpose
Question 19 Multiple Choice (Single Answer)

mysql_connect( ) does not take following parameter

  1. password
  2. user ID
  3. database name
  4. database host
Question 20 Multiple Choice (Single Answer)

Which of the following method sends input to a script via a URL?

  1. Get
  2. Post
  3. Both
  4. None