About Me

My photo
Vijayapur, Karnataka, India
I am interested in Teaching.

Thursday 27 June 2019

Modulewise Questions to be practice on "C for Problem Solving" II Sem. Engineering Students (VTU, Belagavi)


Module-1

Block diagram of a computer with explanation of each part in brief.

List of input devices with explanation in brief about each.

List of output devices with explanation in brief about each.

Generations of Computers

Types of Computers

What is computer network? list its advantages.

Write differences between LAN, WAN and MAN

Discuss network topologies (bus, star, ring and mesh) with diagram and examples.


Module-2

Structure of a c program with programming example.

C-tokens (list and explain in brief)

What is identifier? Discuss rules for defining identifiers with valid and invalid examples for each rule.

What is variable? Discuss its declaration and initialization with syntax and examples.

What are formatted input and output functions(scanf and printf)? Discuss with syntax and examples.

What are unformatted input and output functions? Discuss with syntax and examples.

List and discuss the following operators with explanation and examples.

Arithmetic
Relational
Logical
increment and decrement
Conditional operator
Bitwise operators
Special operators (comma and sizeof)

What is typecast(type conversion)? Discuss implicit and explicit type conversions with examples.

Write c programs for following.

To find simple interest (algorithm, flowchart, pesudocode, program)

To find area and circumference of a circle (algorithm, flowchart, pseudocode, program)

To find area and perimeter of rectangle.

To find area of triangle by reading breadth and height of it.

To find area of triangle by reading 3 sides of it (a,b,c)

To swap to values using temporary variable.

To swap to values without using temporary variable.


Module-3

Discuss the following conditional(decision making/selection/branching) statements with syntax, flowchart and examples.
simple if
if else
nested if
else if ladder
switch

Discuss the following loop statements with syntax, flowchart and examples.
while
do while
for

Write differences between while and do while statements.

Write differences between break and continue statements.

Discuss the following storage classes used in C with examples.

automatic variables
global variables
static variables
register variables

Programs:
To check for leap year
To check, whether the number N is even or odd number.
To check, whether the number is PALINDROME or not.
To find factorial of N
GCD and LCM using Euclid's algorithm.
To print first N fibonacci numbers.

Module-4

What is one dimensional array? Discuss its declaration and initialization with syntax and examples.

What is two dimensional array? Discuss its declaration and initialization with syntax and examples.

What is string? Discuss its declaration and initialization with syntax and examples.

Discuss all string handling functions with syntax and examples.

Programs:
Bubble sort
Linear search
Binary search
Sum and Avg of N numbers
Find maximum and minimum of N numbers

Module-4

Discuss the 3 elements of user defined functions with syntax and examples.

Discuss categories of function with examples.

What are actual and formal parameters?Discuss with examples.

Discuss parameter passing mechanism. (call by value and call by reference)

What is recursive function?Give example.

Programs:
Function to check for prime number.
Function to find length of a string.



Module-5

What is structure?Discuss declaration of structure and structure variable with syntax and examples.

What is array of structure?Give programming example.

What is nested structure?Give example.

Discuss structures and functions with example.

What is pointer? Discuss its declaration and initialization with syntax and examples.

What is dynamic memory allocation? Discuss memory allocation functions like malloc(), calloc(), realloc(), fee().

What are pre-processors? Discuss three types with examples.

Programs:

Swap two values using pointers.

Standard deviation

C Program to print Pascals Triangle (Click below link)
https://drive.google.com/file/d/1gv62LCGTury6zdevYFfRUUrPRME17fxV/view?usp=sharing

Note: Send your feedback to cs.kusur@gmail.com or Write comments.
       
























Sunday 9 June 2019

Toppers for First, Second and Third IA : Congratulations!....Keep it up....

Toppers for First IA

Roll No USN Students Name First IA
6 2BL18CS010 ARJUN NAIK  50
34 2BL18CS030 JAHNAVI DESHPANDE 50
41 2BL18CS037 LAXMI AWATI  50
51 2BL18CS051 PRADNYA AWATI  50
59 2BL18CS068 SADAF MULLA 50
61 2BL18CS071 SAHANA M TATTIMANI  50
62 2BL18CS074 SAYEDA MATHINA FARHA KAZI 50
60 2BL18CS072 SAHANA C SAJJAN 49
318 2BL18CS076 SHIFA K. ATTAR 47
14 2BL18CS023 DEV PATEL 45


Toppers for Second IA
Roll No USN Students Name Second IA
6 2BL18CS010 ARJUN NAIK  49
34 2BL18CS030 JAHNAVI DESHPANDE 49
39 2BL18CS034 KAVYA NARAGUND 48
60 2BL18CS072 SAHANA C SAJJAN 47
10 2BL18CS016 BASAVARAJ S MUTTAGI  45
61 2BL18CS071 SAHANA M TATTIMANI  45
41 2BL18CS037 LAXMI AWATI  44
7 2BL18CS012 AYUSH MANJUNATH NAIK 42
54 2BL18CS055 PRIYA AGARWAL 42
25 2BL18CS056 RACHANNA HANAMANTH CHIGADANI  38
50 2BL18CS050 POORNIMA CHINTAMANI 38
59 2BL18CS068 SADAF MULLA 38

Toppers for Third IA
Roll No USN Students Name Third IA
34 2BL18CS030 JAHNAVI DESHPANDE 46
6 2BL18CS010 ARJUN NAIK  43
10 2BL18CS016 BASAVARAJ S MUTTAGI  43
33 2BL18CS027 GEETA NIDONI 41
7 2BL18CS012 AYUSH MANJUNATH NAIK 40
14 2BL18CS023 DEV PATEL 36
41 2BL18CS037 LAXMI AWATI  36
50 2BL18CS050 POORNIMA CHINTAMANI 34
52 2BL18CS053 PREETI CHAVAN 34
318 2BL18CS076 SHIFA K. ATTAR 32

First, Second and Third IA Marks of II Sem A Division Subject: C for Problem Solving

Click on below link to know your first, second and third IA marks outof 50.


II Sem A Division IA Marks

Dear students,

I am sorry to say that, still you need to improve lot to pass this subject in VTU main examination.

If, you have any doubts in any topic, kindly come to college. I am ready to explain you all.

All of you belongs to Computer Science and Engineering. So, prepare well for examinations....

Do not be absent for Tuesday and Wednesday classes 11th and 12th July 2019

Good luck...

Come and contact


Tuesday 4 June 2019

CPS: II Sem 'A' Division, Assignment Questions on Arrays, Strings, Functions and Pre Processor.

Array:
Discuss the declaration and initialization of one and two dimensional arrays with syntax and examples.

Programs on Arrays:
Sum and Average of N numbers using array.
Implementation of linear search
Implementation of binary search
Implementation of bubble sort
Programs on arrays (taught in class)

Strings:
What is string?Discuss its declaration and initialization.
Reading and writing strings.
String handling functions (10 types)
Programs on strings (taught in class)

Functions:
Discuss the elements of user defined function with syntax and example.
Explain the categories of user defined functions with examples.
Write user defined function to find length of a string.
Write a c program to implement bubble sort technique.
What are recursive function? 
Write recursive function to find factorial.
Write recursive function to convert binary to decimal.
Differentiate the call by value and call by reference techniques.
What are actual and formal parameters? Give example.
Write user defined function to swap two values using pointers.

Preprocessor:
What are preprocessors? Discuss the types with syntax and examples.
1)Macro substitution directives
2) File inclusion directives
3) Compiler control directives.



GCD of two numbers and its application...

The greatest common divisor (gcd) of two numbers is the largest positive integer that divides both numbers without leaving a remainder. The ...