3i Infotech Papers: Sample Questions 267 - 268 of 1245

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

Question number: 267

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

Predict the output or error (s) for the following:

  1. main ()
  2. {
  3.     int i = 300;
  4.     char *ptr=&i;
  5.     *++ptr=2;
  6.     printf ( “%d”,i);
  7. }

Explanation

In the program

Table shows the program

Table shows the program

int i = 300;

  • Given the integer variable i = 300

char * ptr = &i;

  • The integer value 300 in binary notation is: 00000001 00101100.

  • It is stored in memory (small-endian) as: 00101100 00000001.

*++ptr = 2;

  • Result of the expression *++ptr = 2 makes the memory representation as: 00101100 00000010.

printf (“%d”, i);

  • So the integer corresponding to it is 00000010 00101100 = > 556.

Convert binary value to integer value

Convert Binary Value to Integer Value

Convert binary value to integer value

Question number: 268

» Database » Oracle

MCQ▾

Question

A FORM is made up of which of the following objects….

Choices

Choice (4) Response

a.

blocks, fields, pages, triggers and form level procedures,

b.

blocks, fields, pages only,

c.

block, fields only,

d.

Only blocks.

Answer

a.

Explanation

  • Form is made up of blocks, fields, pages, triggers and form level procedures.

  • To access a database object user interface can be created- generates form’s HTML and validate user’s input.

  • Form is easy for visitors to use.

  • Form object is designed to get a specific type of information.

  • For example, for a list of categories- to select more than one category, check box form object can be used however to only select one category, use the radio button form object instead.