3i Infotech Placement: Sample Questions 199 - 201 of 1245

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 199

Edit

Write in Short

Short Answer▾

Name some pure object oriented languages.

Explanation

  • Smalltalk
  • Java
  • Eiffel
  • Sather

Question 200

Edit

Describe in Detail

Essay▾

What is the output of the following program?

  1. main ()
  2. {
  3.     inti =_l_abc (10);
  4.     printf ( “%d” --i);
  5. }
  6. int_l_abc (inti)
  7. {
  8.     return (i ++ );
  9. }

Explanation

In the program

Table Shows the Program
int _l_abc (int i)

{

return (i ++) ;

}

  • Return (i ++) will first return i and then increment
  • Therefore, 10 will be returned.
int i = _l_abc (10) ;Here int _l_abc (int i) is a function and int i = 10 defined.
printf ( “% d” -i) ;Print the value if --i is i = i-1

So i = 10 - 1 = 9. The decrement happens first and then print

i = 9

Question 201

Edit

Describe in Detail

Essay▾

Explain 5 - 4-3 rule?

Explanation

Define 5 - 4-3 Rule
  • The 5 - 4-3 rule is used in the design of shared Ethernet networks to promote optimal traffic flow.
  • Refers to the number of repeaters and segments that must be present on shared Ethernet backbones set up in a tree topology.
  • The 5 - 4-3 rule divides segments into two types:
  1. Populated segments
  2. Unpopulated segments
The 5 - 4-3 Rule Divides Segments into Two Types
  • The 5 - 4-3 rule was designed to minimize signal transmission time.
  • States that 10- Mbps Ethernet should be used on no more 5 network segments and 4 repeaters with no more than 3 of the five network segments for end-users.

Developed by: