Model Paper 1 Dean Format Final
Model Paper 1 Dean Format Final
PART-A
Marks CO BTL PO PI
CODE
1.1 1 1 1 1 1.6.1
Reading and printing characters symbol in flowchart is
represented using _____________.
1.2 1 2 2 2 2.5.2
Write an algorithm to find the area of Circle.
1.3 1 1 2 1 1.6.1
The format identifier ‘%d” is used for _____ data type.
1.4 1 2 3 2 2.5.2
Write the output of the following program:
#include<stdio.h>
main()
printf(“%d”,’a’);
}
1.5 _______ operator returns the number of bytes occupied by the 1 1 1 1 1.6.1
operand
1.6 The _____ specification is used to read/write a hexadecimal 1 1 1 1 1.6.1
integer
1.7 Write the output of the following code? 2 1 2 2 2.5.1
#include<stdio.h>
int main()
a = x * 2 + y / 5 – z * y;
b = ++x * (y – 3) / 2 – z++ * y;
return 0;
1.8 Is the loop in the following program a finite or infinite loop? 1 1 2 2 2.5.1
#include <stdio.h>
int main()
{
for(;;)
{
printf("Hi! ");
};
return 0;
}
1.9 The statement arr[3] = 10; initializes the _________ element of 1 1 1 1 1.2.1
the array with value 10.
1.10 Can a two-dimensional array of specific data type have data of 1 1 2 1 1.2.1
two different data types?
1.11 Output of the following program is ____________. 1 2 3 2 2.5.3
#include <stdio.h>
int main()
{
int a=3;
if(a-3)
{
printf("\nHello RVCE!");
}
if(1)
{
printf("\nHello RVCE, Happy to study here!");
}
return 0;
}
1.15 What is a function prototype? Where can you place these 2 2 2 1 1.6.1
prototypes in a C program?
1.16 Give two difference between Recursion and Iteration. 2 2 2 4 4.4.1
1.17 Define the structure named Student with the following members: 1 4 2 1 1.6.1
Name, Age, USN, Marks of 6 subjects.
PART-B
2 a. With an example, explain the structure of C program. 8 1 1 1 2.1.2
b. What is a computer? With a neat diagram explain the components 8 1 1 1 2.1.2
of a computer system.
3a. Write a short note on basic data types that the C language supports. 6 1 1 1 1.4.1
b. Differentiate between typecasting and type conversion 4 1 2 1 1.4.1
c. Write a program to count number of vowels and consonants 6 2 3 2 2.2.4
OR
4 a. Explain the terms variables and constants. How many type of 4 1 1 1 1.4.1
variables are supported by C?
b. Write a program to calculate salary of an employee, given his basic 6 2 3 2 2.2.4
pay (to be entered by the user), HRA=10% of the basic pay,
TA=5% of basic pay. Define HRA and TA as constants and use
them to calculate the salary of the employee.
c. Write a program to prepare a grocery bill. For that enter the name 6 3 3 2 2.2.4
of the items purchased, quantity in which it is purchased, and its
price per unit. Then display the bill in the following format.