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

CCP I Assignment

This document outlines an assignment for C Programming from the Department of Computer Science and Engineering at Government SKSJTI Bangalore. It includes a series of questions and programming tasks covering topics such as computer block diagrams, data types, input/output statements, operators, control statements, loops, and various programming exercises. The assignment aims to assess students' understanding and application of fundamental programming concepts in C.

Uploaded by

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

CCP I Assignment

This document outlines an assignment for C Programming from the Department of Computer Science and Engineering at Government SKSJTI Bangalore. It includes a series of questions and programming tasks covering topics such as computer block diagrams, data types, input/output statements, operators, control statements, loops, and various programming exercises. The assignment aims to assess students' understanding and application of fundamental programming concepts in C.

Uploaded by

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

Department of Computer Science and Engineering.

Government SKSJTI Bangalore 560001

I st assignment C Programming

1. Explain the block diagram of computer with a neat diagram.


2. Mention types of data. Explain in detail.
3. Mention types of input and output statement.
4. Explain formatted input and output statement with syntax and examples.
5. Define operator. Explain any 6 operators with suitable example
6. Explain logical, conditional and increment and decrement operator.
7. Explain swith statement with syntax and example.
8. What is if statement? Explain with syntax and example any three if statement.
9. Explain condition statement with syntax and example.
10. What is looping? Mention types loops.
11. Difference between while and do while loop.
12. Explain while and do while loop with syntax and example.
13. Explain the for loop with syntax and example.
14. Mention types of unconditional statement explain any two statement.
15. Explain increment and decrement statement.
16. Write a program to find area of triangle.
17. Write a program to find simple and compound interest.
18. Write a program to find factorial of a number.
19. Write a program to find reverse of a number.
20. Write a GCD of a two number.
21. Write a program to print multiplication table upto 20.
22. Write the basic structure of C program. Explain each section briefly with suitable example.
23. Write a program to design simple calculator.
24. Describe the types of computer
25. Define variable and rules for writing variable name.
26. Write a program to check whether given number is prime or not.
27. Write a program to find whether given number is even or odd.
28. Compare switch with else-if ladder with an example.
29. Identified whether following variables are valid variable or not. If not give reason.
1. 1999-space 2. _apple 3. iNtel 4. One_2 5. For 6. 12 7. i.b.m. 8. Help+me
30. Write a program to print Pascal triangle.

You might also like