0% found this document useful (0 votes)
18 views3 pages

C Programming Concepts and Algorithms

The document outlines a curriculum for a Computer Science and Engineering course, covering topics such as input/output statements, algorithms, control statements, arrays, and C programming. It includes various questions and programming tasks designed to assess understanding of these concepts. The content is divided into units and parts, with each section focusing on specific learning objectives and practical applications.

Uploaded by

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

C Programming Concepts and Algorithms

The document outlines a curriculum for a Computer Science and Engineering course, covering topics such as input/output statements, algorithms, control statements, arrays, and C programming. It includes various questions and programming tasks designed to assess understanding of these concepts. The content is divided into units and parts, with each section focusing on specific learning objectives and practical applications.

Uploaded by

neeraja
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

COMPUTER SCIENCE AND ENGINEERING

UNIT I
PART-A (2 MARKS)

1. (a) Describe input and output statements in c. [L2][CO1] [2M]


(b) What is meant by type conversion? [L1][CO1] [2M]
(c) Explain about memory unit and program counter? [L2][CO1] [2M]
(d) Define flowchart and pseudocode? [L1][CO1] [2M]
(e) List the different flow chart symbols? [L1][CO1] [2M]

PART-B (10 MARKS)


2. a) Define algorithm. Explain the characteristic of an algorithm. [L1][CO1] [5M]
b) Design an algorithm for finding average of three number. [L3][CO1] [5M]
3 Explain the basic organization of a computer, focusing on the roles of the [L2][CO1] [10M]
Arithmetic Logic Unit (ALU), memory, input-output units, and the
program counter.
4 a) Define a pseudo code and explain with an example. [L1][CO1] [5M]
b) Define a flow chart? List the different symbols in flowchart. [L1][CO1] [5M]
5 List and explain the various operators with example. [L2][CO1] [10M]
6 a) What is meant by type conversion and casting? Explain the different types [L2][CO1] [5M]
conversion techniques with example
b) Differentiate Top-down and bottom-up approach. [L4][CO1] [5M]
7 a) Explain how to compile and execution of a program. [L2][CO1] [5M]
b) Define a variable. Write the variable declaration. What are the rules for
declaring a variable? [L1][CO1] [5M]
8 a) State the difference between Time complexity and Space Complexity.
[L4][CO1] [5M]
b) Differentiate Top-down and bottom-up approach.
[L4][CO1] [5M]
9 a) Compose a C program for to perform all the arithmetic operations.
[L6][CO1] [5M]
b) Write a comprehensive C program to determine and analyze the size of
various fundamental data types, including integers, characters, floating- [L6][CO1] [5M]
point numbers, and double.
10 a) Define a variable. Write the variable declaration. What are the rules for [L1][CO1] [5M]
declaring a variable?
b) Define algorithm and explain its characteristics? [L2][CO1] [5M]
UNIT II
PART-A (2 MARKS)

1. (a) What is meant by control statements? [L1][CO2] [2M]


(b) State the syntax for nested if else statement? [L1][CO2] [2M]
(c) Compare while and do-while statement. [L4][CO2] [2M]
(d) Describe the syntax of for loop. [L2][CO2] [2M]
(e) Summarize break and continue keyword. [L2][CO2] [2M]

PART-B (10 MARKS)


2. a) List the different conditional statements or decision statements available in [L1][CO2] [5M]
C.
b) Discuss each decision statement or conditional statements with suitable [L2][CO2] [5M]
example
3 a) Develop a C Program to find whether the given number is [L6][CO2] [5M]
even or odd
b) Create a C program to find greatest of three numbers using nested if else [L6][CO2] [5M]
statement
4 a) Write a C Program to reverse a given number. [L6][CO2] [5M]
b) Apply switch case statement to write a C program that [L3][CO2] [5M]
performs
arithmetic operations
5 Write the syntax and illustrate the following statements with [L3][CO2] [10M]
example i) if Statement ii) if else Statement iii) else if ladder
iv) Nested if
statements v) Switch Case
6 a) Discuss the different looping statements with syntax in C [L3][CO2] [5M]
b) Explain the For Loop with syntax and example. [L2][CO2] [5M]
7 a) Differentiate While and Do-while loop with example. [L4][CO2] [5M]
b) Construct a C Program to Perform Fibonacci series using for loop [L6][CO2] [5M]
8 Describe the below looping statements with example [L2][CO2] [10M]
i. While Loop ii. Do-while loop iii. For loop
9 a) Explain a nested for loop with syntax. [L2][CO2] [5M]
b) Compose a c program to print following series. [L6][CO2] [5M]
*
**
***
****
10 a) Discuss about break and continues statements in C. [L3][CO2] [5M]
b) Compose a C program to print following series
1 [L6][CO2] [5M]
22
333
4444
11 a) Compose a C program to print following series [L6][CO2] [5M]
****
***
**
*
b) Construct a C program to find given number is palindrome number or not. [L6][CO2] [5M]
UNIT IIII
PART-A (2 MARKS)

1. (a) Define 1D array. [L1][CO3] [2M]


(b) Define 2D array. [L1][CO3] [2M]
(c) Explain how to initialize the 1D array? [L2][CO3] [2M]

PART-B (10 MARKS)


2. a) Define an Array. Write the syntax for declaring and initializing array with [L1][CO2] [5M]
example.
b) Describe the array subscript in C with example. (or) Explaining how [L2][CO2] [5M]
arrays are initialized and accessed using their index values.
3 a) List the different types of arrays. [L1][CO2] [5M]
b) Explain the One-Dimensional array with example. [L2][CO2] [5M]
4. [L2][CO2] [5M]
a) Explain the Two-Dimensional array with example
b) Compose a C program for Transpose of a given matrix [L6][CO2] [5M]
5 5. a) Develop a C program to display array of elements in given and reverse [L3][CO2] [5M]
order.
b) Compose a C program to find the sum of diagonal elements in an [L6][CO2] [5M]
array
6. 5 6. a) Create a C program to perform the addition of two matrices. [L6][CO2] [5M]
b) Compose a C program to calculate sum of an array elements. [L6][CO2] [5M]

You might also like