Technology Questions

Q:

.What are Stacks? Give an example where they are useful.

Answer

A Stack is a linear structure in which insertions and deletions are always made at one end i.e the top - this is termed as last in, first out (LIFO). Stacks are useful when we need to check some syntex errors like missing parentheses. 

Report Error

View answer Workspace Report Error Discuss

Subject: C++

0 3629
Q:

Differentiate between realloc() and free().

Answer

- Free() - A block of memory previously allocated by the malloc subroutine is freed by free subroutine. Undefined results come out if the Pointer parameter is not a valid pointer. If the Pointer parameter is a null value, no action will take place.


- Realloc() - This subroutine changes the size of the block of memory pointed to by the Pointer parameter to the number of bytes specified by the Size parameter and returns a new pointer to the block. The pointer specified by the Pointer parameter must be created with the malloc, calloc, or realloc subroutines and should not be deallocated with the free or realloc subroutines. Undefined results show up if the Pointer parameter is not a valid pointer.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

0 3626
Q:

What are virtual functions?

Answer

Polymorphism is also achieved in C++ using virtual functions. If a function with same name exists in base as well as parent class, then the pointer to the base class would call the functions associated only with the base class. However, if the function is made virtual and the base pointer is initialized with the address of the derived class, then the function in the child class would be called.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

1 3621
Q:

Which among the following is used to send data from one page to another with the URL but you can send limited size of data with the URL

A) Cookies B) View state
C) Querystring D) None
 
Answer & Explanation Answer: C) Querystring

Explanation:

Querystring is used to send data from one page to another with URL.But it can store only some minimum amount of data.Most browsers allow a limit of 255 characters on URL length

Report Error

View Answer Report Error Discuss

Filed Under: .NET
Job Role: Software Architect

0 3600
Q:

What is ALV programming in ABAP? When is this grid used in ABAP?

Answer

ALV is Application List viewer. Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length. In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output. The report output can contain up to 90 columns in the display with the wide array of display options.

Report Error

View answer Workspace Report Error Discuss

Subject: ABAP

2 3598
Q:

Explain how to handle exceptional conditions in CICS?

Answer

An abnormal situation during execution of a CICS command is called an exceptional condition:


1. Handle Condition Command: It is used to transfer control to the procedure label specified if the exceptional condition specified occurs.


2. Ignore Condition Command: It causes no action to be taken if the condition specified occurs in the program. That is control will be returned to the next instruction following the command which encountered the exceptional condition.


3. No Handle Option: This option can be specified in any CICS command and it will cause no action to be taken for any exceptional condition occurring during execution of this command.


4. RESP Option: This option can be specified in any CICS command. If the RESP option is specified in a command, CICS places a response code at a completion of the command. The application program can check this code, then proceed to the next processing.

Report Error

View answer Workspace Report Error Discuss

0 3590
Q:

Embedded SQL is which of the following?

A) The process of making an application capable of generating specific SQL code on the fly. B) Hard-coded SQL statements in a trigger.
C) Hard-coded SQL statements in a program language such as Java. D) Hard-coded SQL statements in a procedure.
 
Answer & Explanation Answer: C) Hard-coded SQL statements in a program language such as Java.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: SQL
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

2 3581
Q:

Which of the following is a function of inventory?

A) to take advantage of quantity discounts B) to decouple various parts of the production process
C) to provide a selection of goods for anticipated customer demand and to separate the firm from fluctuations in that demand D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

All the above given statements are functions of Inventory.

 

Inventory or stock is the goods and materials that a business holds for the ultimate goal of resale. Inventory management is a discipline primarily about specifying the shape and placement of stocked goods.


The primary function of inventory is to use marketing and production to increase profitability, to get the maximum amount for the business' investment. There are other functions of inventory, such as balancing supply and demand, improving efficiency, establishing a safety stock and geographical specialization.

Report Error

View Answer Report Error Discuss

Filed Under: Business Intelligence
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 3576