3i Infotech Papers: Sample Questions 1079 - 1082 of 1245

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

Question number: 1079

» Languages » Assembly Language

Short Answer Question▾

Write in Short

is how many bit microprocessors?

Explanation

  • is bit- also called because it executes 8 bit of data at a time.

  • It clock speed is MHz that is clock cycle is ns.

  • It has basic instructions and opcodes.

Question number: 1080

» Languages » Java

Short Answer Question▾

Write in Short

How can we do validation of the field in a perfect case?

Explanation

  • Validation can be called each time before throwing the object to the server for processing. If it returns true further processing can be done.

  • This is ideal solution, but it brings overhead of code, time and effort.

Question number: 1081

» Languages » Java

MCQ▾

Question

What is the output of following block of program?

  1. boolean var =false.
  2. if (var = true)
  3. {
  4.     SystemOutPrintln ( “TRUE” );
  5. }
  6. else
  7. {
  8.     SystemOutPrintln ( “FALSE” );
  9. }

Choices

Choice (4) Response

a.

True

b.

Compilation Error

c.

Run-time Error

d.

False

Answer

a.

Explanation

Table of Block of Program

Table of Block of Program

Boolean var = false

Declares boolean variable is false

If (var = true)

If variable is true

  1. {
  2.     SystemOutPrintln ( “TRUE” );
  3. }

Print true. Because variable is set to true in the if argument this command is executed

else

  1. {
  2.     SystemOutPrintln ( “FALSE” );
  3. }

Otherwise print false. The else part is not executed

Question number: 1082

» Languages » Java

Short Answer Question▾

Write in Short

What must a class do to implement an interface?

Explanation

  • Provide definitions for methods in the interface and identify the interface in its implements clause.

  • A class can implement more than one interface.

  • Implements keyword is followed by a comma-separated list of the interfaces implemented by the class.