3i Infotech Papers: Sample Questions 154 - 156 of 1245

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

Question number: 154

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

What is the output of the following program?

  1. #include<stdio.h>
  2. main ()
  3. {
  4.     register i = 5;
  5.     char j[] = “hello” ;printf ( “%s %d” ji);
  6. }

Explanation

  • In the program

Table shows the program

Table shows the program

register i = 5;

i value may be stored either in register or in memory

char j [] = “hello”;

j is a character array

printf (“%s % d” j, i);

  • printf (“%s”, j); prints hello 5

  • J is a array containing base address of first element of array.

  • Register i treated simple integer

  • So the answer is hello 5.

Question number: 155

» Database » MySQL

Short Answer Question▾

Write in Short

What are “HINTS”? What is “index covering” of a query?

Explanation

HINTS: a hint is an addition to the SQL standard that instructs the database engine on how to execute the query.

3 types of HINTS

  • Query Hints

  • Index hints

  • lock hints

Used for forcing the behaviour of the statement as per our expectation.

Covering index will cover will have same columns in the select and where cause and index covers all the columns.

Question number: 156

» Operating System » Unix

Essay Question▾

Describe in Detail

What is a shell?

Explanation

Understanding the structure of shell.

Understanding the Structure of Shell.

Understanding the structure of shell.

  • Shell is a UNIX term in the operating system- a layer of programming that understands and executes the commands a user enters.

  • The shell is called a command interpreter.

  • A shell usually implies an interface with command syntax.

  • The shell gets started on login and provides quick way to execute utilities

  • A shell is not part of system kernel, but uses system kernel to execute programs and create files.

  • Following are various ways to get shell access:

    • Terminal

    • Connect via secure shell

    • Use the console