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?
#include<stdio.h>
main ()
{
register i =5;
char j[] =“hello” ;printf ( “%s %d” j, i);
}
Explanation
- In 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) ; |
|
- So the answer is hello 5.
Question 128
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
Explanation
- 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