Technical Questions

Q:

main()

{

float me = 1.1;

double you = 1.1;

if(me==you)

printf("yes");

else

printf("No");

}

A) Yes B) No
C) Both D) Compilation error
 
Answer & Explanation Answer: B) No

Explanation:

For floating point numbers (float, double, long double) the values cannot be predicted exactly. Depending on the number of bytes, the precession with of the value represented varies. Float takes 4 bytes and long double takes 10 bytes. So float stores 0.9 with less precision than long double.

Report Error

View Answer Report Error Discuss

Filed Under: Software Testing
Job Role: Software Architect

9 11461
Q:

What is a binary semaphore? What is its use?

Answer

A binary semaphore is one, which takes only 0 and 1 as values. They are used to implement mutual exclusion and synchronize concurrent processes.

Report Error

View answer Workspace Report Error Discuss

9 14500
Q:

The program that is responsible for loading the operating system into RAM is the _______.

A) BIOS B) Bootstrap Program
C) Drive- Driver D) Supervisor Program
 
Answer & Explanation Answer: B) Bootstrap Program

Explanation:

The program that is responsible for loading the operating system into RAM is the bootstrap Loader program.

Report Error

View Answer Report Error Discuss

Filed Under: Operating Systems
Exam Prep: Bank Exams

9 6990
Q:

 The different classes of relations created by the technique for preventing modification anomalies are called:

A) normal forms. B) functional dependencies.
C) referential integrity constraints. D) None of the above is correct.
 
Answer & Explanation Answer: A) normal forms.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

9 8790
Q:

High level language is also called as ?

A) Business oriented language B) Mathematically oriented language
C) Problem oriented language D) All of above
 
Answer & Explanation Answer: D) All of above

Explanation:
Report Error

View Answer Report Error Discuss

9 2606
Q:

The coding or scrambling of data so that humans cannot read them, is known as _____.

A) Compression B) Encryption
C) Ergonomics D) Biometrics
 
Answer & Explanation Answer: B) Encryption

Explanation:

The coding or scrambling of data so that humans cannot read them is known as encryption.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

9 3857
Q:

What are the notations used in Evaluation of Arithmetic Expressions using prefix and postfix forms?

A) Polish B) Reverse Polish
C) Both A and B D) None of the above
 
Answer & Explanation Answer: C) Both A and B

Explanation:

Polish and Reverse Polish are the notations used in Evaluation of Arithmetic Expressions using prefix and postfix forms

Report Error

View Answer Report Error Discuss

Filed Under: Database
Job Role: Database Administration

9 12608
Q:

public static void main string[] args Meaning is?

Answer

Here in this declaration public static void main string[] args, each keyword has its importance.


 


1. public - Here public is an access specifier which allows the main method to be accessible everywhere.


 


2. static - static helps the main method to get loaded without getting called by any instance/object.


 


3. void - void clarifies that the main method will not return any value.


 


4. main - It's the name of the method.


 


5. String[] args - Here we are defining a String array to pass arguments at the command line. args is the variable name of the String array.

Report Error

View answer Workspace Report Error Discuss

8 2586