0% found this document useful (0 votes)
33 views

Loops Arrays

The document contains questions about various C programming concepts including looping statements, conditional statements, arrays, strings, and mathematical operations. Specifically, it asks about the syntax of looping statements like for, while, do-while loops and how break and continue can be used. It also asks questions about finding square roots, checking palindromes, unconditional statements, data types like arrays and strings, string manipulation functions, and implementing searches and sorts.

Uploaded by

anand_gudnavar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

Loops Arrays

The document contains questions about various C programming concepts including looping statements, conditional statements, arrays, strings, and mathematical operations. Specifically, it asks about the syntax of looping statements like for, while, do-while loops and how break and continue can be used. It also asks questions about finding square roots, checking palindromes, unconditional statements, data types like arrays and strings, string manipulation functions, and implementing searches and sorts.

Uploaded by

anand_gudnavar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1. Write the syntax of all looping control statements.

Explain how break and continue


statements are used in C program with example.
2. Write a C program to find the square root of a given number without using library
function.
3. Implement a C program to find the reverse of an integer number and check whether it is
palindrome or not.
4. What are unconditional statements? Explain any two with example.
5. List the types of looping statements in C. Explain any two with syntax and example
6. Explain the syntax of do-while statement. Write a C program to find the factorial of a
number using do-while where the number ‘n’ is entered by the user.
7. List all the conditional control statements used in C. Write a C program to find the
biggest of three numbers.
8. Write a C program to find the reverse of an integer number NUM and check whether it is
a palindrome or not
9. List the differences between the while loop and do-while loop. Write a C program to find
the sum of Natural numbers from 1 to N using ‘for’ loop.
10. What is a loop? Explain the different loops in C language.
11. Show how break and continue statements are used in a C program with example.
12. Design and develop a C program to reverse a given four digit integer number and check
whether it is a palindrome or not.
13. Write a c program to evaluate the polynomial equation f(x)= = a4x4 + a3x3 + a2x2 + a1x +
a0, for a given value of x and its coefficients.
14. What is an array? Explain the declaration and initialization of one dimensional array.
15. Write program for the following implementations
Linear search, Binary search, bubble sort
16. Explain the declaration and initialization of two dimensional array.
17. WAP to perform matrix multiplication.
18. What is a String? How strings are declared and initialized in C programming
19. Explain string manipulation functions with usage of them in a programming.
a. strcpy
b. strcmp
c. strcat
d. strlen
e. strlwr
f. strupr
g. strrev
20. Explain String input and output functions.

You might also like