0

programming languages Online Quiz - 130

Description: programming languages Online Quiz - 130
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  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


Correct Option: B
  1. Screen painter

  2. ABAP report

  3. Menu painter status

  4. ABAP Dictionary


Correct Option: C
Explanation:

To solve this question, the user needs to be familiar with SAP programming and the different components of SAP GUI.

The AT USER-COMMAND event is used in SAP programming to handle user input for custom toolbar buttons. When a user clicks on a custom toolbar button, the AT USER-COMMAND event is triggered, and the corresponding function code is executed.

Now, let's go through each option and explain why it is right or wrong:

A. Screen painter: This option is incorrect because the screen painter is used to design the layout and appearance of SAP GUI screens. It does not define the functions that are executed when a user clicks on a custom toolbar button.

B. ABAP report: This option is incorrect because ABAP reports are used to generate reports or lists of data in SAP. They do not define the functions that are executed when a user clicks on a custom toolbar button.

C. Menu painter status: This option is incorrect because the menu painter is used to design the menus and menu bars in SAP GUI screens. It does not define the functions that are executed when a user clicks on a custom toolbar button.

D. ABAP Dictionary: This option is incorrect because the ABAP Dictionary is used to define and manage database objects in SAP. It does not define the functions that are executed when a user clicks on a custom toolbar button.

Therefore, the correct answer is option C. The functions that are executed when a user clicks on a custom toolbar button are defined in the Menu painter status.

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


Correct Option: B
  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


Correct Option: A

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

  1. True

  2. False


Correct Option: B

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

  1. True

  2. False


Correct Option: B

this keyword can't be assigned null value

  1. True

  2. False


Correct Option: A

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


Correct Option: A

AI Explanation

To answer this question, you need to understand the characteristics of PHP.

Option A) Open source general purpose - This option is correct because PHP is an open-source general-purpose scripting language. It is widely used for web development and can be embedded into HTML.

Option B) Proprietary general purpose - This option is incorrect because PHP is not a proprietary language. It is freely available and open-source.

Option C) Open source special purpose - This option is incorrect because PHP is not a special-purpose language. It is a general-purpose language that can be used for various purposes, with web development being one of its primary uses.

Option D) Proprietary special purpose - This option is incorrect because PHP is not a proprietary language, and it is not a special-purpose language.

The correct answer is A) Open source general purpose. This option is correct because PHP is an open-source scripting language that is widely used for web development and can be embedded into HTML.

mysql_connect( ) does not take following parameter

  1. password

  2. user ID

  3. database name

  4. database host


Correct Option: C

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

  1. Get

  2. Post

  3. Both

  4. None


Correct Option: A

AI Explanation

To answer this question, you need to understand the difference between the GET and POST methods in web development.

Option A) Get - This option is correct because the GET method is used to send input to a script via a URL. When using the GET method, the data is appended to the URL as query parameters. This method is commonly used for retrieving data or requesting information from a server.

Option B) Post - This option is incorrect because the POST method is used to send data to the server as part of the request body, rather than appending it to the URL. The POST method is commonly used for submitting data to a server, such as when submitting a form.

Option C) Both - This option is incorrect because although both the GET and POST methods can be used to send input to a script, the question specifically asks for the method that sends input via a URL, which is the GET method.

Option D) None - This option is incorrect because the GET method does send input to a script via a URL, as explained above.

The correct answer is Option A) Get. This option is correct because the GET method is used to send input to a script via a URL.

- Hide questions