BPS Modular Test-1 Q. Bank
BPS Modular Test-1 Q. Bank
17 What are escape sequences? List out few escape sequences with example. 2 1 1
41 Find out valid and invalid identifiers from the given list: n1, 1n, __1__, ___, 2 1 1
123, n 1, n1n, n%n, auto, AVERAGE.
42 Convert the numbers into binnary: -456, 1234567. 2 1 1
57 What are the different ways to represent floating point literals? Describe with 2 1 1
examples.
58 What is a function in C? How does it differ from a program? 2 1 1
Section B BTL
2 What is an identifier? List out rules for a valid identifier with example. 6 1 2
7 With a suitable and correct example, identify all the sections of a typical C program. 6 1 2
11 What are complex logical expressions? What are the operators involved in it describe 6 1 2
with examples?
12 How nested if statement differs from simple if statement with a condition using 6 1 2
logical AND (&&) operators. Discuss with example.
16 Discuss bitwise and (&), bitwise or (|) and bitwise xor (^) operator in detail. 6 1 2
19 Design a pseudo-code to input a number and count number of odd and even digits. 6 1 2
22 List out all the operators used in C starting from highest precedence value in 6 1 2
decreasing order.
23 What is a nested loop? In which situation a nested loop is required? Describe with an 6 1 2
example.
25 Write a C program to find the sum of an entered number with its reverse number. 6 1 2
27 What are the input/output statements used in a C program? Discuss how to use it. 6 1 2
28 Write a C program to reverse a number using goto statement. (Don't use loop). 6 1 2
29 Write a C program to input a number and display the number in the following 6 1 2
pattern.
input: 345254
output:
345254
34525
3452
345
34
3
30 Write a C program to find sum of even digitd and odd digits separately. 6 1 2
Section C 2 or 3
1
8 1 3
121
12321
1234321
123454321
1234321
12321
121
1
7 Write a C program to find the difference between greatest and smallest number out 8 1 3
of some entered numbers.
8 Discuss all the types of if statements with proper justification. 8 1 3
11 Design a pseudo-code to input a number and find the largest and smallest digit and 8 1
their occurrences.
Section D 4,5,6
5 Discuss C tokens. 10 1 4
BTL are:
1. Remembering
2. Understanding,
3. Applying,
4. Analysing,
5. Evaluating
6. Creating