0

programming languages Online Quiz - 12

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

This is script language and interpreter that is freely available and used primarily on Linux we server as and alternative to Microsoft ASP.

  1. Python

  2. PHP

  3. JavaScript

  4. ActionScript


Correct Option: B

which one of the keyword cannot be used with instance variables?

  1. transient

  2. synchronized

  3. volatile

  4. abstract


Correct Option: B,D

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) transient - This option is incorrect because the "transient" keyword can be used with instance variables. It is used to indicate that a variable should not be serialized when an object is being converted to a byte stream.

Option B) synchronized - This option is correct because the "synchronized" keyword cannot be used with instance variables. It is used to provide mutual exclusion and synchronization between multiple threads, but it can only be used with methods or code blocks.

Option C) volatile - This option is incorrect because the "volatile" keyword can be used with instance variables. It is used to indicate that a variable may be modified by multiple threads and to ensure that the most up-to-date value of the variable is always read.

Option D) abstract - This option is correct because the "abstract" keyword cannot be used with instance variables. It is used to declare abstract classes or methods, but it is not applicable to variables.

The correct answer is B, D. The "synchronized" and "abstract" keywords cannot be used with instance variables.

  1. class someclass extends mainclass

  2. protected class someclass extends mainclass

  3. public class someclass extends mainclass

  4. private class someclass extends mainclass


Correct Option: C

This is script language and interpreter that is freely available and used primarily on Linux web server as and alternative to Microsoft ASP.

  1. Python

  2. PHP

  3. JavaScript

  4. ActionScript


Correct Option: B
  1. class someclass extends mainclass

  2. protected class someclass extends mainclass

  3. public class someclass extends mainclass

  4. private class someclass extends mainclass


Correct Option: C

Which one of the keyword cannot be used with instance variables?

  1. transient

  2. synchronized

  3. volatile

  4. abstract


Correct Option: B,D

AI Explanation

To answer this question, we need to understand the purpose and usage of each keyword in the context of instance variables.

A. transient - The transient keyword is used to indicate that a variable should not be serialized when an object is converted into a stream of bytes. This keyword can be used with instance variables.

B. synchronized - The synchronized keyword is used to provide mutual exclusion and ensure thread safety. It is used to control access to shared resources in a multi-threaded environment. This keyword can be used with instance variables.

C. volatile - The volatile keyword is used to indicate that a variable may be modified by multiple threads. It ensures that the variable is always read from and written to the main memory, rather than being cached by individual threads. This keyword can be used with instance variables.

D. abstract - The abstract keyword is used to declare a class or a method as abstract. An abstract class cannot be instantiated, and an abstract method does not have a body and must be implemented by the concrete subclasses. This keyword is not directly related to instance variables and hence, it can be used with them.

Based on the above explanations, the correct answer is B and D. The synchronized and abstract keywords can be used with instance variables, while the transient keyword cannot be used with instance variables.

T-code to reduce an IDoc ?

  1. WE30

  2. WE31

  3. BD53

  4. BD64


Correct Option: C

Which FM is used for dynamic selection screens

  1. DYNAMIC_SEARCH_PARTNER

  2. FREE_SELECTIONS_INIT

  3. DYNAMICALLY_CREATE_ML_DATA

  4. DYNAMIC_MENUE


Correct Option: B

GETCURSOR is used to trace the data on double click of a field in the list

  1. True

  2. False


Correct Option: A

T-code for enhancement in SAP

  1. CMOD

  2. SMOD

  3. SM35

  4. SPROXY


Correct Option: A

"PACKAGE SIZE" addition is used to read selected lines of database table into an internal table in packages of predefined size.

  1. True

  2. False


Correct Option: A

"AUTHORITY_CHECK_OLE" function module would you used to check the user's authorization to access files before opening a file?

  1. True

  2. False


Correct Option: B

Name the function module used to convert logical file names to physical file names in ABAP/4 programs.

  1. FILE_GET_NAME

  2. FILE_READ_AND_GET_TAB

  3. LOGICAL_SYSTEM_GET_TEXT

  4. FKK_CHECK_PHYSICAL_VIEW


Correct Option: A

In subroutines internal tables that are passed by TABLES, are always called by value and result

  1. True

  2. False


Correct Option: B

sap scripts are Client dependent?

  1. True

  2. False


Correct Option: A

The AT-SELECTION-SCREEN event is triggered when

  1. ENTER key is hit on the selection-screen

  2. F8 key is hit on the selection-screen

  3. Any field on selection-screen is populated

  4. F4 key is hit on the selection-screen


Correct Option: B,C

Following Macro lists out the Process Identification Number (PID)

  1. SYSMAXLONG

  2. SYSDEVIC

  3. SYSENV

  4. SYSJOBID


Correct Option: D

Following is the extension of the sas bakup file

  1. sas7svew

  2. sas7bods

  3. sas7sbak

  4. sas7bitm


Correct Option: C

which of the following is the valid format?

  1. TIMEDATEAMPM9

  2. DATEDTMONYY7

  3. WORDDATX3

  4. YYMONDATE6


Correct Option: C

how many times of line pointer controls?

  1. 4

  2. 2

  3. 3

  4. 1


Correct Option: B
- Hide questions