Interview Questions

Q:

Difference between system call and API

Answer

A system call is a function.subroutine which interrupts the currently executing program and transfers control to the interrupt routine.The contents of the executing program are saved and after the interrupt routine finishes its function,control is transferred back to the executing program. If we talk in the context of Linux then System calls are called kernel mode.


Whereas API (Application Programming Interface) is a function or a set of functions, objects, protocols or data-structures for the support of application development for developers/programmers. It is actually a kind of function definition which specifies how to make available of a specific service of the system/OS to the other program/process or system. Read more at: https://www.queryhome.com/48442/os-what-is-difference-between-system-call-and-api

Report Error

View answer Workspace Report Error Discuss

2 6155
Q:

What is QUIESCE?

Answer

A QUIESCE flushes all DB2 buffers on to the disk. This gives a correct snapshot of the database and should be used before and after any IMAGECOPY to maintain consistency.

Report Error

View answer Workspace Report Error Discuss

0 6124
Q:

Which of the following is the oldest Joint Stock Bank of India  ?

A) Patiala Bank B) Punjab National Bank
C) Bank of India D) Allahabad Bank
 
Answer & Explanation Answer: D) Allahabad Bank

Explanation:

Oldest Joint Stock bank of India was Bank of Upper India that was established in 1863. But this bank failed in 1913. India's Oldest Joint Stock Bank which is still working is Allahabad Bank. It is also known as India's oldest public sector bank.

Report Error

View Answer Report Error Discuss

Filed Under: Bank Interview
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

2 6116
Q:

What of the following describes protected access specifier?

A) The variable is visible only outside inside the block B) The variable is visible everywhere
C) The variable is visible to its block and to it’s derived class D) None of these
 
Answer & Explanation Answer: C) The variable is visible to its block and to it’s derived class

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: C++

2 6105
Q:

What is the differences between ABAP and OOABAP. In which situation we use OOABAP?

Answer

OOABAP is used to develop BSP/PCUI applications and also anthing involved object oriented like BADIs, SmartForms..etc.where as ABAP is used to develop traditional programs in R/3.

Report Error

View answer Workspace Report Error Discuss

Subject: ABAP

2 6098
Q:

Which is true?

A) "X extends Y" is correct if and only if X is a class and Y is an interface B) "X extends Y" is correct if and only if X is a class and Y is an interface
C) "X extends Y" is correct if X and Y are either both classes or both interfaces D) "X extends Y" is correct for all combinations of X and Y being classes and/or interfaces
 
Answer & Explanation Answer: C) "X extends Y" is correct if X and Y are either both classes or both interfaces

Explanation:

A is incorrect because classes implement interfaces, they don't extend them. B is incorrect because interfaces only "inherit from" other interfaces. D is incorrect based on the preceding rules.

Report Error

View Answer Report Error Discuss

Filed Under: Java

2 6062
Q:

What are the different phases involves in cloud architecture?

Answer

There are four phases that basically gets involved in the cloud architecture:


1. Launch phase: it launches the basic services and makes the system ready for communication and for application building


2. Monitor phase: it monitors the services that is being launched and then manages them so that on demand the user will be able to get what he wants.


3. Shutdown phase: it shutdown the services that are not required first and after all the services gets shutdown, and then it closes the system services. 


4. Cleanup phase: it clean up the left out processes and services that is being either broken or didn’t get shutdown correctly.

Report Error

View answer Workspace Report Error Discuss

Subject: Cloud Computing

1 6037
Q:

What is the difference between $argv and $argc? Give example?

Answer

To pass the information into the script from outside, help can be taken from the PHP CLI (Command line interface) method. Suppose addition of two numbers has to be passed to PHP then it can be passed like this on the command line:


php add.php 2 3


Here the script name is add.php, and 2 and 3 are the numbers that has to be added by the script. These numbers are available inside the script in an array called $argv. This array contains all the information on the command line; the statement is stored as follows:


$argv[0]=add.php


$argv[1]=2


$argv[2]=3


So, $argv always contains at least one element — the script name.


Then, in your script, you can use the following statements:


$sum = $argv[1] + $argv[2];


echo $sum;


$argc is a variable that stores the numbers of elements in $argv. $argc is equal to at least 1, which is saved for the name of the script. Example is $argc=3 using the above statements.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 6031