Vous êtes sur la page 1sur 5

1.

2.
3.
4.
5.
6.
7.

What are the two major components of a computer system?


List and explain the five parts of hardware?
Explain what is application software and system software
Explain different types of computer languages
Explain Structure of a C program?
Explain the steps in program development in C with a neat diagram
Which of the following are valid or invalid variable names and why?
a) second.sale
b) reward c) 1st_seat
d) total_salary
8. Differentiate algorithm , pseudocode, flowchart with an example each
9. Explain the different ways to initialize strings
10.What is a constant in C language? explain different types of constants and
special symbols used in C programs.
11.Explain compound assignment operators with an example
12.What are the operators available in C language? Explain relational,
arithmetic, conditional operators
13.Bitwise operators are used to flip bits, explain the same?
14.Explain the representation of array in memory
15.What is printf() function. Define the format specifier of printf()
16.Give the list of C tokens and explain them
17.Explain the rules to use a switch statement?
18.What is compiler, differentiate compiler and interpreter
19.Explain different types of loops in a programming language? Pre test and post
test
20.Explain different types of conditional statements with examples and flow
chart.
21.What is Assembler ?
22.What is an algorithm? Write an algorithm to read five integers and find out if
the values are in ascending order?
23.Define symbolic constant? How do you declare symbolic constant ?
24.Explain the difference between while and do..while loop statement with an
example each
25.Draw a flowchart to read ten integer values and print the sum of squares of
the values
26.Write a c program to evaluate the following expression 5a 4+3a3-4a2+6a+12
27.differentiate Event-controlled and Counter-Controlled Loops.
28.Explain conditional operator with an example?
29.What is Lvalue and Rvalue of an expression?
30.What is unformatted I/O ? give the list of functions used in C programs.
31.Draw a flowchart to represent nested if , nested if..else statement
32.Explain dangling else problem?
33.What is the difference between gets() and scanf()
34.Initialize a 3 dimensional array with an example
35.What is a string , what are the different ways of declaring strings in C
language?
36.Explain nested for loop with matrix addition program
37.Describe the way of string representation in main memory?
38.What is the difference between break and continue?
39.Explain the rules of identifier with examples.
40.What is a datatype?give the primary data types in C language.

41.List out the different expressions in C language


42.differentiate entry and exit controlled loop statements?
43.What is the difference between variable and constant? Explain different types
of constants with examples
44.What is flowchart? Explain the symbols used in flowchart with examples
45.Write the difference between algorithm and pseudocode
46.Write a C program to read an integer and calculate the factorial for the read
integer
47.Write a C program to evaluate the following expressions
1.

n ( x 1x 2x 3 x n )

2.

n
1
1
1
+
++
x1 x2
xn

3.

1 1 1 1 1
1
1
+ + + + +
+
0! 1! 2 ! 3 ! 4 !
n
!
( n1 ) !

48.Draw a flowchart to read 10 positive integers and print how many are
multiples of 7
49.What is the difference between variable declaration, definition and
initialization, give an example each
50.Write a C program to read a list of integers from the keyboard and print the
sum and average of the integers
51.Write a C program to read a list of integers from the keyboard and print the
largest and smallest integer among the list
52.Write a C program to print the following formats using for loops
1
1
1
1
1

1
1
1
1
1

2
23
234
2345

1
2
3
4
5

1
11
111
1111

*
*
*
*
*

2
33
444
5555

1
1
1
1
1

*
**
***
****

2345
234
23
2

53.Write a C program to find the number of digits in a given integer


54.Write a C program to ask the user to enter a list of integers. The program is to
determine the largest value entered and number of times it was entered.
Ex: input is
5

15

15

15

37

It should print -----> largest value is 15 and it occurred 3 times


55.Write a C program to check whether a given number is strong number or not
Ex:- input is 134, output is 1!+3!+4!=1+6+24=31, not strong number

Input is 145 output is 1!+4!=5!=1+24+120=145 , strong number


56.Write a C program to calculate the average of elements in a array?
57.Write an algorithm to find out all the factors of a given positive integer
58.Write short notes on bitwise operators
59.Write a C program to print first 50 numbers in the following series
1,4,7,10
60.Write a C program to calculate XY
61.Write a C program to check whether a given number is perfect number or not
Perfect number is a positive number which sum of all positive divisors
excluding that number is equal to that number. For example 6 is perfect
number since divisor of 6 are 1, 2 and 3. Sum of its divisor is
1 + 2+ 3 =6
6 is the smallest perfect number. Next perfect number is 28 since 1+ 2 + 4 +
7 + 14 = 28
Some more perfect numbers: 496, 8128
62.Write a C program to check whether a given number is prime number or not
63.Write a C program to print the prime numbers in a given range
64.Write a C program to print the ASCII table
65.Explain increment and decrement operators with examples (examples should
involve logical operators)
66.What is data type? Explain integer data type considering the qualifiers
available for integer type (Ex: signed, short, long etc)
67.write a C program using while loop to reverse the digits of the number. For
e.g. if 12345 is input , output should be 54321.
68.Write a program to swap two numbers without using a temporary variable?
69.Write a C program to read n elements into an array and display the even
numbers, odd numbers, sum of all even and sum of all odd numbers.
70.Write a C program to perform addition, subtraction, multiplication, division
and modulo division on two integer and display the result using switch
statement?
71.Using a conditional operator write a C program to Check whether the given
number is even or odd.
72.Write a C program to calculate the roots of quadratic equation
73.Write a C program to read two values and perform bitwise AND and bitwise
OR operations
74.A Fibonacci sequence is defined as follows: the first and second terms in the
sequence are 0 and 1. Subsequent terms are found by adding the preceding
two terms in the sequence. Write a C program to generate the first n terms of
the sequence.
75.Write a C program to find the largest of six numbers by using loops?
76.Write a program to extract the last two digits of a number and add them

77.The sum of cubes of individual digits of the given number is called Armstrong
Number. Write a C program to check whether the given number is Armstrong
Number or not. (Example: 153=13+53+33 is an Armstrong number)
78.Write a C program to calculate sum of n natural numbers using a goto
statement.
79.Write a C program to read a positive integer X and check whether it has value
in between 5 and 15. If 5<X<15 then increment X by 1, shift the bits of X by
2 to the left, otherwise decrement the X by 1, shift the bits of X by 3 bits to
the right.
80.Write a C program to read a positive integer in the range of 101 to 999 and
print the digit in units place, digit in ten place, digit in hundreds place.
Ex:- input is 437, print as digit in hundreds place is 4, digit in tens place is 3 ,
digit in ones place is 7.
81.Write a C program to add two complex numbers, consider real part of two
complex numbers as two variables, similarly imaginary part of complex
numbers as two variables, print the result as a complex number
82.What is type conversion? Explain external and internal type casting with an
example each
83.Write an algorithm to read 10 positive integers and find out how many are
perfect squares (such as 49 81). You may assume that input values are in the
range of 1- 1000
84.Write a C program to print the last digit of a given number?
85.Write a C program to read two integers X,Y and print -1 if X<Y , 0 if X==Y
otherwise 1.
86.Write a C program that reads the values of unit price, quantity, discount
percentage on unit price and some tax of 2%. Find the final bill and print it.
87.Write a C program to read two positive integers X,Y and find X/Y. print true if
result of the division is greater than 3 otherwise false (Note: Y value should
not be ZERO)
88.Write a C program to read the N numbers from the user and find the average
of the N numbers, print the numbers whose value is greater than the average
calculated
89.Write a C program to obtain the transpose of a 3 X 3 matrix .
90.Write a C program to print the multiplication table of a given number
91.Write a C program to print the minimum and maximum of an array?
92.Write a C program to check whether a given number is a palindrome or not?
93.Write a C program to read a String and find the length of string without using
string handling functions
94.Write a C program to do the following
1) Read two integers
2) Read two characters
3) Increment 1st integer by 1 and decrement 2nd integer by 1
4) Add the 1st integer to 1st character
5) Subtract the 2nd integer from 2nd character
6) Print the two characters along with their ASCII value

Vous aimerez peut-être aussi