c program

Download c program

If you can't read please download the document

Upload: polly

Post on 11-Nov-2015

212 views

Category:

Documents


0 download

DESCRIPTION

program

TRANSCRIPT

Ans 1: WWW(World Wide Web) is one of the services provided by the Internet.a) Internet is the hardware part,connecting collection of computer networks through either copper wires, fiber-optic cables or wireless connections whereas,World Wide Web is the software part, which is the collection of web pages connected through hyperlinks and URLs.b)Internet is governed by the Internet Protocol specifically dealing with data as whole and their transmission in packets,the World Wide Web is governed by Hyper Text Transfer Protocol (HTTP) that deals with the linking of files, documents and other resources of the World Wide Web.ANS2:d)O(log2n) is the most efficient algorithm in terms of time complexity.ANS3:The algorithm design technique used in the binary search algorithm is- Divide and Conquer.ANS4: Prefix Notation : -*AB*+CD/EFPostfix Notation: AB*CD+EF/*-ANS 5: To find largest of three numbers, all the three options can be utilized.(a) max(max(a,b)max(a,c))(b) max(max(a,b)max(b,c))(c) max()b,max(a,c)ANS 6:In Call By Refernce, the actual address of the variable is passed to the called function.Call by referenceis more useful because: any updates made inside the function will modify the original copy since we are modifying the content of exact memory location.whereas Call By Value- xerox copy of original variable is created and passed to the function.Any update made inside the method willl not affect the original value of variable in calling function.The values inside the main function cannot be altered.ANS7: Compile time errorANS8:Naming convention is a set of rules for choosing the character sequence to be used for identifiers which denote variables,types,functions and other entities in source code and documentation.Importance Reduce efforts needed to read and understand the source code.To enhance the source code appearance.ANS9:!(j+k)>(i+5)!(2+3)>(1+5)!5>60>6hence ans is d) 0ANS 10:A) .,||,