Exam Details

Subject introduction to programming using c – ii (paper – iii)
Paper
Exam / Course b.sc. – i (ecs)
Department
Organization solapur university
Position
Exam Date November, 2018
City, State maharashtra, solapur


Question Paper

B.Sc. I (Semester II) (CBCS) Examination, 2018
introduction to programming using c ii (Paper III)
Day and Date Tuesday, 20-11-2018 Total Marks 70
Time 10.30 a.m. to 1.00 p.m.
Instructions All questions are compulsory.
Figures to the right indicate full marks.
1. Choose correct alternatives. 14
The keyword used to transfer control from a function back to the calling
function is
switch goto
go back return
Which function definition will run correctly
int sum(int int int sum(int int
return {return
int sum(k, None of the mentioned
return
Any C program
Must contain at least one function
Need not contain any function
Needs input data
None of the above
The default parameter passing mechanism is
Call by value
Call by reference
Call by value result
None of these
Assume that float takes 4 bytes, predict the output of following program
#include <stdio.h>
#include <conio.h>
void main()

float arr {12.5, 10.0, 13.5, 90.5, 0.5}
float *ptr1
float *ptr2 ptr1 3
printf("%f", *ptr2)
printf("%d", ptr2 ptr1)


90.500000 3 90.500000 12
10.000000 12 0.500000 3
The statement int**a
is illegal
is illegal but meaningless
is syntactically and semantically correct
none of these
User defined data type can be derived by
struct enum
typedef all of the mentioned
Number of bytes in memory taken by the below structure is
struct test

int k
char c

Multiple of integer size Integer size character size
Depends on the platform Multiple of word size
What is the similarity between a structure, union and enumeration
All of them let you define new values
All of them let you define new data types
All of them let you define new pointers
All of them let you define new structures
10) Which of the following statements correct about the below code
maruti.engine.bolts 25
Structure bolts is nested within structure engine
Structure engine is nested within structure maruti
Structure maruti is nested within structure engine
Structure maruti is nested within strcuture bolts
11) The value of EOF is
0 1 10
12) Which of the following mode argument is used to truncate
a f w t
13) A preprocessor command
Need not start on a new line
Need not start on the first column
Has as the first character
Comes before the first executable statement
14) Each screen point is referred to as
Resolution Pixel Persistence Dot Pitch
2. Attempt any seven questions from the followings 14
Define and declare structure within structure.
What is the purpose of register keyword
List the applications of pointer.
What is the difference between structure and union
What is the use of "#define" in C
What is file pointer in C
Define and declare getpixel() and putpixel() functions.
Define typedef and how structure is declared using typedef.
What is function prototype
3. Attempt any two questions from the followings 10
Write a short note on random access of file.
Explain array of structure with example.
Write a program to find the factorial of a number using recursion.
What is C preprocessor directive List important preprocessor
directives. 4
4. attempt any two questions from the followings 14
What is pointer Write a program to swap two numbers by using
pointers.
Explain different file operations.
Write a program that stores the information (name, roll and marks) of a
student and displays it on the screen using structures.
5. attempt any two questions from the followings 14
Explain various storage classes in C with example.
Write a program to read information from keyboard and write into the file,
then read data from the file and display on the screen (console).
What is Structure Explain pointer to structure with example.


Other Question Papers

Subjects

  • advanced java (paper – iii)
  • advanced microprocessor
  • compiler construction (paper – iv)
  • computer graphics
  • core java (old cgpa) (paper – iii)
  • data communication and networking – i
  • data communication and networking – ii (paper – i)
  • data communications and networking – i (paper – i)
  • data structures (paper – iv)
  • data structures algorithms enginering – ii
  • database management system – i (paper – ii)
  • database management system – ii (paper – ii)
  • dbms using oracle
  • descriptive statistics – i
  • descriptive statistics – ii
  • digital electronics – i
  • digital electronics and microprocesor – ii
  • discrete structure
  • embedded system – i
  • embedded system – ii (paper – v)
  • english (compulsory) (new) (cbcs)
  • fundamental of computer
  • golden petals
  • introduction to programming using c – ii (paper – iii)
  • introduction to web designing (paper – ii)
  • linear electronics – i
  • linear electronics – ii
  • linux operating system (new)
  • literary quest
  • mathematical algebra
  • mathematics(numerical methods)
  • microprocesor – ii
  • object oriented programming using c++
  • object oriented programming using java (paper – i)
  • on track – english skills for success
  • oop using c++ – ii
  • operating system
  • operating system – ii (paper – i)
  • operations research
  • organization of pc – ii
  • peripherals and interfacing – ii
  • pr obabili ty theory – ii
  • probability theory – i (paper – ix)
  • programming using “c”
  • python – i (paper – v)
  • software engineering
  • software enginering – ii
  • theory of computer science
  • theory of computer science (paper – iv)
  • visual programming – i
  • visual programming and aplication software – i (old)
  • visual programming and aplication software – ii(paper – vi)
  • web technology and e-commerce – i
  • web technology and e-commerce – i (paper – v)
  • web technology and e-commerce – ii (paper – v)