0% found this document useful (0 votes)
195 views26 pages

MCS 011

This document provides an overview of the contents covered in the MCS-011 Problem Solving and Programming course. It outlines 12 units that cover basics of C programming, data types, operators, decision and loop statements, arrays, strings, functions, structures and unions, pointers, the C preprocessor, and file handling in C. For each unit, it lists key concepts and examples along with practice problems and programs related to those concepts. The overall summary provides a high-level outline of the main topics and sub-topics included in an introductory C programming course.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
195 views26 pages

MCS 011

This document provides an overview of the contents covered in the MCS-011 Problem Solving and Programming course. It outlines 12 units that cover basics of C programming, data types, operators, decision and loop statements, arrays, strings, functions, structures and unions, pointers, the C preprocessor, and file handling in C. For each unit, it lists key concepts and examples along with practice problems and programs related to those concepts. The overall summary provides a high-level outline of the main topics and sub-topics included in an introductory C programming course.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 26

Exam aasaan hai

(BCA & MCA)


MCS-011
PROBLEM SOLVING AND
PROGRAMMING
Basics(unit 1,2,3)
1. What is the difference between High level language and low level
language ? Why C is referred as middle level language ?
2.Give the structure of a C program.(d2016)
3. What is the purpose of using header files in C.
4.Algorithm,flowchart and program:-
->write a C program to divide two numbers.
->add "n" numbers and find their average(2016)
->find factorial of a given no.
->find all Armstrong numbers in a given range (
e.g. range of 0 and 999)
->Fibonacci series
->Check that a given number is Prime or not
->convert a decimal number into an octal number
equivalent.
UNIT 4(Expressions and operators)
1.Relational operator with example
2.Logical operator with example
3. Arithmetic operator with example.
4.Bitwise operator with example.
4.Type casting with example.
5. Size of operator with example.
6.Dference between '&' and '&&'
7.What do you mean by scope of a variable
UNIT 5(DECISION AND LOOP)
1. What do you understand by a decision-
control statement ? Give an example of
each.
2.Difference between while and doWhile
3.Goto statement With example(Write a
program to print first 10 even
numbers using goto statement.)
4.Brake statement With example
5.Comtiniue statement With example
6.Switch statement With example
7.Star pattern and string pattern program
* 1 I
C A
** 12 IN
CO BAB
*** 123 IND
COB CBABC
**** 1234 INDI
COBO BAB
INDIA
COBOL A
INDI
IND
IN
I

12345 1
2345 222
245 33333
45 4444444
5 33333
222
1
UNIT 6(ARRAYS)
1. What is an array ?
2.Program to find maximum marks among
the 10 students using array(block 2,page 31).

3.Matrix sum.
4.Matrix multiplication.
5.WAP in C to sort a given list of numbers
using bubble sort.
UNIT 7(STRINGS)
1. What is a string ?
2.Short note with example:-
I.Strln()
Ii.Strcpy ()
iii.Strcmp ()
iv.Strcat ()
v.Strrev ()
3.Program to concatenate two strings without using strcat()
function.
4.Program to find string length without using the strln()
function.
5.Program to convert the lower case letters to upper case in a
given string without using strupp() function.
6.Write a program to test whether the given string is a
palindrome or not.
UNIT 8(FUNCTIONS)
1.Function prototypes with example(10 marks)
2.Types of variables and storage classes
3.Local and global variables
4.Write a program using function-
I)with no arguments and with no return
value.
Ii)with no arguments and with return
value.
Iii)with arguments and with no return
value.
Iv)with arguments and with return value.
5.Call by value with example
6.Call by reference with example
7.Difference between call by value and call by
reference.
8.Write a program to swap the values using
the pass by value and pass by reference
methods, separately
9.Recursion with example
10.Wap to find factorial using recursion
11.Fibonacci series with recursion.
UNIT 9(STRUCTURE AND UNION)
1.Write a program, using structures to read and
display data for 10 students.
2.Write a program using C to calculate the net
salary if the basic, TA, DA, allowances and
deductions are Given, using structures
concept.
3.Difference between structure and union
4.Short note:- enumerated data type and typedef
key word
UNIT 10(POINTER)
1.What is pointer?
2.Array of pointer with example
3.Null pointer with example
4.Pointer to pointer example
6.Explain the concept of dynamic memory allocation.
7.Malloc and calloc with example
8.Malloc vs. Calloc
UNIT 11(THE C PREPROCESSOR)
1.Define macros
2.Wap using macro:-
I)#define
Ii)#if
Iii)#else
Iv)#ifdef
V)#elif
3.Macros vs. functions
4. Write a program to find out square and
cube of given number using macros.
UNIT 12(FILES)
1.fopen()
2.fclose ()
3.getc()
4.putc()
5.fgetc()
6.fputc()
7.fgets()
8.fputs()
9.fscanf()
10.fprintf()
11.fread()
12.fwrite()
13.Explain file handling in C.

14.What is EOF and its value?

13. Write a program in 'C' to copy the content from one


file to another file.

14. Write a C program using fread() and fwrite() to create


a file of records and then read and print the same file.

15. Write a program to append the contents of


second file to the contents of first file.
Thanks for watching!!!
Please subscribe.
Email:-
whatsapp:-8820406278

You might also like