Technical Questions

Q:

What is math.floor(3.6)?

A) 6 B) 3
C) 3.5 D) 0.6
 
Answer & Explanation Answer: B) 3

Explanation:

The Math.floor() function in JavaScript is used to round off the number passed as parameter to its nearest integer in Downward direction of rounding i.g towards the lesser value.

 

Hence, math.floor(3.6) = 3.

Report Error

View Answer Report Error Discuss

5 9286
Q:

In 8085 name the 16 bit registers?

Answer

Stack pointer and Program counter all have 16 bits.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

20 9176
Q:

Explain the popular multiprocessor thread-scheduling strategies.

Answer

  1. Load Sharing: Processes are not assigned to a particular processor. A global queue of threads is maintained. Each processor, when idle, selects a thread from this queue. Note that load balancing refers to a scheme where work is allocated to processors on a more permanent basis.

  2. Gang Scheduling: A set of related threads is scheduled to run on a set of processors at the same time, on a 1-to-1 basis. Closely related threads / processes may be scheduled this way to reduce synchronization blocking, and minimize process switching. Group scheduling predated this strategy.

  3. Dedicated processor assignment: Provides implicit scheduling defined by assignment of threads to processors. For the duration of program execution, each program is allocated a set of processors equal in number to the number of threads in the program. Processors are chosen from the available pool.

  4. Dynamic scheduling: The number of thread in a program can be altered during the course of execution.

Report Error

View answer Workspace Report Error Discuss

9 9128
Q:

Which of the following is true about cloud computing?

A) Cloud computing has brought about a drop in hardware and software sales, while augmenting service revenues B) You can access your data from any computer in the world, as long as you have an Internet connection.
C) Both A & B D) It's always going to be less expensive and more secure than local computing.
 
Answer & Explanation Answer: C) Both A & B

Explanation:
Report Error

View Answer Report Error Discuss

2 8910
Q:

What would be the output of the following program?

main()

{

    extern int fun ( float );

    int a;

    a = fun ( 3. 14 );

    printf ("%d", a);

}

int fun ( aa )

float aa ;

{

     return ( (int) aa );

}

Answer

Error occurs because we have mixed the ANSI prototype with K & R style of function definition.


When we use ANSI prototype for a function and pass a float to the function it is promoted to a double. When the function accepts this double into a float a type mismatch occurs hence the error.


The remedy for this error could be to define the function as :


int fun (float aa)


{


  ....


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

9 8736
Q:

What is cladding?

Answer

A layer of a glass surrounding the center fiber of glass inside a fiber-optic cable.

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

11 8727
Q:

why 8085 processor, is called an 8 bit processor?

Answer

Because 8085 processor is 8 bit ALU (arithmetic logic review). Similarly 8086 processor has 16 bit ALU.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

7 8661
Q:

What are the stipulations of C2 level security?

Answer

C2 level security provides for:


 


1.Discretionary Access Control


2.Identification and Authentication


3.Auditing


4.Resource reuse

Report Error

View answer Workspace Report Error Discuss

19 8627