Question bank(Magadh University)
2015
1.What is the function of 'if-statement'?Explain with example.
2.Write a program in C to determine whether n given number is odd or even and print message.
NUMBER IS EVEN
OR
NUMBER IS ODD
Without using else option.
3.What are pointers?Why are they required? How do you declare and initialize them? Write a program to read two integers x and y and swap the contents of rhe two variables x and y using pointer.
4.What do you mean by strings?State some library functions for string manipulation.Also create a function C to find the length of the string.
5.Write a program to find the number of vowels from a given text line.
6.Differeciate between an array and a structure.Explain with an example.
7.Differetiate between:
(a) rational operator and logical operator
(b)++x and x++
(c) logical AND and OR
(d) >> and << operators
Question bank (AKU)
2014
1.What are the variables and constent in C programming language? What are the ranges of different variables in C programming langauge ?Given one example for each variable type usage with proper jestifiction in favour of your decision for that using that type of variable.
2. Write a C program for currence conversion to INR based on following table :
Dollar 70 INR
Pound 100 INR
AUD 65 INR
Ruble 20 INR
3.Write a C program to input string "ARAY KUMAR" and print it on the screen.
4.What are different types of loop in C program ? Discuss and compare between each type of loop with proper code smippts.
5.write a C program to print all prime number till 1000.
6.Write a C program to implement a simple calculator program which is capable of doing the basic arithmetic opration over two numbers.
7. What are difference types of decision-making options avalable in C programing langauge? Discuss each type with proper code illustration.
8. Write a C program witch will input a string in lower case and will print the output in upper case .
9.Difine one- and two-dimentional arrays of C programming language. Write a C program to store the following information in a two-dimensional array:
1 2 3 4
2 4 6 8
3 6 9 12
4 8 12 16
Please post comment.Also you can post programming related problems.
No comments:
Post a Comment