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

Programming in C Board questions for practice

Wonderful fhjgdkvsrhhrffgh

Uploaded by

saadkazi7446
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)
7 views

Programming in C Board questions for practice

Wonderful fhjgdkvsrhhrffgh

Uploaded by

saadkazi7446
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/ 2

Programming in C Board questions for practice

2 Marks questions
Answer any 7

1. Draw flowchart for checking whether given number is positive or


negative
2. List any four keywords used in C
3. Draw and label any four symbols used in flowcharts and state their use
4. Define the terms :i)Flow chart ii) Algorithm 5. State any four data
types used in ‘C’.
6. Draw flowchart for addition of two numbers.
7. List logical operators in ‘C’.
8. State any four decision making statements.
9. Define array and list its types
10. Define structure. Give one example of structure declaration.

4 Marks Questions Any 3

1. State the use of printf() and scanf() with suitable example


2. Describe the following terms: i) Keyword ii) Identifier iii) Variable iv)
Constant 3. Explain increment and decrement operator with
example
4. Explain any four guidelines for preparation of flowchart.
5. 4 Marks Questions Any 3

4 Marks Questions Any 3

1. Explain data type conversion with example.


2. Describe scanf() function with its syntax and example.
3. Write an algorithm and draw a flowchart to find the largest number
from three numbers.
4. Write a program using switch statement to check whether entered
character is vowel or consonant

4 Marks Questions Any 3

1. Write an algorithm and draw flowchart to print even numbers


from 1 to 50. 2. Write a program to sum all odd numbers between
1 to 20
3. Differentiate between while loop and do while loop.
4. Explain while loop with example.
4 Marks Questions Any 3

1. Differentiate between character array and integer array with respect


to size and initialization
2. Illustrate initialization of one-dimensional array with example
3. Write a program for addition of two 3x3 matrices
4. write a program to declare structure employee having data member
name, age, city. Accept data for three employees and display it.

Answer all 3

1. Write a program to declare an array of 5 elements and display sum of


all array elements.
2. Write a C program to declare structure employee having data member
name, age, designation and salary. Accept and display information of 1
employee.
3. Write a program to accept ten numbers in an array. Sort array
elements and display it..

You might also like