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

pyq (it)

These are the pyq of IR branch on the subject wise notes these give the idea ofyour preperation

Uploaded by

Mohd Anas
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)
28 views

pyq (it)

These are the pyq of IR branch on the subject wise notes these give the idea ofyour preperation

Uploaded by

Mohd Anas
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/ 14
— 7 1079 » (Information Technology) Fi 102: Programming Fundamenta BA Time allowed: 3 Hours Max. Marks: 50 NOTE: Attempt five questions in all, inetuding ‘two questions from each Part Question No. I which is compulsory and selecting: yew Qu Answer the following: 4) How are Com; b) What are ditfen a variable? ¢) Briefly explain the principle of rcutsion with suitable example & Which arithmetic operations are applicable on pointers? Illustrate wit ©) Discuss the characteristics feature of Union datatype? Hers different from Interpreters? ent kinds of storage elas '8e3? What kind of information is provided by stor ample (Sr2e10) PARt Qn2__) Write an algorithm and draw flowehart to add first ten even numbers ©) Compare and contrast: (i) Assembler, Compiler, Interpreter Gi) if-else, switeh, break statements ; (5) Qn3. a) Write program to generate the following pattem 'b)_ What is the difference between do-while and while-do statement? Write a progi suitable looping construct to read salary of N employees, add a bonus of 5 total salary of cach employee, the most ind finally compute the 65) Qn 4. a) Illustrate the advantage of pass be reference mechanism over pass by value using a suitable example b) Given an array of integers. Read a number as input trom the user andl search if it is present in the array or not. (8) ARTI Q05. 8) What are Structures? Write a program that reads the data ofN students related to Roll, Name, ‘marks_sub), marks_sub2, marks_sub3, Pass the aay of struture toa fanetion that computes total marks ofeach student and also the loa class average. &) What are C preprocessor statements? Expl nits significance using suitable examples, 6S) Qn6 a) What are pointers? Discuss the output of following: void main() b) What are macros? Discuss any four fornnattin, id output comm Qn7_ 3) What are the characteristics of different file ypes? How a C progr ean read input directly trom 8 file? Iustrate 5) What isthe difference b.:.seen syntax and semantic evrors? Also explain the error handling ‘mechanism. SS) weer 1 * te R i : printt("\n 9d", kep); // Line number 6 4 What if ine number 6 in the above code is replaced by (i) p-k. (i) *k -*p 65) ion sx er ve xam.Code:0905 Sub, Code: 7887 1129 B.E. (Information Technology) First Semester 1P-102: Programming Fundamentals me allowed: 3 Hours Max. Marks: 50 NOTE: Auempt five questions in all, inchuling Question No. 1 which is compulsory and selecting two questions from each Unit xx 1 Attempt the following: a) What is meant by global and local variables? b). Give an example of a ternary operator. ©) What is the funetion of an assembler? )_ State the funetion of "break key word. ©) Define -formal argument’ of a function 1) What is eall by reference? 2) State the purpose of undef direetive h) What is the stack data structure and its use? i) What is a recursive fumetion and its uses? i) What does the function fyeteQ do? (0x1) UNI IL. Write a program to generate all combinations of 7.8 and 9 using looping constructs (0) IIL, Write a function to obtain prime factors ofa given number (0) IV. Describe how various storage classes can be u d to control properties of variables (10) UNIT—- V. Write a program that interchanges the odd and even elements of an array. (10) VI. What is the function of a macro? How is this different trom a function? (10) VIL Write short notes on:- a) Array of structures b) Handling binary and ASCII files (5.5) ex Sub. Code: 6653 1079 B.E. (Civil) First Semester CS-101: Programming Fundamentals . (Common with CSE) Time allowed: 3 Hours Max. Marks: 50 NOTE: Attempt five questions in all, including Question No. 1 which is compulsory and selecting wo questions from each Unit, sexx 1. Attempt the following:- a) What are static ‘variables? b) Explain the task performed by the fseek() function ©) Differentiate between while and do while statements, d) What do you understand by NULL pointer? ©) Differentiate between structure and union. 3) UNIT=1 I.) Describe switch statement. What is the difference between switch and else-if statement? b) What do understand by recursion? WAP of factorial using recursion? (2x5) Il, a) What are operators? Explain Relational and Logical operators. b) Write a program to multiply matrix A of size m x n by matrix B of size p x q, provided that n=p. (2x5) IV. __a) Differentiate between call by value and call by references with suitable example in = b) What do understand by strings? Explain strlen() and streat() functions. (2x5) UNIT-I1 V. a) What are the mean reason for using structure 7How a structure different from union? b) Write a program to compare two dates enter by user. Make a structure named DATE to store the elements day, month and year to store the dates, if dates are equal, display "equal dates" otherwise display “not equal dates". (2x5) P.T.O. Sub. Code: 6 @) Vie a) Discuss about different types of pointers? How pointers are used with structure b) Write in the file, xs)" program (o read the contents of the file and count the number of char, aractey, VII. Write a short note on:- a) Bit fields b) stderr ©) C-Preprocessor d) fgets) (4x2y) Exam.Code:0905 Sub. Code: 6653 1129 B.E. (Civil Engineering) First Semester 8-101: Programming Fundamentals (Common with CSE) ‘Time allowed: 3 Hours Max. Marks: 50 : Attempt five questions in all, including Question No. I which is compulsory and selecting two questions from each Unit. see 1. Attempt the following: a) Define what are global variable? b) What is the significance of EOF function? ©) What do you understand by macros? d) How-inline functions different from normal functions? e) What do you understand by dangling pointer? (5x2) UNIT-1 Tl. a) Describe switch statement. What is the difference between switch and else if statement? b) What do you understand by operators? Explain Relational and Logical operators. (2x5) IIL. a) Write a program to print Fibonacci series using functions. b) What do you understand by call by value and call by references in function? Discuss with suitable example. (2x5) IV. a) What are strings? Explain various string handling functions. b) Write a program using while loop to reverse the digits of the number. (2x5) UNIT=11 V. a) What are structures? Distinguish between union and structure. b) Define a structure called Cricket that will describe the information player_name, team-name, batting_avg. using Cricket declare an array player with 50 elements and write a program to read the information about all the 50 players and print a team_wise list containing name of player with their batting_avg. (4.6) PTO. VL Vil. ‘Sub. Code: 6653 Q) 8) What is pointer? Differentiate between pointer(*) and address (8) operator. ») Write a program to count number of characters in a file created as text file (2x5) Write a short note on:- a) put() and gete() b) C pre-processor ¢) fread() and fputs() 4) advantages of pointers 42%) ©: 6651 en Exam.Code:0905 Sub. Code: 6653 First Semester CS-101/IT-102: Programming Fundamentals 2x5) (Common with CSE) 10) Time allowed: 3 Hours Max. Marks: 50 NOTE: Aitempt five questions in all, including Question No. I which is compulsory ‘and selecting two questions from each Unit wrx I. Attempt the following:~ 1 a) What is the purpose of retum statement? b) What does the compiler do?” c) How is the array name interpreted when it passed to a function? d) What do you understand by dangling pointer? @) Describe the function felose and fopen. (5x2) UNIT-1 Il. a) Write a program to find the largest of three numbers and give the output in ascending order. A b) Describe different type of Bit-wise operators. (2x5) Ul. _ 2) Write a program to print Fibonacci series using functions. ) What is recursion? What advantage is there in its use? A) IV. a) What are strings? Explain various string handling functions. b) Differentiate between while and do while loops. 4) UNIT -II V. a) What are unions ? Distinguish between union and structure, b) Write a program to accept ID, department and date of joining and print the name of those students who have completed at least five year of service. 46) P.T.O. Sub. Code: 6653 Q) VI. a) What is pointer? How pointers are used with one dimensional array? b) Write a program to read a character from one file and write it on another file. (2x5) Time allov VIL. Write short notes on the following:- Sores: a) malloc() an b) —_C pre-processor ©) putw() ik d) get), fax} eee i MUL. iy Exam.Code:0905 : Sub. Code: 7887 1078 B.E., First Semester . CS-101: Programming Fundamentals Time allowed: 3 Hours Max. Marks: 50 Attempt five questions in all, including Question No. 1 which is compulsory and selecting two questions from each Part. ® or 1, What ate the advantages of using Flow charts? 2. The ASCII code ofthe leterE in decimal is 5. What are the advantages and disadvantages of call by value? 44. Draw the table showing operator precedence and associativity 5. What do you mean by scope of variable? 6. What isthe difference between malloc) and ealloe 7 8 9 0 Convert binary number 11T11011.10¥ into hexadecimal number snd decimal number ‘What happens if the number oF values in the aay italizavion is less than the sizeof array? What is command line argument? 0. What i the difference between Binary and! ASCII files? «ast0) Para (02: a. Draw a flowchart that real a set of numbers from the standard input snd count even and odd mu vers in that set. Also dlisplay the to counts on sexe. eo 1. Discus briefly various software development tools ike Assembler. Compiler. Translnor and Debug ger. @ ¢. Some C program contains the follwing declaration and iis sssgnmen « chart sors] amis Z 7 yanbied 190%, 2xiayh, Tz (3 )eePOIGS) i value oF each expression and assignment expression given above. Also give a comment (o support the answer, i Deiermine _Q3: a. Some © program contains he following declaration and inital assigniets: int az ~__| ohare amar shot & oat x = Tong int omen = double di Determine the data type of cach of the following expression below. Ako ghea comment to syppor ihe answer) ie: Tae ~ [xt ae | ders i (Gage a [sti 1 Using Example, discuss the difference between break and continue statement, _c: Wop in find whet BO to 10 30 t979— Bh 401049. 01038. ‘Also prini appropriate message for each grade € g for grade A print excellent ete (Ql: Write a C program to perform addition of two matrices entered fiom hes @ he input number from keybward (=matks of student) correspon so which yr de. Ii ies between Otherwise-invaid marks @ rd (dimensions of cur own choice).(4) b, Write program fo create a directory of students with roll numbers. The program shod display the oll number for a specified hname and vice-versa o c Explain with example, What is recursion Q Pan-B 5:4. Using examples. tell he difference hetween structures and unions? 2 Define structure for an emplovee having name, age, designation and salary obtains in last five yevts. Write a program to input the details for 20 employees and print the details ofthe employees who have age more than 50 ye us. a «c Explain with examples tspedet and bitfields a QS: What are C-preprocessor and Macros? @ ‘Write a program to find the greatest number in an array using pointers a «With examples diseuss pointer te arrays and pointers te structures @ (Q7:a, Explain any three file-related functions bb With examples. differentiate between Standard and Formatted input and output functions. @ «Discuss briefly stdeer and exit functions. Q) 1078 B.E. (Civil Engineering) First Semester CS-101: Programming Fundamentals (Common with CSE) Time allowed: 3 Hours Exam.Code:0905 Sub. Code: 6653 Max. Marks: 50 NOTE: Attempt five questions in all, including Question No. 1 which is compulsory and selecting two questions from each Unit. er I. Attempt the following: a) b) } 4) What are the advantages of unions over structures? ‘What are advantages and disadvantages of recursion? Explain how gets () function is different from getch()? What will be the output of following C Program? int a=5,b,¢; "Yod %ed Yd \n". a,b,c); ‘What is meant by pass by reference parameter? What is difference between type-casting and type conversion? ‘What are Macros? Write a C program for the following expression: m= k++ +++k where k = 30. ‘What will be final value ofm? i) What is a dangling pointer? j) What are self referential structures? UNIT-1 (1x1) Il. a) Differentiate between structure and an array. How you can declare an array of structures? Give an example 24) b) Explain how the structure variable is passed as a parameter to a function with example. @ P.T.O. M1. IV. VIL VL. Sub. Code: 6653 @ a) Write a C program to find sum of the diagonal elements of a matrix. ) Explain the difference between Call by Value and Call by reference with example 6,5) a) Write a C Program to sort n names alphabetically. ) Write a C Program to concatenate two strings. 6.5) UNIT=I a) List and explain various Pre-processor directives supported in C language. ) What are Pointers? Write a C program to count the number of words in a string using Pointers. (65) a) Write a C program which reads input from a file named "program 1.c" to count number of characters and words of the file. b) Explain how error handling is done in C with examples. (5,5) a) Write a C Program to copy the contents of one file to another. ) Write short note on formatted input and output. (65) weer ly. Ie Exam.Code:0905 Sub. Code: 6653 1128 B.E. (Civil Engineering) First Semester 8-101; Programming Fundamentals (Common with CSE) Time allowed: 3 Hours Max. Marks: 50 NOTE: dttempt five questions in all, including Question No. I which is compulsory and selecting two questions from each Unit i rex I. Attempt the following:- a) What is the purpose of main () function?! b) Differentiate between system software and application software. ©) What is the difference between +#a and a++? 4) Differentiate between structure and union. ©) Distinguish between printf() and fiprint() fimetions (6x2) UNIT=1 I. a) What are the flow control statements? Explain looping statement: b) What are Arrays? Explain different types of arrays, U1, 2) Write @ program using while loop to reverse the digits of the number. b) What do you understand by operators? Explain increment and decrement operators. (5.5) IV. 2) Differentiate between call by value and call by references with suitable example in G b) Write a program to copy one string into another and count the number of character copied. 3 (5,5) UNIT =I V. a) What is structure? How can entire structure be passed to a function? b) Define a structure called Cricket that will describe the information player_name, teamn-name, barting_avg. using Cricket declare an array player with 50 elements and write a program to read the information about all the 50 players and print a team_wise list containing name of player with their batting_avg, (4.6) PTO. Vii Sub, Code: 6653 Q) 1a) What is pointer? Discuss pointer arithmetic in detail? sram to read a character from one file and write it to another file, (5. b) Write a pr a) What is the purpose of the typedef feature? How this feature used in structure (4) b) What are the primary advantages of using a data files. ¢) How can a finetion retum a pointer to its calling routine? (43.3) exer

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy