0% found this document useful (0 votes)
12 views5 pages

BPS Modular Test-1 Q. Bank

Uploaded by

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

BPS Modular Test-1 Q. Bank

Uploaded by

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

Question Bank 2024-25

GIFT (Autonomous) Bhubaneswar


Basic Programming Skills - I (BTBS-T-BS-103)
MODULAR TEST –I Question Bank

Questions Marks CO BTL


1 What is an algorithm? 2 1 1

2 What are language translators? 2 1 1


3 Differentiate compiler and interpreter. 2 1 1

4 Define a computer program. 2 1 1

5 List out benefits of C programming language. 2 1 1

6 List out the steps involved for a typical C program. 2 1 1

7 What are C tokens? 2 1 1

8 Write a C program to find square root of a number. 2 1

9 What are variables? 2 1

10 List out keywords used in C. 2 1 1

11 What is an identifiers? List out different forms of identifiers used in C 2 1 1


program.

12 What are fundamental datatypes available in C? Discuss briefly. 2 1 1

13 What is a literal? List out different types of literals available in C. 2 1 1

14 Define an operator with example. 2 1 1

15 What are unary, binary and ternary operators. Give example. 2 1 1

16 List out all the types of operators based on purpose. 2 1 1

17 What are escape sequences? List out few escape sequences with example. 2 1 1

18 Discuss conditional operator with example. 2 1 1

19 What are different types of errors? Give example. 2 1 1

20 How pre-increment and post-increment operators are working? Give suitable 2 1 1


example.
21 Discuss break and continue statements. 2 1 1

22 What is an infinite loop? Why does it happed? 2 1 1

23 Give truth table for logical AND and logical OR operators. 2 1 1

24 Discuss shift operators. 2 1 1

Basic Electronics Engineering Page 1


25 How multiple if statement is differening from nest if statements. Give 2 1 1
example.

26 What are operator precedence and associativity? 2 1 1

27 What is a header file. 2 1 1

28 List out any 8 header file names with their purpose. 2 1 1

29 What are pre-tested and post-tested loops. 2 1 1

30 Discuss printf() and scanf() statements in detail. 2 1 1

31 Discuss goto statement. 2 1 1

32 What are nested loops? 2 1 1

33 What is nested if statement? 2 1 1

34 What is if...else...if ladder. 2 1 1

35 Can we design a switch...case statement without default keyword? Justify. 2 1 1

36 What is a flowchart? Give an example. 2 1 1

37 What is a pseudo-code? Give an example. 2 1 1

38 What is the purpose of an algorithm? 2 1 1

39 What are pre-processor directives? 2 1 1

40 Briefly present the history of C programming. 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

43 Find 2's compliment of -45 2 1 1

44 What is C library? Discuss. 2 1 1

45 What is the importance of main() function? 2 1 1

46 What are documentations? 2 1 1

47 List out and briefly discuss all the relational operators. 2 1 1

48 Discuss boolean values in C. 2 1 1

49 Write a C program to swap two numbers. 2 1 1

50 List out the shapes used to design a flow chart. 2 1 1

51 What are memories? 2 1 1

Basic Electronics Engineering Page 2


52 Justify that a computer understands binary language only. 2 1 1

53 Differentiate High Level Programs and Low Level Programs. 2 1 1

54 List out different types of statements used in C and discuss briefly. 2 1 1

55 What is the role of break and default keywords used in switch...case 2 1 1


statements.
56 What is format strings/format specifiers used in C? 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

59 How does a preprocessor statement differ from an actual processing statement. 2 1 1

60 Differentiate algorithm and computer program. 2 1 1

Section B BTL

1 What are different data types available in C. Discuss briefly. 6

2 What is an identifier? List out rules for a valid identifier with example. 6 1 2

3 Discuss switch...case statement in detail. 6 1 2

4 Discuss for loop in detail. 6 1 2

5 Differentiate while and do...while with example. 6 1 2

6 Design the following pattern: 6 1 2


1
10
101
1010
10101

7 With a suitable and correct example, identify all the sections of a typical C program. 6 1 2

8 Write a C program to check a number is palindrome number or not. 6 1 2

9 Write a C program to check a number is prime or not. 6 1 2

10 Differentiate compiler time errors and runtime errors. 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.

13 Write a C program to find first n terms of Fibonacci series. 6 1 2

14 Write a C program to check a number is Armstrong number or not. 6 1 2

Basic Electronics Engineering Page 3


15 Write a C program to check a number is perfect number or not. 6 1 2

16 Discuss bitwise and (&), bitwise or (|) and bitwise xor (^) operator in detail. 6 1 2

17 Design an algorithm to reverse a number. 6 1 2

18 Design a flow chart to check a number is prime number or not. 6 1 2

19 Design a pseudo-code to input a number and count number of odd and even digits. 6 1 2

20 Discuss arithmetic and assignment operators in C. 6 1 2

21 Define the terms expression, operator and operand. And explain. 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.

24 Write a C program to find reverse of a number till users interest. 6 1 2

25 Write a C program to find the sum of an entered number with its reverse number. 6 1 2

26 Write a C program to find the sum of digits of an entered 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 Write a C program to find n terms of a Fibonacci series. 8 1 3

2 Discuss all the types of if statements with their usage. 8 1 3

3 Write a C program to list all strong numbers in between 1 to 1000. 8 1 3

4 Discuss bitwise operators. 8 1 3

Basic Electronics Engineering Page 4


5 Write a C program to find grade of a student from the entered marks for few subjects of 8 1 3

6 Design the following pattern:


the student using switch...case.

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

9 Describe all the types literals with appropriate illustration. 8 1

10 What are pseudo-code and flow chart? Describe with examples. 8 1

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

1 Discuss all the types of loops in C in detail. 10 1 4

2 Discuss the structure of a typical C program with an example. 10 1 4

3 What are different types of conditional statements used in C? Explain sufficiently. 10 1 4

4 Briefly discuss all the types of operators in C with example. 10 1 4

5 Discuss C tokens. 10 1 4

** BTL: Bloom’s Taxonomy Level

** CO: Course Outcomes

BTL are:

1. Remembering
2. Understanding,
3. Applying,
4. Analysing,
5. Evaluating
6. Creating

Basic Electronics Engineering Page 5

You might also like