3i Infotech Papers: Sample Questions 610 - 612 of 1245

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

Question number: 610

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

  1. void main ()
  2. {
  3.     int i = 5;
  4.     printf( “%d” i + + + + + i);
  5. }

Explanation

  • In a program

Table shows the program

Table shows the program

int i = 5;

Given the integer i = 5

printf (“%d” i ++ ++ + i);

Here given the i ++ ++ + i

If it is i+++ ++i the output will be 12

Because i++=6

++i = 6

6 + 6=12

But in this case continuous five plus will show error

Compiler cannot identify operands there must be a space in between

  • So the expression i+++++I is parsed as i+++++I which is an illegal combination of operators.

Question number: 611

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

  1. main ()
  2. {
  3.     int i = 10;
  4.     i =! i>14;
  5.     Printf ( “i = %d” i);
  6. }

Explanation

In a program

Table shows the program

Table shows the program

int i = 10;

Integer variable i = 10

i =! i > 14;

NOT (! ) operator has precedence over ’ > ’ symbol.

! is a unary logical operator

! i (! 10) is 0 (not of true is false).

0 > 14 is false (zero).

Printf (“i =%d” i);

Print “i = 0”

Question number: 612

» Database » Oracle

MCQ▾

Question

Which of the following is TRUE for a ERASE packaged procedure …

1. ERASE removes an indicated Global variable & releases the memory associated with it

2. ERASE is used to remove a field from a page

Choices

Choice (4) Response

a.

1 & 2 are FALSE

b.

Only 1 is TRUE

c.

1 & 2 are TRUE

d.

Only 2 is TRUE

Answer

b.

Explanation

  • ERASE removes an indicated Global variable & releases the memory associated with it.

  • When erase is called on variable the procedure and scripts that depend on the object fail- object and scripts have to be updated to reflect the delete of procedure.

  • Requires ALTER permission on the schema and procedure control permission on the procedure.