Explain different forms of if statements with example of each. Write a program to check whether a number entered is divisible by both 5 and 7.
Define array. Why do we need array? Write a program to multiply two matrices.
What is structure? How is it different from array? Create a structure named student with name, address, and age as its members. Write a program using this structure to read data of 10 students and display data of those students who live in "Kathmandu".
Attempt any Eight questions
[8x5=40]Explain algorithm with example. What are the benefits of using algorithms?
What is identifier? Explain rules for valid identifiers with example. What is keyword?
What do you mean by formatted I/O? Explain.
Write a program to find sum of first n odd numbers.
Write a program to find sum of two integers using your own function. Define Pointer. Write a program to illustrate passing pointers to function.
Explain different file opening modes.
Write a program to draw an ellipse using graphics function.
Write short notes on:
a) Problem analysis
b) Increment and decrement operator