GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  IBM  >  Technical
Go To First  |  Previous Question  |  Next Question 
 Technical  |  Question 21 of 98    Print  
What happens when we open a file in r+ mode

  
Total Answers and Comments: 1 Last Update: September 13, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 13, 2005 14:24:42   #1  
Pavani        

RE: What happens when we open a file in r+ mode
We can both read and write into the file
 
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 ...

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.  

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  

If a pipe can fill a tank in 2 hrs and can empty it in 3 hrs.  If they are open at the same time then find the time taken to fill the tank?
6 hrsTechnical questions: 

COBOLPROGRAM for calculation of salary and computation file is to be generated.computation rule: basic pay proportional to no. of eligible days.DA at rate of 60% of basicpayfor grades1,10,20 NO DA for grade 50.DA 70% FOR GRADE 30,40HRA 25% OF BP FOR 1,10,20. 30% OF BP FOR 30,40 DEDUCTIONS PF 10% OF BP NET SHOULD BE ROUNDED.
View Question | Asked by : HEMANT


 Sponsored Links

 
Related Articles

Asynchronous Transfer Mode (ATM) Switching

Asynchronous Transfer Mode ATM Switching The Asynchronous Transfer mode or more popularly known as ATM is actually a part of the International Telecom Standards Using the ATM protocols information can be sent and received in small secure cells However for ATM connections to work there should be a co
 

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
 

JavaScript Window Object Open Method Part 2

JavaScript Window Object Open Method Part 2 In this JavaScript tutorial you will learn about JavaScript Window Object Open Method features of window object open method scrollbars status titlebar toolbar top width innerHeight innerWidth outerHeight outerWidth and hotkeys mosgoogle center scrollbars S
 

JavaScript Window Object Open Method

JavaScript Window Object Open Method In this JavaScript tutorial you will learn about JavaScript Window Object Open Method features of window object open method channelmode directories dependent fullscreen screenX screenY height left location menubar resizable alwaysLowered alwaysRaised mosgoogle ce
 

Data Warehouses Non Technical Issues

Data Warehouses Non Technical Issues When companies get ready to implement a data warehouse few of them pay attention to the political issues that may surround it It must be emphasized that politics can reduce the chances for success with a data warehouse project and I want to warn companies against
 

Technical Aspects of CRM

Technical Aspects of CRM While it must be emphasized that CRM is not a technology there are a number of technical issues that need to be considered when a company decides to implement a CRM system The first technical issue that needs to be analyzed is scalability In a nutshell the CRM system must be
 

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
 

C Programming - File management in C

C Programming File management in C In this tutorial you will learn about C Programming File management in C File operation functions in C Defining and opening a file Closing a file The getw and putw functions The fprintf fscanf functions Random access to files and fseek function mosgoogle C suppor
 

ASP.NET Technical Practice Test

ASP NET Technical Practice Test This article provides details about ASP NET Technical Online Practice Test which is made available at geekinterview com Questions are generated randomly each time you take the test Online Practice Test is made available to everyone you too can take the test and get yo
 

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