3i Infotech Papers: Sample Questions 163 - 164 of 1245

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

Question number: 163

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

Find the output for the following C program

  1. main ()
  2. {
  3.     char * p1 = “Name” ;
  4.     char * p2;
  5.     p2 = (char *) malloc(20);
  6.     while ( * p2 + + = * p1 + + );
  7.     printf ( “%s ”, p2);
  8. }

Explanation

  • In the program

Table showing the program

Table showing the program

char * p1 = “Name”;

  • define the character pointer p1= “Name”

char * p2;

  • define the character pointer p2

p2 = (char *) malloc (20);

  • using the malloc () function

  • void * malloc (size_t size) allocates the requested memory and returns a pointer to it.

while (* p2 ++ =* p1 ++);

  • apply the while condition

printf (“%s ”, p2);

  • printf prints the pointer p2 value

  • pointer p2 has no string so it is empty string

Question number: 164

» Database » Oracle

MCQ▾

Question

Can MULTIPLE DOCUMENT INTERFACE (MDI) be used in Forms 4.5?

Choices

Choice (4) Response

a.

Yes

b.

No

c.

All of the above

d.

Question does not provide sufficient data or is vague

Answer

a.

Explanation

  • Yes, MULTIPLE DOCUMENT INTERFACE (MDI) can be used in Form 4.5.

  • MDI applications enable display of multiple documents at the same time with each document display its own window.

  • A window menu item switches between window and documents.

  • Child windows are contained in parent window, which provides a workspace for all the child windows in the application.

  • Ex. Microsoft Window allows display of multiple-document of different types.