0% found this document useful (0 votes)
57 views2 pages

Pic Unit Test Question Bank

hahaha

Uploaded by

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

Pic Unit Test Question Bank

hahaha

Uploaded by

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

PIC UT-I QUESTION BANK

1.Explain the syntax of the following Input and output operations in C .


printf
scanf
2.Write algorithm and draw flowchart for multiplication of two float numbers.
3. Write an algorithm for addition of two numbers.
4.Write a program to display your name, percentage, roll no.
5.Write program to display first 20 natural numbers
6.What are keywords in C? Can you give five examples?
7.Write a program to check entered integer is even or odd.
8.Draw a flowchart to find the largest of two numbers
9.Explain the concept of if-else in detail with the help of syntax and example.

10.Write a program to accept the number from the user and check whether thenumber
is perfect number or not.

11.Difference between while and do while loop. Also explain the usage of break and
continue keywords.

12.Write a program to accept the string from the user and change the case of eachletter

13.Write a C program to check whether a given number is positive or negative


14.Write a C program to print all natural numbers between 1 to 10
15.Write syntax of following control statement with example.
1.for loop 2.do while loop 3.for loop
16Write a C program to print day of week name using switch case.

17.Write a program in C to find the sum of all elements of an array.


Consider array int a [5] = {4,9,3,6,5};
18.Write a program in C to store following elements in an array and print them.
Consider array int a [5] = {5,6,9,10,15};
19.Write a C program to read and write a string using gets () and puts () function.
20.Explain following string functions.
1.Strlen ()
2.Strcat ()

You might also like