Trending ▼   ResFinder  

Pune University - Pune University - FY BSc COMPUTER SCIENCE (Paper - II), April 2010 (Old Course)

4 pages, 34 questions, 0 questions with responses, 0 total responses,    0    0
pune_sci
  
+Fave Message
 Home > pune_sci >

Instantly get Model Answers to questions on this ResPaper. Try now!
NEW ResPaper Exclusive!

Formatting page ...

Total No. of Questions : 5] [Total No. of Printed Pages : 4 [3718]-52 F. Y. B. Sc. (Computer Science) Examination - 2010 COMPUTER SCIENCE PAPER - II INTRODUCTION TO PROGRAMMING AND PROGRAMMING IN C (Old 2004 Pattern) Time : 3 Hours] [Max. Marks : 80 Instructions : (1) All questions are compulsory. (2) Figures to the right indicate full marks. (3) Neat diagrams must be drawn wherever necessary. Q.1) Answer the following : (Any Ten) (1) [1x10=10] (2) What is the difference between Machine and Assembly Languages ? What do you mean by Keywords ? List any two Keywords. (3) Give purpose and syntax of Enumeration Constant. (4) What is the difference between getch( ) and getche( ) functions ? (5) What will be the value of b and c variables for execution of the following code : int a = 5; b = ++a; (6) c = a ; What is the role of break and continue statements in C Language ? (7) State difference between Actual and Formal Parameters. (8) Explain purpose and syntax of malloc( ) function. (9) What is the use of tolower( ) and toupper( ) functions ? (10) Explain how memory utilization happens in Union ? (11) Explain any two functions available in math.h file. (12) Give Syntax and example for drawing a Line. [3718]-52 1 P.T.O. Q.2) Answer the following : (Any Four) [5x4=20] (a) What is meant by Pointer ? Explain Arithmetic Operations with Pointer Variables. (b) What is the difference between if-else and switch statements ? Explain their use in detail. (c) Define Recursion. Write a recursive function for finding factorial of a given number. (d) What is the Scope of Variables ? Explain any two storage classes in detail. (e) Explain in detail structure within structure by giving proper example. Q.3) Answer the following : (Any Four) [5x4=20] (a) Write an algorithm and draw a flowchart to print sum of digits of a given number. (Ex. 579 21) (b) Find and justify output of the following program : #include <stdio.h> main( ) { int lno, count, a = 1, n = 4; for (lno = 1; lno < = n; lno++) { for (count = 1; count < = lno; count++) { printf( %d \ t , a); a++; } printf( \n ); } } [3718]-52 2 Contd. (c) (d) (e) [3718]-52 Complete program by writting proper function definitions : #include <stdio.h> main( ) { int n, s, c; printf( Enter a number : ); scanf( %d , & n); s = sqr(n); c = cube(n); printf( \n square of number is %d , s); printf( \n cube of number is %d , c); } Find output of each code by using the given values : a = 1101 b = 0111 printf( \n %d , a & b); printf( \n %d , a|b); printf( \n %d , a b); printf( \n %d , a<<3); printf( \n %d , ~ a); Find and justify output of the following program : #include <stdio.h> #include <string.h> main( ) { char s1[40] = Hello ! ; char s2[ ] = How are you ? ; int a, i; strcat (s1, s2); a = strlen(s1) i = 0, while (i < a) { printf( %c , s1[i]); i++; } } 3 P.T.O.

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

Additional Info : F.Y. B.Sc. COMPUTER SCIENCE (Paper - II) : Introduction to Programming and ‘C’ Programming (Old 2004 Pattern), Pune University
Tags : fy bsc computer science question papers, fybsc computer science paper II, C Programming introduction, 2004 Pattern, old course, pune university exam papers, university of pune question papers, pune university science, pune university courses, bsc pune university, msc pune university, pune university solved question papers, pune university model question paper, pune university paper pattern, pune university syllabus, old question papers pune university  

© 2010 - 2025 ResPaper. Terms of ServiceContact Us Advertise with us

 

pune_sci chat