Skip to content

Programming and Problem Solving

CSE · Quiz · Fall 24

This browser can’t show the PDF here

Open it, and your phone’s PDF viewer takes it, or download it.

Read the questions as text

Read off the PDF by AI, so it may have mistakes. The PDF is the original.

CT / Quiz - 01 CSE 113 Programming and Problem Solving Set-B Time: 40 mins Marks: 15 1) Define data type modifier with example. Find the output of the following program: #include<stdio.h> int main() { int p=2,q=6; q -= p++; p = p && !q; int r = --p; printf("p=%d\nq=%d\nr=%d\n",p,q,r); return 0; } (05) 2) What do you mean by tokens and classify them? Suppose 'AHAS' is a 6 bit long signed integer which has a format specifier '%rt'. Now, explain the output of the program: #include<stdio.h> int main() { AHAS n=39; printf("%rt",n); return 0; } (05) 3) What do you mean format specifier. Explain whether the following identifier are legal or illegal: 3D, pi, %done, num$, area_under_the_curve (05)