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) [Link]
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
[Link] is a constant in C language? explain different types of constants and
special symbols used in C programs.
[Link] compound assignment operators with an example
[Link] are the operators available in C language? Explain relational,
arithmetic, conditional operators
[Link] operators are used to flip bits, explain the same?
[Link] the representation of array in memory
[Link] is printf() function. Define the format specifier of printf()
[Link] the list of C tokens and explain them
[Link] the rules to use a switch statement?
[Link] is compiler, differentiate compiler and interpreter
[Link] different types of loops in a programming language? Pre test and post
test
[Link] different types of conditional statements with examples and flow
chart.
[Link] is Assembler ?
[Link] is an algorithm? Write an algorithm to read five integers and find out if
the values are in ascending order?
[Link] symbolic constant? How do you declare symbolic constant ?
[Link] the difference between while and do..while loop statement with an
example each
[Link] a flowchart to read ten integer values and print the sum of squares of
the values
[Link] a c program to evaluate the following expression 5a 4+3a3-4a2+6a+12
[Link] Event-controlled and Counter-Controlled Loops.
[Link] conditional operator with an example?
[Link] is Lvalue and Rvalue of an expression?
[Link] is unformatted I/O ? give the list of functions used in C programs.
[Link] a flowchart to represent nested if , nested if..else statement
[Link] dangling else problem?
[Link] is the difference between gets() and scanf()
[Link] a 3 dimensional array with an example
[Link] is a string , what are the different ways of declaring strings in C
language?
[Link] nested for loop with matrix addition program
[Link] the way of string representation in main memory?
[Link] is the difference between break and continue?
[Link] the rules of identifier with examples.
[Link] is a datatype?give the primary data types in C language.
[Link] out the different expressions in C language
[Link] entry and exit controlled loop statements?
[Link] is the difference between variable and constant? Explain different types
of constants with examples
[Link] is flowchart? Explain the symbols used in flowchart with examples
[Link] the difference between algorithm and pseudocode
[Link] a C program to read an integer and calculate the factorial for the read
integer
[Link] 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 ) !
[Link] a flowchart to read 10 positive integers and print how many are
multiples of 7
[Link] is the difference between variable declaration, definition and
initialization, give an example each
[Link] a C program to read a list of integers from the keyboard and print the
sum and average of the integers
[Link] a C program to read a list of integers from the keyboard and print the
largest and smallest integer among the list
[Link] 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
[Link] a C program to find the number of digits in a given integer
[Link] 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
[Link] 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
[Link] a C program to calculate the average of elements in a array?
[Link] an algorithm to find out all the factors of a given positive integer
[Link] short notes on bitwise operators
[Link] a C program to print first 50 numbers in the following series
1,4,7,10
[Link] a C program to calculate XY
[Link] 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
[Link] a C program to check whether a given number is prime number or not
[Link] a C program to print the prime numbers in a given range
[Link] a C program to print the ASCII table
[Link] increment and decrement operators with examples (examples should
involve logical operators)
[Link] is data type? Explain integer data type considering the qualifiers
available for integer type (Ex: signed, short, long etc)
[Link] a C program using while loop to reverse the digits of the number. For
e.g. if 12345 is input , output should be 54321.
[Link] a program to swap two numbers without using a temporary variable?
[Link] 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.
[Link] a C program to perform addition, subtraction, multiplication, division
and modulo division on two integer and display the result using switch
statement?
[Link] a conditional operator write a C program to Check whether the given
number is even or odd.
[Link] a C program to calculate the roots of quadratic equation
[Link] 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.
[Link] a C program to find the largest of six numbers by using loops?
[Link] a program to extract the last two digits of a number and add them
[Link] 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)
[Link] a C program to calculate sum of n natural numbers using a goto
statement.
[Link] 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.
[Link] 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.
[Link] 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
[Link] is type conversion? Explain external and internal type casting with an
example each
[Link] 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
[Link] a C program to print the last digit of a given number?
[Link] a C program to read two integers X,Y and print -1 if X<Y , 0 if X==Y
otherwise 1.
[Link] 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.
[Link] 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)
[Link] 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
[Link] a C program to obtain the transpose of a 3 X 3 matrix .
[Link] a C program to print the multiplication table of a given number
[Link] a C program to print the minimum and maximum of an array?
[Link] a C program to check whether a given number is a palindrome or not?
[Link] a C program to read a String and find the length of string without using
string handling functions
[Link] 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