munotes®

BSc CS Sem 2 BSc CS Semester 2 (2016 2017) 2017 Programming With C Question Paper - Mumbai University | munotes

BSc CS Semester 2 (2016 2017) Question Paper, 2016.pdf
SEM 2 · BSc CS Semester 2 (2016-2017) · 1 May 2025

Loading PDF...

Questions asked in this paper

  • Please check whether you have got the right question paper
  1. Q2 Figure to the right indicate full marks Illustration, in-depth answers and will be appreciated
  2. Q4 Mixing of sub-question is not allowed (Each of 5 marks) A i. Which is the only function all C program must contain? 15
    • a. start()
    • b. system()
    • c. main()
    • ii. We can insert pre written code in a C program by using
    • a. #read
    • b. #get
    • c. #include
    • d. #put
    • iii. A pointer is
    • a. used to create variable
    • b. Avariable that stores address of an instruction
    • c. Avariable that stores address of other variable
    • d. Allofthe above
    • iv. The keyword used to transfer control from a function back to the calling function is
    • a. switch
    • d. return Difference between structure and union is
    • a. define function within structure but nit within a union We can define function within union but nit within a structure
    • c. way memory is allocated
    • d. difference
    • a. An------- constant refers sequence of digits
    • b. A program consist of a for statement within another for statement, is called as Afunction that calls itself is known as a =---------function
    • d. The variable declared ina structure definition are called its Function is used to.close a file What does “&” do in scanf()?
    • c. are arrays? List any two functions, which are used to manipulate string?
  3. Q2 — Attempt the following (Any three) (each of five marks) 15 marks
    • a. ashort note on basis structure of C program
    • b. is meant by formatted input and output?
    • Q.P. Code :03594
    • c. What are relational operators? Write a C program to show implementation of relational operators inc
    • d. Discuss the concept of nesting of loop with an example
    • e. Write programs to print numbers from 1 to 20 in ascending order using do-while loop
    • f. What is null statement? Explain a typical use of it
  4. Q3 the following (Any three) (each of five marks) 15 marks
    • a. What are multi-dimensional arrays? How one can assess an array element? Explain with the help of.an
    • b. Briefly explain the working of following function
    • c. strings? Write ac program to declare two string “computer” and “science”, use an appropriate string manipulation function to display output as one string “computer science”
    • d. How function declaration differs from function definition? Write a C program to show function calling by passing a value
    • e. Define recursion. Write a program to calculate factorial of a number user, using recursion
    • f. Write a short note on global and local variable
  5. Q4 the following (Any three) (each of five marks) 15 marks
    • a. What is pointer? How is pointer initialized?
    • b. List different benefits of pointers
    • c. How structures are initialized? How does structure differs from array?
    • d. What is the use of dynamic memory allocation?
    • e. Discuss the working of following functions
    • f. Compare and contrast between c structures and python tuples Attempt the following (Any three) (each of five marks) 15
    • a. Write on automatic and explicit type conversation
    • b. program which consist of a function and show the use of return statement
    • c. program which uses nested structure
    • d. Compare static typing in c vs dynamic typing
    • e. the following

Read from the scan above, so a character or two may differ. The scan is the original.

Report or request

Something wrong on this page? Report it and we will check it against the scan.

Quick Help

No. The full paper opens straight away, with no login and nothing to pay.

Something wrong with this paper? Report it.

Connected Papers
BSc CS / Sem 2 · 47 papers
Browse all →
Questions? Email contact@munotes.in
Done!
Done!