0% found this document useful (0 votes)
25 views

Ba Paper 3

Uploaded by

Manpreet Grewal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Ba Paper 3

Uploaded by

Manpreet Grewal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

COMPUTER SCIENCE

Paper: CS04: Theory-B:C Programming


Time : Three Hours] [Maximum Marks : 30
Note. Attempt one questions from each Section-A, B, C and D.Question No. 9 (Section-E) is
compulsory question.
Section-A
1 What are differences between Algorithm and Flowchart? Explain with example.
2 What are various rules for constructing constants and variables in C language ?
Section-B
3 What are the various arithmetic operators in C language? Discuss the meaning of each.
Also discuss the precedence and associatively of operators.
4 How is "switch” statement different from “if statement ? Discuss with example.
Section-C
5 What is Recursion ? What are advantages of using recursion?
6 How are arrays passed to functions ? Write a program in C language to search an element
in an array by using the concept of passing an array to a function.

7
o m
Section-D
What do you understand by strings ? Write a program in C language to copy one string to

8 .r c
another without using inbuilt function.
What do you mean by structures in C language. Write a program in C language to create a

print the data for one


p e
structure of student containing name, class, age and address of student. Input the data and
m
a (Compulsory Questions)
o
9
p
Discuss the following in short:
r
(a) What are identifiers and keywords in C language ? .r c
(c) b
(b) Write a short note on structure of C program.

p e
What is difference between local and global variables ?

a
(d) What is difference between array and string variables

p
b r

You might also like