Write the general formats for file opening and file closing commands?

1 Answer

Answer :

Ans: For Opening:-
fp=fopen(“filename” , “mode”);
where ‘fp’ refers to the file pointer.
‘filename’ refers to the name of the file to be opened.
‘mode’ refers to the mode of accessing data.
For Closing:-
fclose(fp); where fp denotes the file pointer.

Related questions

Description : Which of the following commands is used to update access and modification times of a file? A. grep B. wc C. touch D. cat E. None of the above

Last Answer : C. touch

Description : GO BOTTOM and SKIP-3 commands are given one after another in a database file of 30 records. It shifts the control to (A) 28th record (B) 27th record (C) 3rd record (D) 4th record

Last Answer : (B) 27th record

Description : Computers can have instruction formats with (A) only two address and three address instructions (B) only one address and two address instructions (C) only one address, two address and three address instructions (D) zero address, one address, two address and three address instructions

Last Answer : (D) zero address, one address, two address and three address instructions 

Description : In distributed databases, location transparency allows for database users, programmers and administrators to treat the data as if it is at one location. A SQL query with location transparency needs to specify: (A) Inheritances (B) Fragments (C) Locations (D) Local formats 

Last Answer : (B) Fragments

Description : Which of the following commands is used to list contents of directories? A. ls B. lp C. dir D. tar E. None of the above

Last Answer : A. ls

Description : Which of the following commands is used to display the directory attributes rather than its contents? A. ls -l -d B. ls -l C. ls -x D. ls -F E. None of the above

Last Answer : A. ls -l -d

Description : Which of the following commands will create a list? a) list1 = list() b) list1 = []. c) list1 = list([1, 2, 3]) d) all of the mentioned

Last Answer : d) all of the mentioned

Description : Which of the following commands would return process_id of sleep command? (A) Sleep 1 and echo $? (B) Sleep 1 and echo $# (C) Sleep 1 and echo $x (D) Sleep 1 and echo $!

Last Answer : (D) Sleep 1 and echo $!

Description : Which of the following statement is not correct with reference to cron daemon in UNIX O.S? (A) The cron daemon is the standard tool for running commands on a predetermined schedule. (B) It starts ... command lines and the times at which they invoked. (D) Crontab for individual users are not stored.

Last Answer : (D) Crontab for individual users are not stored.

Description : Consider the following two commands C1 and C2 on the relation R from an SQL database:  C1: drop table R; C2: delete from R; Which of the following statements is TRUE? I. Both C1 and C2 delete the schema for R. II. C2 ... R. (A) I only (B) I and II only (C) II and III only (D) I, II and III

Last Answer : (C) II and III only

Description : A segment is any object described by GKS commands and data that start with CREATE SEGMENT and Terminates with CLOSE SEGMENT command. What functions can be performed on these segments? (1) Translation ... 2) Panning and Zooming (3) Scaling and Shearing (4) Translation, Rotation, Panning and Zooming

Last Answer : Translation, Rotation, Panning and Zooming

Description : Is there anything that can convert .pdf into one of the normal Kindle file formats?

Last Answer : Calibre can, or you can just email the PDF to your @kindle.com address and it will convert automatically.

Description : What are the major file formats that most graphic designers would require to make letter head, business cards, t-shirts and the like from your images?

Last Answer : answer:found this, it seems like the main types are vector, and pixel. Corel (.cds) being the chief example of vector I think, and pixels as .jpg

Description : I am looking for a free way to convert an flv file to other formats, do you have any idea where I can find this?(yes I searched)

Last Answer : http://www.zamzar.com/

Description : Which music file formats does the Zune player support?

Last Answer : The music file formats that are supported by Zune player are .wma,.wmv,mp3,mp4,jpg,m4v,m4a,m4b, and .mov.

Description : Which of these is NOT a way to decrease image blurriness? A. Use compatible file formats B. Increase the size of thumbails C. Save images using loseless compression D. Check if raster or vector graphics work better

Last Answer : A. Use compatible file formats

Description : What do you think about opening and closing credit cards for the initial sign up offers?

Last Answer : I know that closing lines of credit does cause your credit score to go down because you have less available credit. So, for that part of it, it will cause your credit score to drop when you close the ... of the benefits or not being able to use the benefits until you've had the card for a year.

Description : Some memorable opening/closing lines from a book?

Last Answer : It was the day my grandmother exploded. – The Crow Road (Iain M. Banks)

Description : You are chosen to read the local news on tv, what would be your opening/closing remarks?

Last Answer : answer:For the open, I would paraphrase Bette Davis’s character in “All About Eve” and say… “Fasten your seatbelts. It’s going to be a bumpy news report.” For the close, I couldn’t do better than Edward R. Murror’s “Goodbye and Good Luck.”

Description : What would be the opening & closing lines in your autobiography?

Last Answer : answer:It was the best of times, it was the worst of times… … yes, yes, I said yes, I mean yes.

Description : What is the best opening line or closing line to a book in history?

Last Answer : answer:Opening- Tyler gets me a job as a waiter, after that Tyler's pushing a gun in my mouth and saying, the first step to eternal life is you have to die .- Fight Club by Chuck Palahniuk ... standing right now, in the ruins in the dark, what we build could be anything .- Choke by Chuck Palahniuk

Description : Do you watch the opening and closing Olympic ceremonies?

Last Answer : I watched female beach volleyball. That was the only thing that interested me.

Description : How do guard cells regulate opening and closing of stomatal pores ? -Science

Last Answer : The opening and closing of stomatal pores is controlled by the guard cells, when water flows into the guard cells, they swell, become curved and cause the pore to open whereas when the guard cells lose water, they shrink, become straight and close the stomatal pore

Description : (a) “The breathing cycle is rhythmic whereas exchange of gases is a continuous process”. Justify this statement. (b) What happens if conducting tubes of circulatory system develops a leak? State in brief, how could this be avoided? (c) How opening and closing of stomata takes place? -Biology

Last Answer : (a) The breathing cycle involves inhalation and exhalation of air due to alternate expansion and contraction of thoracic cavity. Thus it is a rhythmic process. But exchange of gases is a continuous process ... pore opens up. When water moves out the guard cells shrinks and the stomatal pore closes.

Description : (a) Draw a diagram to show open stomatal pore and label on it: (i) guard cells (ii) chloroplast (b) State two functions of stomata. (c) How do guard cells regulate the opening and closing of stomatal pore? -Biology

Last Answer : (a) (b) Two functions of stomata are: (i) Exchange of gases between the plant and the atmosphere takes place through stomata. (ii)Transpiration in plants takes place through stomata. ( ... through these stomata, the plant closes these pores when it does not require carbon dioxide for photosynthesis.

Description : The tag that requires a opening as well as closing tag is called......... . -Technology

Last Answer : The tag that requires a opening as well as closing tag is called container tag.

Description : In XML, every opening tag may not have a closing tag. -Technology

Last Answer : False Every tag must contain the opening and closing tag.

Description : Explain the mechanism of stomatal opening and closing. -Biology

Last Answer : answer:

Description : Which is the type of movement that occurs during opening and closing of flower? -Do You Know?

Last Answer : answer:

Description : What is the opening and closing tag of html ?

Last Answer : html 's opening tag and closing tag

Description : Which process controls the opening and closing of the pores ?

Last Answer : The percolation process controls the opening and closing of the pores.

Description : If closing capital is ₹ 30,000 and profit is ₹ 5,000 opening capital was __________ 

Last Answer : If closing capital is ₹ 30,000 and profit is ₹ 5,000 opening capital was __________ (a) ₹ 35,000 (b) ₹ 30,000 (c) ₹ 25,000 (d) ₹ 15,000

Description : (i) Excess of opening capital over closing capital of proprietor under single entry system.

Last Answer : Write a word, term, or phrase which can substitute each of the following statements : (i) ... (v) The incomplete method of the accounting system.

Description : Opening and closing of stomata are due to its

Last Answer : Ans. Turgidity and faccidity

Description : The air fuel ratio in petrol engines is controlled by a. valve opening / closing b. governing c. carburetion d. scavenging

Last Answer : ANSWER c. carburetion

Description : If Opening Stock – Rs.15,000 Purchases – Rs.37,500 Direct Expenses – Rs.1,500 Closing Stock – Rs.7,500 Operating Expenses – Rs.3,000 Sales are Rs. 60,000 during the year, what is the net profit ? (A) Rs. 12,000 (B) Rs. 10,500 (C) Rs. 7,500 (D) Rs. 3,000

Last Answer : Answer: Rs. 10,500

Description : Average stock of firm is Rs. 80,000, the opening stock is Rs. 10,000 less than closing stock. Find opening stock. (A) Rs. 95,000 (B) Rs. 85,000 (C) Rs. 90,000 (D) Rs. 75,000

Last Answer : Answer: Rs. 75,000

Description : In accounting terms, what constitutes the 'closing stock'? (1) Net Investment (2) Gross Investment-Capital Losses (3) Opening Stock-Capital Losses (4) Opening Stock + Net Investment - Capital Losses

Last Answer : (4) Opening Stock + Net Investment - Capital Losses Explanation: Closing stock refers to the goods remaining un-sold during the year. It includes finished products, raw materials, or work in progress ... with the following calculation: Opening stock + Purchases - Closing stock = Cost of goods sold.

Description : Conversion of starch to sugar is essential for - (1) Stomatal opening (2) Stomatal closing (3) Stomatal formation (4) Stomatal growth

Last Answer : (1) Stomatal opening Explanation: For keeping the stomata open a constant expenditure of energy is required. This is provided by the conversion of starch to sugar. The stomata! opening is, in turn ... at the leaves while their stomata are open for the passage of CO2 and 02 during photosynthesis.

Description : The opening and closing of the stomatal pores is a function of the - (1) Guard cells (2) Chloroplast (3) Xylem (4) Phloem

Last Answer : (1) Guard cells Explanation: The opening and closing of the pores is a function of the guard cells. They swell when water flows into them, causing the stomatal pore to open and likewise, the pore closes if the guard cells shrink.

Description : Do you require separate limit switch for closing and separate limit switch for opening?

Last Answer : Ans. YES.

Description : Mark the correct option relating to Senior citizen saving account a) Account opening form is Form A & for closing Form E b) Pay in Slip Form D c) Account transfer form is From G d) All the above

Last Answer : d) All the above

Description : The supervisor of a CRC is responsible for a) Timely opening of the set b) Maintaining the master data for the interim dispatch c) Opening bag allocation closing bag allocation d) All the above

Last Answer : d) All the above

Description : Conversion of starch to organic acids is required for (a) stomatal opening (b) stomatal closing (c) stomatal formation (d) stomatal activity.

Last Answer : a) stomatal opening

Description : Opening and closing of stomata is due to the (a) hormonal change in guard cells (b) change in turgor pressure of guard cells (c) gaseous exchange (d) respiration.

Last Answer : (b) change in turgor pressure of guard cells

Description : Consider the assertions given below. Which among them prove to be beneficial for Persistent HTTP connections? A. Reduction in latency over the sub- sequent requests B. Pipeline-oriented connection over the requests and responses C. Increase ... TCP connections a. A & B b. C & D c. A & C d. B & B

Last Answer : a. A & B

Description : Which is the type of movement that occurs during opening and closing of flower?

Last Answer : Nastic movement