Technical Questions

Q:

What are the typical elements of a process image?

Answer

User data: Modifiable part of user space. May include program data, user stack area, and programs that may be modified.


User program: The instructions to be executed.


System Stack: Each process has one or more LIFO stacks associated with it. Used to store parameters and calling addresses for procedure and system calls.


Process control Block (PCB): Info needed by the OS to control processes.

Report Error

View answer Workspace Report Error Discuss

13 17723
Q:

What will be output when you will execute following c code?

#include <stdio.h>
void main()

{
    signed int a = -1;
    unsigned int b = -1u;
    if(a == b)
         printf( "The Lord of the Rings" );
    else
         printf( "American Beauty" );
}

A) The Lord of the Rings B) American Beauty
C) Compilation error: Cannot compare signed number with unsigned number D) Warning: Illegal operation
 
Answer & Explanation Answer: A) The Lord of the Rings

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Programming

10 17679
Q:

If no multivalued attributes exist and no partial dependencies exist in a relation, then the relation is in what normal form?

A) First normal form B) Second normal form
C) Third normal form D) Fourth normal form
 
Answer & Explanation Answer: B) Second normal form

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

16 17424
Q:

Which of the following is not a static testing technique?

A) Inspections B) Data flow analysis
C) Error guessing D) Walkthrough
 
Answer & Explanation Answer: C) Error guessing

Explanation:

Static Testing, a software testing technique in which the software is tested without executing the code. This Techniques provide a powerful way to improve the quality and productivity of software development by assisting engineers to recognize and fix their own defects early in the software development process.

 

It has two parts as listed below:

Review - Typically used to find and eliminate errors or ambiguities in documents such as requirements, design, test cases, etc.

Static analysis - The code written by developers are analysed (usually by tools) for structural defects that may lead to defects.

 

In this software is tested without executing the code by doing Review, Walk Through, Inspection or Analysis etc.

 

Hence, Error guessing is not a static software testing technique.

Report Error

View Answer Report Error Discuss

6 17278
Q:

 For what purposes are views used?

A) To hide rows only B) To hide columns only
C) To hide complicated SQL statements only D) All of the above are uses for SQL views.
 
Answer & Explanation Answer: D) All of the above are uses for SQL views.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

13 16888
Q:

________ is an open source DBMS product that runs on UNIX, Linux and Windows.

A) MySQL B) JSP/SQL
C) JDBC/SQL D) Sun ACCESS
 
Answer & Explanation Answer: A) MySQL

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

25 16737
Q:

List out some reasons for process termination.

Answer

- Normal completion


- Time limit exceeded


- Memory unavailable


- Bounds violation


- Protection error


- Arithmetic error


- Time overrun


- I/O failure


- Invalid instruction


- Privileged instruction


- Data misuse


- Operator or OS intervention


- Parent termination.

Report Error

View answer Workspace Report Error Discuss

22 16263
Q:

What resources are used when a thread is created? How do they differ from those when a process is created?

Answer

When a thread is created the threads does not require any new resources to execute the thread shares the resources like memory of the process to which they belong to. The benefit of code sharing is that it allows an application to have several different threads of activity all within the same address space. Whereas if a new process creation is very heavyweight because it always requires new address space to be created and even if they share the memory then the inter process communication is expensive when compared to the communication between the threads.

Report Error

View answer Workspace Report Error Discuss

19 15787