up4
up4
Student’s ID:
Date:
(These are single best type of questions. Each of the following questions or statements has five suggested
answers or completions. Put tick mark (
) on the best answer. There is no counter marking.)
Signature of Examiner
KHWAJA YUNUS ALI UNIVERSITY
School of Science and Engineering
Department of Computer Science and Engineering
Summer-2023 Final Examination
Program: B.Sc. in CSE (Batch 16th) 1st Year 1st Semester
Course Title: Structure Programming Language
Course Code: CSE 0613 1201
PART-B: SAQ
Time: 1 Hour and 50 Minutes Total Marks: 5x6=30
INSTRUCTIONS: Answer question no. 01 (one) and any 04 (Four) from the rest. Marks are shown by side.
Write a program to calculate the sum and average of a set of N numbers by using array. [04]
3. a What happens if an output data item contains more characters than the specified field width? [02]
)
b Which of the following initialization statements are correct? [04]
I. char str1[4] = “GOOD”;
)
II. char str3[5] = “Moon”;
III. char str4[ ] = {„S‟, „U‟, „N‟};
IV. char str5[10] = “Sun”;
I. (*p1) ++
II. *p1 + (*p2) – –
III. + + (*p2) – *p1