-
December 31st, 2011, 12:18 PM
Post Count Number #1
Information Technology Model Question Paper : www.psgpolytech.ac.in PSG Polytechnic College
PSG POLYTECHNIC COLLEGE, COIMBATORE - 641 004 SEMESTER EXAMINATIONS MODEL QUESTION PAPER
Semester: 2
Instructions:
1. Group I and Group II questions should be answered in the Main Answer book.
2. In all questions of Group I, the subdivision (a) carries 3 marks each and subdivision (b) carries 5 marks each.
3. Answer any SEVEN questions in Group I.
4. Answer any ONE question in Group II.
5. Answer all questions in Group III multiple choice type questions (which will be given to the candidates half an hour before the scheduled close of the examination) should be answered only in the space provided in the Main Answer Book.
http://psgpolytech.ac.in/coe/index.htm
http://psgpolytech.ac.in/coe/Sem%20I...g%20in%20C.pdf
PSG POLYTECHNIC COLLEGE, COIMBATORE - 641 004 SEMESTER EXAMINATIONS MODEL QUESTION PAPER
Semester: 2
CC0902/ZC0902/IC0902/GC0902 PROBLEM SOLVING IN C
GROUP I Marks : 7 x 8 = 56 1. a) Give the basic structure of C program. b) Explain briefly about the Data types present in C language. 2. a) Explain the precedence of operators in arithmetic operations. b) Determine the value of each of the following logical expressions if a=5, b=10 and c=-6
a) a>b && a<c
b) a<b && a>c
c) a==c || b>a
d) b>15 && c<0 || a>0
e) (a/2.0 ==0.0 && b/2.0 !=0.0) || c<0.0
3. a) Give a short note scanf and printf functions with examples. b) Explain the execution of for-loop statement and give the output when the following segment is executed. Char ch=a; Switch(ch) { Case a?: Printf(A); Case b?: Printf(B); Case c?: Printf(C); } 4. a) How does an ordinary variable differ from an array definition.
b) Explain briefly about the string-handling functions in C with an example for each functions.
Char ch=a; Switch(ch) { Case a?: Printf(A); Case b?: Printf(B); Case c?: Printf(C); }
4. a) How does an ordinary variable differ from an array definition.
b) Explain briefly about the string-handling functions in C with an example for each functions.
5. a) What are the elements of user-defined functions. b) What do you mean by recursion? Explain how an array is passed to function with an example. 6. a) How will you access a variable through the pointer. b) Explain with an example program how pointers are used as function arguments. 7. a) Compare structures and unions. b) Explain the concept of arrays of structures with an example program. 8. a) Give a short note opening and closing a file. b) Explain about the error handling in file operations. GROUP II Marks : 1 x 9 = 9 9. Explain the following decision making and branching statements with an example. a) if-else b) Do-while c) Break and Continue. 10. a) What do you meant by pointers and arrays? How they are declared and accessed. b) Explain how to create a file and I/O operations on files.
GROUP - III
Marks: 10 x 1 = 10
1) The word int? is a A) Keyword B) password C) header file D) language 2) What is the result of 16>>2? A) 4 B) 8 C) 2 D) 5 3) The & operator displays A) Address of the variable B) value of the variable C) character D) number 4) What function is appropriate for accepting a string? A) gets ( ) B) getch( ) C) getche( ) D) scanf( ) 5) Each case statement in switch ( ) is separated by A) break B) continue C) exit ( ) D) go to 6) Main ( ) A) user-defined function B) library function C) keyword D) character 7) An array is a collection of A) Different data types B) same data type C) record D) integer values 8) Which is the correct way to declare pointer? A) int *ptr B) * int ptr C) int ptr D) int_ptr 9) The member variable of structure is accessed by using A) dot (.) operator B) arrow (?) operator C) asterisk (*) operator D) & operator 10) When fopen( ) fails to open a file it returns A) null B) -1 C) 1 D) 0
2) What is the result of 16>>2? A) 4 B) 8 C) 2 D) 5 3) The & operator displays A) Address of the variable B) value of the variable C) character D) number 4) What function is appropriate for accepting a string? A) gets ( ) B) getch( ) C) getche( ) D) scanf( ) 5) Each case statement in switch ( ) is separated by A) break B) continue C) exit ( ) D) go to 6) Main ( ) A) user-defined function B) library function C) keyword D) character 7) An array is a collection of A) Different data types B) same data type C) record D) integer values 8) Which is the correct way to declare pointer? A) int *ptr B) * int ptr C) int ptr D) int_ptr 9) The member variable of structure is accessed by using A) dot (.) operator B) arrow (?) operator C) asterisk (*) operator D) & operator 10) When fopen( ) fails to open a file it returns A) null B) -1 C) 1 D) 0
-
October 12th, 2019, 12:40 AM
Post Count Number #2
-
October 12th, 2019, 12:41 AM
Post Count Number #3
1 sem question paper for diploma in psg college