0% found this document useful (0 votes)
4 views

C Programing Imp Questions

The document outlines various topics related to programming in C, including definitions of computer components, number systems, data types, and control structures. It also covers advanced concepts such as pointers, memory allocation, file processing, and recursion. Additionally, it includes programming exercises and examples to illustrate the concepts discussed.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
4 views

C Programing Imp Questions

The document outlines various topics related to programming in C, including definitions of computer components, number systems, data types, and control structures. It also covers advanced concepts such as pointers, memory allocation, file processing, and recursion. Additionally, it includes programming exercises and examples to illustrate the concepts discussed.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 8
Define computer. Describe the two.major components of a compuler system. Write short notes on following number systems, (i) Decimal, - . il) Hexadecimal. () Bq Ci) (287), Gil) (239),,. What are the general characteristics of C? Write short notes on identifiers. Name the different data types that C supports and explain them in detail. Write a C program to print complex number attributes: Explain in detail about type qualifiers." * ext In brief about exact size integer ‘types. Explain about shift operators. What is fogical data? List and explain different logical operators of C. Explain the purpose of simplifying if statements with example, Discuss about conditional operator. Explain about the concept of multway selection and the diferent ways of Implementing it with examples. ‘What is meant by loop? Explain about different loop control expressions and loop processes. Explain in detall about the general categories of expressions used in loop limit test. “Define loop. Discuss the various looping statements in C. - Explain in detail about the following keywords, (goto (break (ii). continue. st and explain with examples the common applications for loops. Wiite & C program fora simple Calculator. paz Maa Sana } chy notes Jofk | \ Convert the following decimal numbers into their equivalent hexadecimal number. (ReferUnit4, a1) (Refer Unit-, G7) (Refer Unit-1, Q10) (Refer Unit4, Q22) (Refer Unit, Q25) (ReferUnit-1, 027) {Refor Unit-, Q40) (Refer Unit-tl, 1) (Refer Unit-il, @3) (Refor Unit-l, Q5) (Refer Unit-il, 29) (Refer Unit-t, Q10) (Refer Unit-il, Q11) (Refer Unit-t1, 014) (Refer Unit-t, 15) {Refer Unit-l, 17) (Refer Unit-t, 020) (Refor Unit-t, 221) (Refer Unit-, 22)- “* ago -UNIT- 3 oa ae Qt, Define an aray and wt its syntax. 2, White @ C program to convert a twordimensional array 10 a one-dimensional ara 3, Explain about multidimensional ‘arrays; ar c¥izy noles dofe}e_ Q4. What is an array of strings? 3 “ 5 QS. What are the additional string handing functions eecctariels -Q6. Explain the enumerated data types. Lo Q7. Define structure. Explain how a structure is declared, G8. How to copy one structure to another struciure of a seme data type? Give an example. Q9. What's a self-refer&ntial structure? Also wrile ari example program. *Q10. List out the similarities and differences between structures and unions. Q11. Develop a simple programming application that simulates the operation of an elevator, UNIT - -1V, 1. What}s.a pointor? List some ofthe uses of pointers. F Q2,,_ Explain the process of declaring and initélizing péinters. Give an example. Q3. How one pointer points to another pointer? Explain, Q4, Explain the compatibility issues of pointers. Q5. Discuss in Brief about static memory allocation and dynamic memory allocation. Q6. White in brief about dynamic array. . Q7, Discuss various preprocessor commends. "QB. List any five predefined macros with their meanings. Q9, What is meant by conditional compilation? What are its advantages? UNIT-V Qt, Define stream and explain about the various types of files in C. Q2. Explain the steps Involved In stream file processing. Q3._ “Distinguish between text stream and binary stream operations ofa file. Q4. Wile in detail about various states of a file. 05. List and explain diferent categories of standard 110 functions, Q6, _Explain‘the process of converting a text fle to a binary fle and vice versa. Q7. Write'a C program to print the least significant (rightmost) digit of any integer read from the keyboard. Q8, What Is recursion? What are its advantages? Q9. Write about Iteration Versus Recursion. ‘Q10. Discuss the recursive algorithm for tower's of Hanoi problem. (ReferUntagg, (Refer Uniti, gy (Refer Units yy | (Refer Unita, (Refor Unit-ll zy (Réfor Unita, iy, (Refer Unit, sp) (Refer Unit-l, Cx (Refer Unit-I, C4y (Refer Unite, O49 (Refer Unit-ll, sq (Rofer Unit-lV,Ct) (Refer Unit-1V,04 (Refer Unit-IV, Qt) (Refer Unit-ty, Off) (ReferUnit-4v, a7) (Refer Unitsy, 027) (Refer uate, a29) | {Refer Unity, 035) | (Refer Unit, 037) a (Refer UnitV, 2) | (Refer Unit-V, 0) (Refer Unit-v, (Refer Unity, a (Refer Unit-V, (Refer Unit-V, (Refer Unit-V, (Refer Unit-V, (ReferUnit-V, WTA B.Tech. | Year | Seméater Examinations PROGRAMMING FOR PROBLEM SOLVING USING c (Common to EEE, ECE & ME) ‘Time: 3 Hours 7 Max. Marks: 75 “Ansiver alle Queitions (8 * 45 Marks’S 78 Marks)" | Solutions Define computer. Describe the two major components of a computer system... (Unit { 01) OF: ypilenelanasle ene oa (2) Waite short notes on following numbersystems, | cay notes deh | @) Decimal, (i) Binary \ Z (ii) Hexadecimal. : art (units) 07) (b) Convert the following decimal numbers into their ‘equivalent hexadecimal number, © G72), (i) (257), (il) (239) (Unita j 010) (@) What is logical data? List and explain different logical operators of C. (unit 05) (b), Explain about the concept of multiway selection and the different ways of implementing it with examples. . (Unie 011) OR (a) What is meant by loop? Explain about different loop control expressions and loop processes. {Unie 1014) (b) List and explain with examples the common ‘applications: for loops. (Unit ] 021) (a) What are the additional string handling functions? . (unten 027) (b) Explain the enumerated data types. (unten 034) ‘ OR (a) Define structure. Explain how a structure is declared. *(unitan 037) (b) What is a self-referential structure? Also write an example program. (Uniti | = LvING.USING.© LINTU-KAKINAg), PROGRAMMING FOR PROBLEM SO! Pee Pointer points to another pol pl RS | 0) Dic te bref ebout state memory alocalion and dynamic memory staan tune adh ; OR: d 8, (a) White In briof about dynamic array. (Unie | ey (©) List any five predefined macros with thelr meanings. (UaittV tag | eee | 9. (@) Define stream and explain ébout the various types of files in C. (Unie ag (©) . Explain the steps involved in stream file processing, t AUnit¥ 09 OR 10. (8) Whatis recursion? What are its advantages? (Unie¥ 04 (Unie 105) (b), Write about Iteration Versus Recursion. - $$ Moi iDEN Pat aN tC CHey notes Inka. RE MPS R19 | Gitecunmie °° MODELI B.Tech, I Year | Semester Examinations PROGRAMMING FOR PROBLEM SOLVING USING C M (Common to EEE, ECE & ME) Time: 3 Hours 5 Max. Marks: 75 Answer all the Questions | (6 * 15 Marks = 75 Marks) : Soluutions +1. What are the general characteristics of C? {Unit-1/022) t OR 2 Write short ‘notes on dentin. (Unit-t (025) 3.- (@) Explain about shift operators, . Waitt | 03) (>) Explain the purpose of simplifying If statements with example. (Uniest | 03) OR 4 (a) Discuss about conditional operator. (Unit-/ 10) (b) Explain in detail about the following keywords, (goto W) break Gi‘ continue. . (Usitst/ 020) 5. (a) . Define an array and write its syntax. (Unit-tHt] O41) (0) Write a C program to convert a two-dimensional array to one-dimensional array. (Uniti | 010) oR’ 6. (a) HEY IR copy ods Seyictine fp enctTie aeuchine Of a ange Oats PS Give an example. (Unit-Hit | 039) () - List out the similarities and differences between structures and unions. {Unitanf 04a 7. Explain the compatibility lesues of pointers. (Unitsv 1.012) OR 8. Discus various preprocessor commands. s J (Unita }028) ieee tin wag PROGRAMMING FOR PROBLEM SOLVING USING.C-LINTU-KAKINgy 9. Uist and explain afferent catagories of slandard/O funclions. a1, lusts | @)2300m : | Qtg! ne) FADAG oS

You might also like