B.Sc. (Computer Science) Sem 2 Programming with C 2016-17 Question Paper - Mumbai University | munotes
Loading PDF...
Questions asked in this paper
- Please check whether you have got the right question paper
-
Q2 Figure to the right indicate full marks Illustration, in-depth answers and will be appreciated
-
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?
-
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
-
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
-
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.
What do you need?
Tap one.
The answers are on this page
You can read the first answer here. The box further down shows how to read all of them.
Read it here, any time
We keep checking and updating our papers and notes, and adding more. A saved copy would be an old version. Reading on munotes.in always gives you the latest one.
I paid, but I can't open it
Please type an email, or a 10-digit phone number.
Done
If we find your payment, we send a link to the email you paid with. Open it to read.
Check your email in 2 minutes. Also check Spam.
No email after 10 minutes?
Something else
Please write a little more, so we can help.
Your email app opens with this. You can add more there. We reply by email.
Something wrong on this page? Report it and we will check it against the scan.
Quick Help
Related Resources
Something wrong with this paper? Report it.