0% found this document useful (0 votes)
24 views4 pages

Logical Dovelopment

Uploaded by

akpirwani47
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views4 pages

Logical Dovelopment

Uploaded by

akpirwani47
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Assignment - 1

[LOGIC DEVELOPMENT]
[PROGRAMMING LANGUAGE]

1. Explain algorithm and flowcharts with example.


2. Explain machine level language in detail.
3. Explain basic syntax of C program.
4. Explain C tokens in details.
5. What is variable and constant explain in detail.
6. Explain following operators
A) Assignment operator
B) Logical operator
C) Conditional operator
D) Increment and Decrement operator

7. Explain get char () and put char () functions.


8. Write a note on print () and scan () functions.

9. Write algorithms and flowcharts for following


A) Accept two numbers from user and find MAX among two
numbers.
B) Accept three numbers from user and find MAX among three
numbers.
C) Accept any number from user and print square and cube of that
number.
D) Accept any number from user and print given number is odd or
even.

10. Explain types of If condition with syntax. (If statement, If-else


statement, If else-if ladder, Nested if).

1
11. Explain switch case statement.
12. What is loop and list out types of loop?
13. Write syntax of while loop and explain working of while loop.
14. Write syntax of for loop and explain working of for loop.
15. Write syntax of do while loop and explain working of do while loop.
16. Explain break statement with syntax and example.
17. Explain continue statement with syntax and example.
18. Explain Got statement with syntax and example.
19. What is an array? List out types of array.
20. Explain declaration and initialization of one- Dimensional array.
21. Explain declaration and initialization of two- Dimensional array.
22. What is string? Explain how to declare and initialize string.
23. Explain gets () and puts ().
24. Explain string handling functions.

2
Practicals
Basic C programs

1. Calculation of the area of circle


2. Swap two numbers without using a temporary variable.
3. Find the roots of a quadratic equation.
4. Take two integer operands and one operator from user, performs the
operation and prints the result.

3
Loops & Nested Loops

1. Write a program to generate multiplication table.


2. Write a program to generate Fibonacci series.
3. Write a program to find the factorial of a number entered by the
user.
4. Write a program to find sum of 1 to n. (1+2+3+………..+n).
5. Write a program to find sum of digits of a number entered by the
user.
6. Write a program to reverse number.
7. Write a program to check whether the number is palindrome or
not.
8. Write a program to check whether the number is Armstrong or
not.
9. Write a program to check whether the number is prime or not.
10. Write a program to generate prime numbers from 1 to n.
11. Write a program to search value in an array.
12. Write a program to find the sum of all the elements of array.
13. Write a program to find maximum number and minimum
number out of an array.
14. Write a program to do additional of two matrices.
15. Write a program to count the number of vowels in string.
16. Write a program to convert string into upper case.

-for any queries please contact the respective faculties of your divisions or class.

You might also like