0

programming languages Online Quiz - 30

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

A single type can not define multiple generic-type parameters.

  1. True

  2. False


Correct Option: B

You can not use generics in structs.

  1. True

  2. False


Correct Option: B

INDEX NAME MUST BE UNIQUE ?

  1. True

  2. False


Correct Option: A

INDEXES CAN NOT BE MANIPULATED BY PERFORM/SET/SEARCH STATEMENTS ?

  1. True

  2. False


Correct Option: B

A SEARCH STATEMENT AUTOMATICALLY INITIALIZE THE INDEX AT 1 ?

  1. True

  2. False


Correct Option: B

INSPECT VERB IS USED TO REPLACE THE OCCURANCES OF SINGLE OR GROUP OF CHARACTERS IN DATA FIELD ?

  1. True

  2. False


Correct Option: A

AI Explanation

To answer this question, we need to understand the purpose of the INSPECT verb in programming.

The INSPECT verb is used in some programming languages, such as COBOL, to manipulate data fields. It allows you to search for specific characters or character groups within a data field and replace them with other characters.

Therefore, the statement "INSPECT verb is used to replace the occurrences of single or group of characters in a data field" is true.

The correct answer is A) True.

"OVERFLOW" AND "NOT ON OVERFLOW" OPTIONS CAN BE USED WITH COBOL STRING VERB?

  1. True

  2. False


Correct Option: A

The String moves data from Left to Right just like alphanumeric fields are moved ?

  1. True

  2. False


Correct Option: A

What is the Transaction code for Menu painter?

  1. SE51

  2. SE41

  3. SE38

  4. SE37


Correct Option: B

If a table does not have MANDT as part of the primary key,then it is considered as

  1. A structure

  2. Client Independent

  3. Invalid

  4. Client Dependent


Correct Option: B

AI Explanation

To answer this question, we need to understand the concept of primary keys and client dependency in database tables.

A primary key is a column or a set of columns in a table that uniquely identifies each row. It ensures that each row in the table is uniquely identifiable. The MANDT column is typically used as the primary key in SAP tables to identify the client.

In the given question, if a table does not have MANDT as part of the primary key, it means that it is not dependent on the client. This implies that the table is client independent.

Let's go through each option to understand why it is correct or incorrect:

Option A) A structure - This option is incorrect because a structure is a data type that does not have primary keys or dependencies.

Option B) Client Independent - This option is correct because if a table does not have MANDT as part of the primary key, it means that it is not dependent on the client. Hence, it is considered as client independent.

Option C) Invalid - This option is incorrect because the absence of MANDT as part of the primary key does not make the table invalid. It only indicates that the table is not dependent on the client.

Option D) Client Dependent - This option is incorrect because if a table does not have MANDT as part of the primary key, it means that it is not dependent on the client. Hence, it is considered as client independent.

The correct answer is B) Client Independent. This option is correct because if a table does not have MANDT as part of the primary key, it means that it is not dependent on the client.

In regard to CALL, which of the following is NOT a valid statement?

  1. CALL FUNCTION

  2. CALL SCREEN

  3. CALL TRANSACTION

  4. CALL PROGRAM


Correct Option: D
Explanation:

To understand this question, the user needs to know about CALL statements in programming. CALL statements are used to call other programs or functions within a program.

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

A. CALL FUNCTION: This is a valid statement in programming. It is used to call a specific function within a program.

B. CALL SCREEN: This is also a valid statement in programming. It is used to call a specific screen within a program.

C. CALL TRANSACTION: This is a valid statement in programming. It is used to call a specific transaction within a program.

D. CALL PROGRAM: This is NOT a valid statement in programming. The correct statement is CALL FUNCTION, which is used to call a specific function within a program.

Therefore, the answer is: D

Mapping of 1:1 relationship to database table is a

  1. Transparent

  2. View

  3. Cluster

  4. Pooled


Correct Option: A

AI Explanation

To answer this question, we need to understand the concept of mapping a 1:1 relationship to a database table.

Option A) Transparent - This option is correct because when we map a 1:1 relationship to a database table, it is done in a way that is transparent to the user. This means that the relationship is represented in a straightforward and easily understandable manner, without any additional complexity or confusion.

Option B) View - This option is incorrect because a view in a database is a virtual table that is derived from the data stored in one or more tables. It is not specifically related to mapping a 1:1 relationship.

Option C) Cluster - This option is incorrect because clustering in a database refers to the physical arrangement of data on disk to optimize data retrieval. It is not directly related to mapping a 1:1 relationship.

Option D) Pooled - This option is incorrect because pooling in a database refers to the concept of reusing resources (such as database connections) to improve performance. It is not directly related to mapping a 1:1 relationship.

The correct answer is A) Transparent. This option is correct because mapping a 1:1 relationship to a database table is done in a way that is transparent and easily understandable to the user.

What is the system field for the current date?

  1. SY-SDATE

  2. SY-DATE

  3. SY-DATUM

  4. SY-DATID


Correct Option: C

The SAP service that ensures data integrity by handling locking is called

  1. Enqueue/Dequeue

  2. Spool

  3. Update

  4. Dialog


Correct Option: A

AI Explanation

To answer this question, you need to understand the concept of data integrity and locking in the context of SAP.

The SAP service that ensures data integrity by handling locking is called Enqueue/Dequeue.

Option A) Enqueue/Dequeue - This option is correct. The Enqueue/Dequeue service in SAP is responsible for handling locking mechanisms to ensure data integrity. It manages the locking of resources, such as database entries or shared memory objects, to prevent conflicts and maintain consistency.

Option B) Spool - This option is incorrect. The Spool service in SAP is responsible for managing the output of reports and printing jobs.

Option C) Update - This option is incorrect. The Update service in SAP is responsible for managing the updating of database records.

Option D) Dialog - This option is incorrect. The Dialog service in SAP is responsible for managing the interaction between the user and the SAP system.

The correct answer is A) Enqueue/Dequeue. This option is correct because it accurately identifies the SAP service that ensures data integrity by handling locking.

To read a single line of an internal table, use the following:

  1. LOOP AT itab. _ ENDLOOP.

  2. SELECT SINGLE * FROM itab.

  3. READ itab.

  4. READ TABLE itab.


Correct Option: D

Which keyword adds rows to an internal table while accumulating numeric values?

  1. INSERT

  2. APPEND

  3. COLLECT

  4. GROUP


Correct Option: C

AI Explanation

To answer this question, you need to understand how internal tables work in the context of accumulating numeric values.

Option A) INSERT - This option is incorrect because the INSERT keyword is used to insert a new entry into an internal table, but it does not accumulate numeric values.

Option B) APPEND - This option is incorrect because the APPEND keyword is used to add a new entry to the end of an internal table, but it does not accumulate numeric values.

Option C) COLLECT - This option is correct because the COLLECT keyword is used to add rows to an internal table while accumulating numeric values. It performs a summation of numeric fields in the internal table based on specified key fields.

Option D) GROUP - This option is incorrect because the GROUP keyword is not used to add rows to an internal table or accumulate numeric values. It is used to group data in an internal table based on specified key fields.

The correct answer is C) COLLECT. This option is correct because it accurately describes the keyword used to add rows to an internal table while accumulating numeric values.

When creating a transparent table in the ABAP Dictionary, which step automatically creates the table in the underlying database?

  1. Adding technical settings to the table

  2. Checking the table syntax

  3. Saving the table

  4. Activating the table


Correct Option: D

AI Explanation

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

Option A) Adding technical settings to the table - This option is incorrect because adding technical settings to the table is a step that defines the structure and attributes of the table but does not automatically create the table in the underlying database.

Option B) Checking the table syntax - This option is incorrect because checking the table syntax is a validation step to ensure that the table definition is correct, but it does not automatically create the table in the underlying database.

Option C) Saving the table - This option is incorrect because saving the table is a step to store the table definition in the ABAP Dictionary, but it does not automatically create the table in the underlying database.

Option D) Activating the table - This option is correct because activating the table is the step that automatically creates the table in the underlying database. When you activate the table in the ABAP Dictionary, it generates the necessary database-specific SQL statements to create the table in the database.

The correct answer is D) Activating the table. This option is correct because activating the table is the step that automatically creates the table in the underlying database.

Which of the following describes the internal representation of a type D data object?

  1. YYYYMMDD

  2. MMDDYYYY

  3. YYYYDDMM

  4. DDMMYYYY


Correct Option: A

AI Explanation

To answer this question, we need to understand the different formats used to represent dates.

Option A) YYYYMMDD - This option is the correct answer. It represents the date in the format of year (YYYY), followed by the month (MM), and then the day (DD). This format is commonly used in computer systems to represent dates.

Option B) MMDDYYYY - This option represents the date in the format of month (MM), followed by the day (DD), and then the year (YYYY). This format is commonly used in the United States but is not the correct internal representation for a type D data object.

Option C) YYYYDDMM - This option represents the date in the format of year (YYYY), followed by the day (DD), and then the month (MM). This format is not the correct internal representation for a type D data object.

Option D) DDMMYYYY - This option represents the date in the format of day (DD), followed by the month (MM), and then the year (YYYY). This format is commonly used in some countries but is not the correct internal representation for a type D data object.

The correct answer is Option A) YYYYMMDD. This option is correct because it represents the date in the correct format for a type D data object, with the year, month, and day arranged in the order of year, month, and day.

What is the length of identifiers in java?

  1. 8 characters

  2. 128 characters

  3. 255 characters

  4. Any length


Correct Option: A,B,C,D
- Hide questions