Technical Questions

Q:

main()

{

char s[ ] = "man";

int i;

for( i=0; s[ i ]; i++)

printf( "n%c%c%c%c", s[ i ], *(s+i), *(i+s), i[s] );

}

A) mmmm aaaa nnnn B) aaaa mmmm nnnn
C) nnnn aaaa mmmm D) None
 
Answer & Explanation Answer: A) mmmm aaaa nnnn

Explanation:

s[i], *(i+s), *(s+i), i[s] are all different ways of expressing the same idea.Generally array name is the base address for that array. Here s is the base address. i is the index number/displacement from the base address. So, indirecting it with * is same as s[i]. i[s] may be surprising. But in the case of C it is same as s[i].

Report Error

View Answer Report Error Discuss

Filed Under: Programming

24 27273
Q:

What are the disadvantages of context switching?

Answer

Time taken for switching from one process to other is pure over head. Because the system does no useful work while switching. So one of the solutions is to go for threading when ever possible.

Report Error

View answer Workspace Report Error Discuss

24 11798
Q:

Physical or logical arrangement of network is

A) Topology B) Routing
C) Both A & B D) Networking
 
Answer & Explanation Answer: A) Topology

Explanation:

The logical arrangement of the nodes of different networks to communicate is called as topology.

Report Error

View Answer Report Error Discuss

23 15217
Q:

What is page cannibalizing?

Answer

Page swapping or page replacements are called page cannibalizing.

Report Error

View answer Workspace Report Error Discuss

22 13769
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 16394
Q:

What does microprocessor speed depend on?

Answer

the processing speed depends on DATA BUS WIDTH.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

21 11004
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 8258
Q:

What is the main reason the OSI Model was created?

Answer

The OSI Model is used as a reference model.


The primary reason the OSI model was created was so that different networks could inter-operate. Hence, different networks could communicate.

Report Error

View answer Workspace Report Error Discuss

20 8655