MCA TermEndPracticalExam Set2
MCA TermEndPracticalExam Set2
Program: MCA
Subject: Programming in C – Practical
Course Code:
Set No: 2
Maximum Marks: 30
Prepared by: Dr Priyanka Mathur
Problem 1
Problem Statement 1: Write a C program to input number from user and find sum of
all even numbers between 1 to n.
Instructions:
Test cases:
Problem 2
Problem Statement 2: Write a program in C to find the maximum number between two
numbers using a pointer.
Instructions:
Expected Output: The learner should be able to compare two values and print the
greater amongst them using pointers.
Test cases:
Q2. What are the 3 parameters that are necessarily given for correct execution of a while loop?
Q6. What is the difference between the local variable and global variable in C?