Exam Details
Subject | c-programming for problem solving | |
Paper | paper 2 | |
Exam / Course | b.tech | |
Department | ||
Organization | Visvesvaraya Technological University | |
Position | ||
Exam Date | 2018 | |
City, State | karnataka, belagavi |
Question Paper
C-Programming for Problem Solving
18CPS13/23
Module-1
1
What is a Computer? Explain different type of computers. 6M
Define and give example for the following. 6M
i. Variable
ii. Constant
iii. Declaration
Convert the following mathematical expressions in to expression.
a. X=e power root of( power root of( y)/xsin root(
b.
c. C=3 root
d. 8M
OR
2
What are input device? Mention explain any 2 input devices. 6M
Mention different types of operators and explain any 4 in detail with explain. 6M
Differentiate between primary memory secondary memory? 4M
Evaluate each of the following expression independent of each other.
The declaration initialize statement is ...... int
4M
Module-2
3
What is the purpose of scanf() &printf() statement? Explain the formatted printf() along
with the respective example. 6M
Write a Program to check whether a given number is even or odd using if -else
statement. 6M
Write a Program to perform the simple calculator operations like addition, subtraction,
multiplication division use 'switch' statement in program. 8M
OR
Explain different types of loops in C with syntax example. 8M
Explain the syntax of nested 'if...else' statement. Write a Program to find largest of these
numbers using nested statement. 6M
Write a Program to find the sum of odd numbers natural numbers using do
loop. 6M
Module-3
5
Define array? Explain the declaration initialization of single dimensional array with
example. 5M
Explain any five string manipulation library functions with example. 8M
Write a Program to check a number is prime or not? 7M
OR
6
How string is declared &initialized? Explain string input/output functions with an
example. 6M
Write a Program to read N numbers into an array perform Linear search 8M
Write a Program to concatenate two strings without using built in function. 6M
Module-4
7
What are functions? Explain the difference between user defined& library functions.
6M
Differentiate between call by value and call by reference with examples. 6M
Write a Program to find the binomial co-efficient of a number using recursion. 8M
OR
8
Explain the different elements of user defined functions in detail. 8M
Write a Program to find the largest element in an array. 6M
Write a Program to calculate the Fibonacci sequence using recursion functions.6M
Module-5
9
Explain how the structure variable can be passed as a parameter to a function with an
example. 6M
Define pointer. Explain the declaration &initialization of pointer. 6M
Write a Program to maintain a record of student details. Print the marks of the student
given student name as input using structures. 8M
OR
10
Explain the array of pointers with examples. 6M
What are pre-processor directives? Explain #define #include pre-processor directives.
6M
Write a Program using pointers to compute the sum, mean standard derivation of all
elements stored in an array of real numbers. 8M
18CPS13/23
Module-1
1
What is a Computer? Explain different type of computers. 6M
Define and give example for the following. 6M
i. Variable
ii. Constant
iii. Declaration
Convert the following mathematical expressions in to expression.
a. X=e power root of( power root of( y)/xsin root(
b.
c. C=3 root
d. 8M
OR
2
What are input device? Mention explain any 2 input devices. 6M
Mention different types of operators and explain any 4 in detail with explain. 6M
Differentiate between primary memory secondary memory? 4M
Evaluate each of the following expression independent of each other.
The declaration initialize statement is ...... int
4M
Module-2
3
What is the purpose of scanf() &printf() statement? Explain the formatted printf() along
with the respective example. 6M
Write a Program to check whether a given number is even or odd using if -else
statement. 6M
Write a Program to perform the simple calculator operations like addition, subtraction,
multiplication division use 'switch' statement in program. 8M
OR
Explain different types of loops in C with syntax example. 8M
Explain the syntax of nested 'if...else' statement. Write a Program to find largest of these
numbers using nested statement. 6M
Write a Program to find the sum of odd numbers natural numbers using do
loop. 6M
Module-3
5
Define array? Explain the declaration initialization of single dimensional array with
example. 5M
Explain any five string manipulation library functions with example. 8M
Write a Program to check a number is prime or not? 7M
OR
6
How string is declared &initialized? Explain string input/output functions with an
example. 6M
Write a Program to read N numbers into an array perform Linear search 8M
Write a Program to concatenate two strings without using built in function. 6M
Module-4
7
What are functions? Explain the difference between user defined& library functions.
6M
Differentiate between call by value and call by reference with examples. 6M
Write a Program to find the binomial co-efficient of a number using recursion. 8M
OR
8
Explain the different elements of user defined functions in detail. 8M
Write a Program to find the largest element in an array. 6M
Write a Program to calculate the Fibonacci sequence using recursion functions.6M
Module-5
9
Explain how the structure variable can be passed as a parameter to a function with an
example. 6M
Define pointer. Explain the declaration &initialization of pointer. 6M
Write a Program to maintain a record of student details. Print the marks of the student
given student name as input using structures. 8M
OR
10
Explain the array of pointers with examples. 6M
What are pre-processor directives? Explain #define #include pre-processor directives.
6M
Write a Program using pointers to compute the sum, mean standard derivation of all
elements stored in an array of real numbers. 8M
Other Question Papers
Subjects
- additional mathematics – ii
- additional mathematics-i
- advanced calculus and numerical methods
- alternative building materials
- analog and digital communication systems
- analog electronic circuits
- analog electronics
- automobile engineering
- automotive electronics
- basic electrical engineering
- basic electronics i & ii
- c-programming for problem solving
- calculus and linear algebra
- clinical instrumentation – ii
- computer integrated manufacturing
- constitution of india, professional ethics and human rights
- construction management and entrepreneurship
- control engineering
- design for manufacturing
- design of machine elements
- design of steel structural elements
- digital electronics
- digital system design
- electric circuit analysis
- electrical and electronic measurements
- electronic instrumentation
- elements of civil engineering and mechanics
- elements of mechanical engineering
- embedded system design and programming
- energy auditing
- energy engineering
- engineering chemistry
- engineering electromagnetics
- engineering graphics
- engineering mathematics – iv
- engineering mathematics-i
- engineering mathematics-ii
- engineering mathematics-iii
- engineering physics
- environmental protection and management
- finite element method
- finite element method of analysis
- fluid power systems
- heat transfer
- high voltage engineering
- highway engineering
- integration of distributed generation
- kannada kali
- kannada mansu
- machine learning
- matrix method of structural analysis
- mechatronics
- metal forming
- mobile communication
- network analysis
- numerical methods and applications
- oops with c++
- power and industrial electronics
- power system analysis 2
- power system protection
- smart materials & mems
- software application lab
- solid waste management
- technical english – 1
- total quality management
- transformers and generators
- tribology
- water resources management
- water supply and treatment engineering