3i Infotech Papers: Sample Questions 1039 - 1042 of 1245

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

Question number: 1039

» Languages » Java

Short Answer Question▾

Write in Short

What is the layout for toolbar?


  • Toolbar provides users with common used features of application.

  • Placed directly below the menu bars at the top of a frame.

  • Acts as a container for other components including button, combo box and menu.

  • A menu is a group of commands located in a menu bar- has buttons providing common commands in the application.

Question number: 1040

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

Write a program which uses command line arguments.


  1. #include<stdio.h>
  2. void main(int argcchar * argv[])
  3. {
  4.     int isum = 0;
  5.     if (argc != 3)
  6.     {
  7.         printf("You have forgot to type numbers.");
  8.         exit(1);
  9.     }
  10.     printf("The sum is : ");
  11.     for (i = 1i < argci++)
  12.     sum = sum + atoi(argv[i]);
  13.     printf("%d"sum);
  14. }


Sum is: 30

Question number: 1041

» Languages » Assembly Language

Essay Question▾

Describe in Detail

What is the function of accumulator?


Define us of accumulator in ALU

Define Us of Accumulator in ALU

Define us of accumulator in ALU

  • Accumulator is 8-bit the primary register for ALU.

  • Hold operands for operation which is performed/processed by the ALU.

  • After the successful operation done by the ALU, the accumulator replaces input data by results

  • Result can then be transferred to memory or output device depending on the instruction.

  • Used as temporary storage to perform arithmetic operations.

Question number: 1042

» Languages » Java



A Vector is declared as follows. What happens if the code tried to add 6th element to this Vector new vector


Choice (4) Response


The element will be successfully added


The Vector allocates space to accommodate up to elements


Array Index Out Of Bounds Exception


Question does not provide sufficient data or is vague




  • The 1st argument in the constructor is the initial size of Vector.

  • The 2nd argument in the constructor is the growth in size.

  • This Vector is created with elements and when an extra element 6th is added, the vector automatically grows in size by