0% found this document useful (0 votes)
13 views

Basic Questions for beginners in C Programming

This document is a question bank for the Programming in C course at Shri Bhagubhai Mafatlal Polytechnic, covering topics from basic programming concepts to control structures and operators. It includes questions on C programming applications, data types, algorithms, flowcharts, operators, expressions, and control structures, along with practical programming exercises. The document serves as a study guide for students preparing for their first periodic test in the second semester.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Basic Questions for beginners in C Programming

This document is a question bank for the Programming in C course at Shri Bhagubhai Mafatlal Polytechnic, covering topics from basic programming concepts to control structures and operators. It includes questions on C programming applications, data types, algorithms, flowcharts, operators, expressions, and control structures, along with practical programming exercises. The document serves as a study guide for students preparing for their first periodic test in the second semester.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SHRI VILE PARLE KELAVANI MANDAL’S

SHRI BHAGUBHAI MAFATLAL POLYTECHNIC

Programme: Computer Engineering Semester: II (A&B)


Course: Programming in C Course code: PRC238912
Question Bank for PT - 1
Un it 1 Introduction to Programming and C fundamentals
1 State any 4 application of C programming
2 Define Identifier? Enlist rules for writing an identifier Give example
3 Enlist any 5 ‘C’ datatypes with suitable example
4 Define: Algorithm and Flowchart
Any four advantages of flowchart and Algorithm.
Write an algorithm and Draw the flowchart
a) To check whether the number is even or odd number
b) To print the multiples of a given number
c) To check whether the number is a multiple of a given number
d) To print the maximum or minimum of 3 numbers
e) Input fifty numbers and calculate their sum.
5 Describe following terms with example : 1) Keyword 2) Token 3)constants
6 Describe basic structure of C programs using suitable diagram
7 Explain process of executing C programs using flowchart
8 Explain Storage classes in C Programming with example

Unit 2 Operators & Expressions


9 State the significance of sizeof operator with suitable example
10 Explain Relational operators and logical operator
Program based on Relational operators and logical operator (Question will be given in
QP)
11 State the significance of conditional operator with suitable example
12 Explain bitwise operators and shift operator with example program
13 Write the table of Operator precedence and its associativity
14 Distinguish between implicit and explicit type conversion with suitable example
15 Demonstrate difference b/w pre increment and post increment operator with example
program

Unit 3 Control Structure


16 Write ‘C’ Program to print sum of all odd numbers in the range of 1 to 30 using
continue statement
17 syntax of control structures a) if-else b)switch-case c)nested –if else d)else-if
ladder
SHRI VILE PARLE KELAVANI MANDAL’S
SHRI BHAGUBHAI MAFATLAL POLYTECHNIC

18 syntax of Loop structures a)for loop b) while loop c) do-while loop


19 Difference between entry controlled loop and exit controlled loop
20 Write ‘C’ Program to check whether entered number is Armstrong or not. (Use do-
while loop only).
21 Write ‘C’ Program to check whether entered number is Strong number or not.
Write a program to display the sum of digits of a user input number using do-while
loop
(Use do-while loop / while loop only).
22 Write ‘C’ Program to print factorial of entered number
Write ‘C’ Program to count the number of digits in a given number
23 Write the syntax of switch-case statement.
a) Write a program to perform the mathematical operations (+, -, *, /, %) and display
the results using switch case.
b) Write a program to display grades based on given range (range: 90 to 100 – ‘A+’, 70
to 89 – ‘A’, 50 to 69 – ‘B’, 40 to 49 – ‘C’ and Below 40 ‘FAIL’ using switch case.
c)Write the syntax of switch-case statement. Write a Menu-Driven program to perform
square of a number, cube of a number, complement of a number and display the
results using switch case.
d)Write a program to read the weekday no and print week day using switch case
(eg: 1=Monday 2= Tuesday etc)
24 Write ‘C’ Program to check whether entered number is palindrome or not. (Use do-
while loop only)
25 Difference between
1) break and continue statement
2) If and switch
26 Any Pattern Programs (* pattern or number pattern)
27 Syntax of goto statement with example
Program based on go to statement (Question will be given in QP)
28 ‘C’ programming Code will be given to you as a question, you have to find the
errors and write the correct code with output
29 Explain the following with example program a)nested for loop ii)nested if statement
30 Write a program to display multiplication table (up to 12) for a user entered
number using for loop

*******************************ALL THE BEST*******************************

You might also like