3i Infotech Placement: Sample Questions 127 - 129 of 1245

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 127

Write in Short Short Answer▾

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 j, i);
  6. }
Edit

Explanation

  • In 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 128

Write in Short Short Answer▾

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

Edit

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 129

Describe in Detail Essay▾

What is a shell?

Edit

Explanation

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