3i Infotech Papers: Sample Questions 983 - 986 of 1245

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 983

» Languages » Java

True-False▾

Question

Is the Following Statement True or False?

Final methods can be overridden.

Answer

FALSE

Explanation

Understanding of overriding.

Understanding of Overriding.

Understanding of overriding.

  • Statement is false

  • Final is used just before data members or even for a class.

For instance,

final method_name ()

final class_name ()

Anything, final cannot be extended or modified.

Question number: 984

» Languages » Java

Short Answer Question▾

Write in Short

What are byte codes?

Explanation

  • Bytecode is object-oriented programming code compiled to run on a virtual machine instead of a central processing unit.

  • A VM transforms program code into readable machine language for the CPU

  • As platforms utilize different code interpretation techniques- bytecode provides interoperability.

  • A VM converts bytecode for plateform interoperability, but bytecode is not plateform specific.

Question number: 985

» Languages » Java

Short Answer Question▾

Write in Short

When can subclasses not access superclass members?

Explanation

Understanding of super class and sub class

Understanding of Super Class and Sub Class

Understanding of super class and sub class.

  • When superclass is declared as private then subclasses cannot access superclass members.

  • The subclass can directly access the public members of the superclass.

  • Subclass can override the public members of the superclass.

Question number: 986

» Aptitude

MCQ▾

Question

When a bicycle is in motion, the force of friction exerted by the ground on the two wheels is such that it acts

Choices

Choice (4) Response

a.

In the backward direction on the front wheel and in the forward direction on the rear wheel.

b.

In the forward direction on both the front and rear wheels.

c.

In the backward direction on both the front and rear wheels.

d.

In the forward direction on the front wheel and in the backward direction on the rear wheel.

Answer

b.

Explanation

  • Pedalling the bicycle merely rotates the back wheel in clockwise sense.

  • The velocity of point of contact is therefore backwards, so, friction must act forward on the rear wheel.

  • This frictional force causes a translational acceleration of the entire bicycle, including the front wheel.

  • The velocity of point of contact tends to develop in the forward direction so friction acts in the backward direction.

Similar reasoning applies to a car, for the engine merely rotates the back wheel.