Technical Questions

Q:

What value does read() return when it has reached the end of a file?

A) 1 B) -1
C) 0 D) None
 
Answer & Explanation Answer: B) -1

Explanation:

It returns -1

Report Error

View Answer Report Error Discuss

Filed Under: Programming

1 3135
Q:

What is schema?

Answer

The description of a data base is called the database schema , which is specified during database design and is not expected to change frequently . A displayed schema is called schema diagram .We call each object in the schema as schema construct.

Report Error

View answer Workspace Report Error Discuss

Subject: Database
Job Role: Database Administration

0 3133
Q:

Where is a hub specified in the OSI model?

A) Physical Layer B) Data Link Layer
C) Application Layer D) Session Layer
 
Answer & Explanation Answer: A) Physical Layer

Explanation:

Hubs regenerate electrical signals, which are specified at the Physical layer.

Report Error

View Answer Report Error Discuss

Filed Under: Networking
Exam Prep: CAT
Job Role: Analyst , Network Engineer

1 3130
Q:

Can 8259 he interfaced with 8085 via the trap pin?

Answer

Yes... so if 8529 gives interrupt then it will be serviced immediately but since INTA pin is left hanging the INSR bit will never be set.. and so whenever my interrupt occurs depending upon priority it will be serviced.. also the ISR address for all interrupts will be same ie 0024H..


Interrupt via trap is nonmaskable, so it will be serviced immediately.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 3128
Q:

What scheme does the Kernel in Unix System V follow while choosing a swap device among the multiple swap devices?

Answer

Kernel follows Round Robin scheme choosing a swap device among the multiple swap devices in Unix System V.

Report Error

View answer Workspace Report Error Discuss

Subject: Operating Systems Exam Prep: GATE

8 3125
Q:

Point out the error, if any, in the following program.

# include "stdio.h"

main()

{

     FILE *fp;

     char str[80];

     fp = fopen ("trail", "r");

     while (!feof (fp))

    {

           fgets (str, 80, fp);

           puts (str);

     }

     fclose (fp);

}

Answer

The last line from the file "trial" would be read twice. To avoid this, ues:


       While ( fgets (str, 80, fp) ! = NULL)


               puts (str);

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3107
Q:

Suppose you have a computional circuit between two registers driven by a clock. What will you do if the delay of the combinational circuit is greater than your clock signal?

Answer

Use the concept of register-retiming.


divide the totla combinatorial delay in two segments such that individually the delay is less the clock period.


this can be done by inserting a flip-flop in the combinational path.


e.g.,


clock period --- 5 ns


total cominational delay ---- 7


then divide the 7ns path in two path of 4 or 3 (best resutls are obtained if delays are  same for both path i.e 3.5ns) by inserting a flip-flop in between.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 3090
Q:

 A transaction for which all committed changes are permanent is called:

A) atomic. B) consistent.
C) isolated. D) durable.
 
Answer & Explanation Answer: D) durable.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

1 3089