GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  IBM  >  Technical
Go To First  |  Previous Question  |  Next Question 
 Technical  |  Question 37 of 98    Print  

PATH = /bin : /usr : /yourhome

The file /bin/calendar has the following line in it

cal 10 1997

The file /yourhome/calendar has the following line in it

cal 5 1997

If the current directory is /yourhome and calendar is executed

a) The calendar for May 1997 will be printed on screen

b) The calendar for Oct 1997 will be printed on screen

c) The calendar for the current month( whatever it is) will be printed

d) Nothing will get printed on screen

e) An error massage will be printed


  
Total Answers and Comments: 2 Last Update: August 26, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 27, 2005 09:37:10   #1  
Raghavan        

RE: PATH = /bin : /usr : /yourhomeThe file /bin/calendar has the following line in itcal 10 1997The file...
a
 
Is this answer useful? Yes | No
August 26, 2005 22:43:24   #2  
Johon        

RE: PATH = /bin : /usr : /yourhomeThe file /bin/calendar has the following line in itcal 10 1997The file...
e - if there are truly spaces before and after ':' in the PATH--command not found

Use ./calendar to get (a)

 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : It' s simple(ls;who) >> xComments:*** (ls;who) prints both the outputs in stdout in the same sequence as commanded.*** >> is the "redirection + append" operator, hence the o/p from stdout is put into a file (appended) named x. ...

Latest Answer : We can both read and write into the file ...

PS1 pwdexport PS1 results ina). your primary prompt being your current directoryb). your primary and secondary prompts being the current dirc). your primary prompt being your home dird). your primary and secondary prompts being the home dire). None of the above.

If you type in the commandnohup sort employees > list 2 > error out & and log off ,the next time you log in . the output will bea). in a file called list and the error will de typed in a file error outb). there will be no file called list or error outc). error will be logged in a file called list and o/p will be in error outd). you will not be allowed to log ine). none of the above

It is a data structure that defines all specifications of a file like the file size ,number of lines to a file ,permissions etc.  

What will the following program do?void main(){int i;char a[]="String";char *p="New String";char *Temp;Temp=a;a=malloc(strlen(p) + 1);strcpy(a,p); //Line no:9//p = malloc(strlen(Temp) + 1);strcpy(p,Temp);printf("(%s, %s)",a,p);free(p);free(a);} //Line no 15//a) Swap contents of p & a and print:(New string, string)b) Generate compilation error in line number 8c) Generate compilation error in line number 5d) Generate compilation error in line number 7e) Generate compilation
b  

PATH = /bin : /usr : /yourhomeThe file /bin/calendar has the following line in itcal 10 1997The file /yourhome/calendar has the following line in itcal 5 1997If the current directory is /yourhome and calendar is executeda) The calendar for May 1997 will be printed on screenb) The calendar for Oct 1997 will be printed on screenc) The calendar for the current month( whatever it is) will be printedd) Nothing will get printed on screene) An error massage will be printed

The redirection operators > and >>a) do the same functionb) differ : > overwrites, while >> appendsc) differ : > is used for input while >> is used for outputd) differ : > write to any file while >> write only to standard outpute) None of these
b  

The command grep first second third /usr/you/myfilea) prints lines containing the words first, second or third from the file /usr/you/myfileb) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints themc) searches the files /usr/you/myfile and third for lines containing the words first or second and prints themd) replaces the word first with the word second in the files third and /usr/you/myfilee) None of the above
b  

Latest Answer : configuration files. Example: /etc/lilo.conf, /etc/fstab , /etc/mtab , /etc/resolve.conf , /etc/profile, /etc/host.conf etc. ...


 Sponsored Links

 
Related Articles

jQuery - Marking the Current Page

Learning jQuery Marking the Current Page Our pager can be made more user friendly by highlighting the current page number We just need to update the classes on the buttons every time one is clicked mosgoogle geshibot lang php" var pager ; for var page 0; page numPages; page pag
 

What is Data File

In a logical data model, the conceptual data model which is based on the business semantic is being defined. Thus, entities and relationships and corresponding table and column design, object oriented classes, and XML tags, among other things are being laid regardless of the database will be physica
 

What is Access Path

In relational database management system (RDBMS) terminology, Access Path refers to the path chosen by the system to retrieve data after a structured query language (SQL) request is executed. A query may request at least one variable to be filled up with one value or more. A query may look like th
 

On-Line Transaction Processing

On-Line Transaction Processing On-Line Transaction Processing is a processing that supports the daily business operations. Also know as operational processing and OLTP.  An OLTP is a database which must typically allow the real-time processing of SQL transactions to support traditional reta
 

On-Line Analytical Processing

On-Line Analytical Processing On-Line Analytical Processing is a processing that supports the analysis of business trends and projections. It is also known as decision support processing and OLAP.  An OLAP software enables companies to have real-time analysis of data stored in a database. A
 

How to define command line arguments

The main functions can have arguments passed which are called as command line arguments. There are two command line arguments: Argument count denoted by argc and Argument vector denoted by argv The argc is an integer variable which denotes the number of parameters passed and argv is pointer to a
 

The Current State of Enterprise Resource Planning

The Current State of Enterprise Resource Planning To analyze the future trends of Enterprise Resource Planning it is first important to look at the current state of this industry While this tool was originally used for manufacturing and human resources it is now being used in areas such as customer
 

PHP Tutorials - File manipulation (Part-2)

File manipulation Part 2 In this PHP Tutorial you will learn the 2nd Part of File Manipulation Reading lines from a file Reading arbitrary amounts of data from a file Writing to a file Creating directories Removing a directory and Opening a directory for reading mosgoogle Reading lines from a file T
 

PHP Tutorials – File manipulation (Part 1)

PHP Tutorials File manipulation Part 1 In the PHP Tutorial You will learn about File manipulation Part 1 Checking file existence A file or directory Determining file size Creating and deleting files and Opening a file for writing reading or appending mosgoogle Checking file existence You can test
 

How To Manage Current and Historical Information Within Your Data Warehouse

How To Manage Current and Historical Information Within Your Data Warehouse In order for a company to use a data warehouse successfully it must be designed so that users are able to analyze historical and current information There are a number of things that will result from this technique and they
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape