Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C

Similar documents
Questions Bank. 14) State any four advantages of using flow-chart

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING

For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University

Aryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9

Subject: Fundamental of Computer Programming 2068

Assignment: 1. (Unit-1 Flowchart and Algorithm)

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

Tribhuvan University Institute of Science and Technology 2065

SUMMER 13 EXAMINATION Model Answer

Multiple Choice Questions ( 1 mark)

Introduction to C Language (M3-R )

'C' Programming Language

C- PROGRAMMING (3:0:0) Sub code : CS1C01/CS2C01 CIE : 50%Marks Hrs/week : 03 SEE : 50%Marks SEE Hrs : 03 Hours Max. Marks: 100 Course Outcomes:

Advanced C Programming and Introduction to Data Structures

M1-R4: Programing and Problem Solving using C (JAN 2019)

C-LANGUAGE CURRICULAM

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE


MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

IV Unit Second Part STRUCTURES

PROGRAMMING IN C AND C++:

FORM 2 (Please put your name and form # on the scantron!!!!)

Euclid s algorithm, 133

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

Course Title: C Programming Full Marks: Course no: CSC110 Pass Marks: Nature of course: Theory + Lab Credit hours: 3

F.Y. Diploma : Sem. II [CO/CD/CM/CW/IF] Programming in C

Homework #3 CS2255 Fall 2012

Name :. Roll No. :... Invigilator s Signature : INTRODUCTION TO PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

(i) Describe in detail about the classification of computers with their features and limitations(10)

#3. (Recursion) Write a recursive function to compute f(x) = f(x - 1) + f(x - 2) with f(0) = 0 and f(1) = 1.

MYcsvtu Notes LECTURE 34. POINTERS

PES INSTITUTE OF TECHNOLOGY (BSC) I MCA, First IA Test, November 2015 Programming Using C (13MCA11) Solution Set Faculty: Jeny Jijo

Computer Programming C++ (wg) CCOs

PERIYAR CENTENARY POLYTECHNIC COLLEGE Periyar Nagar- Vallam Thanjavur

Pointers. Pointers. Pointers (cont) CS 217

C: Pointers, Arrays, and strings. Department of Computer Science College of Engineering Boise State University. August 25, /36

Object Oriented Pragramming (22316)

Single Dimension Arrays

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER

Kadi Sarva Vishwavidyalaya, Gandhinagar

Introduction to Computer Science Midterm 3 Fall, Points

Loops / Repetition Statements

Computer Programming. C Array is a collection of data belongings to the same data type. data_type array_name[array_size];

Arrays, Pointers and Memory Management

CS2351 Data Structures. Lecture 7: A Brief Review of Pointers in C

r } ~ ~ ~.,-~_.-.,..--- ~.._ ~ -.- " ~.., ~ i-~--~-..., _-_... 4 _-~ _. '".~ j l.- ~ i...l...i- ~.JI

1 P a g e A r y a n C o l l e g e \ B S c _ I T \ C \

C: Pointers. C: Pointers. Department of Computer Science College of Engineering Boise State University. September 11, /21

M1-R4: Programing and Problem Solving using C (JULY 2018)

Pointers (part 1) What are pointers? EECS We have seen pointers before. scanf( %f, &inches );! 25 September 2017

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and

Exam 3 Chapters 7 & 9

Question Bank (SPA SEM II)

Arrays and Pointers (part 1)

Chapter-11 POINTERS. Important 3 Marks. Introduction: Memory Utilization of Pointer: Pointer:

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

Technical Questions. Q 1) What are the key features in C programming language?

ONE DIMENSIONAL ARRAYS

Q 1. Attempt any TEN of the following:

Introduction to C/C++ Programming

Unit IV & V Previous Papers 1 mark Answers

CS2255 HOMEWORK #1 Fall 2012

CSE101-lec#12. Designing Structured Programs Introduction to Functions. Created By: Amanpreet Kaur & Sanjeev Kumar SME (CSE) LPU

3. Types of Algorithmic and Program Instructions

Introduction to Programming (Java) 4/12

ARRAYS(II Unit Part II)

What is an algorithm?

Functions. Lab 4. Introduction: A function : is a collection of statements that are grouped together to perform an operation.

C programming basics T3-1 -

Faculty of Engineering Computer Engineering Department Islamic University of Gaza C++ Programming Language Lab # 6 Functions

I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK a) What is the difference between Hardware and Software? Give one example for each.

Sample Paper Class XI Subject Computer Sience UNIT TEST II

Hrs Hrs Hrs Hrs Hrs Marks Marks Marks Marks Marks

CSCI 171 Chapter Outlines

Model Viva Questions for Programming in C lab

Lectures 5-6: Introduction to C

Syllabus of Diploma Engineering. Computer Engineering. Semester: II. Subject Name: Computer Programming. Subject Code: 09CE1104

The Hyderabad Public School, Begumpet, Hyderabad, A.P

Lesson #3. Variables, Operators, and Expressions. 3. Variables, Operators and Expressions - Copyright Denis Hamelin - Ryerson University

COP 3223 Introduction to Programming with C - Study Union - Fall 2017

FORM 1 (Please put your name and section number (001/10am or 002/2pm) on the scantron!!!!) CS 161 Exam II: True (A)/False(B) (2 pts each):

Arrays and Pointers (part 1)

AHLCON PUBLIC SCHOOL, MAYUR VIHAR I, DELHI ASSIGNMENT CLASS XI Session Chapter 1: Computer Overview

Decision Making -Branching. Class Incharge: S. Sasirekha

POINTER & REFERENCE VARIABLES

Split up Syllabus (Session )

Computer Science & Information Technology (CS) Rank under AIR 100. Examination Oriented Theory, Practice Set Key concepts, Analysis & Summary

3/22/2016. Pointer Basics. What is a pointer? C Language III. CMSC 313 Sections 01, 02. pointer = memory address + type


10/20/2015. Midterm Topic Review. Pointer Basics. C Language III. CMSC 313 Sections 01, 02. Adapted from Richard Chang, CMSC 313 Spring 2013

Jagannath Institute of Management Sciences Lajpat Nagar. BCA II Sem. C Programming

CS313D: ADVANCED PROGRAMMING LANGUAGE

Operators in C. Staff Incharge: S.Sasirekha

3.3 Structures. Department of CSE

C Programming SYLLABUS COVERAGE SYLLABUS IN DETAILS

Fundamentals of Programming Session 20

Algorithms & Data Structures

pointers + memory double x; string a; int x; main overhead int y; main overhead

Transcription:

Sample Test Paper-I Marks : 25 Time:1 Hrs. Q1. Attempt any THREE 09 Marks a) State four relational operators with meaning. b) State the use of break statement. c) What is constant? Give any two examples. d) Write a c program to accept any two numbers and display the addition of them. Q2. Attempt any TWO 08 Marks a) State four rules for choosing variable name? b) Describe if-else ladder with example. c) State the arithmetic and Logical operators with their meaning. Q.3 Attempt any TWO 08 Marks a) Write a program to find largest of three numbers. b) What is the standard Input/output header file used in C Program. c) Illustrate the working of do-while loop with example. 1

Sample Test Paper-II Marks : 25 Time:1 Hrs. Q.1 Attempt any THREE 09 Marks a) Declare One Dimensional, 5 elements integer array and initialize all values. b) Give the meaning of declaration: int *ptr; c) State any four string handling functions. d) What is recursive function? Q.2 Attempt Any TWO 08 Marks a) Write the declaration and initialization of Two-Dimensional array with example. b) Write a function to exchange the values of two variables say x and y. Assume x and y are defined as global variables. c) Describe No arguments and No return value category of function with example. Q3 Attempt any TWO 08 Marks a) List different pointer arithmetic operations. Explain any one of them? b) What is structure and array of structure? Declare structure student with elements roll_no and name. Declare array of structure of 10 students. c) Write a program to print reverse of entered string using pointer. 2

Sample Question Paper Marks : 100 Time:3 Hrs. Q.1 Attempt any TEN of the following: 20 Marks a) State four Arithmetic operators and four Logical operators. b) State different basic data type in C. c) Write the syntax of If-Else Statement. d) State use of break statement. e) Give the syntax for strcpy() string function. f) Write output of the following program. void main() { char str[5]={ a, b, c, d, e, / }; printf( %s,str); } g) Write the syntax for declaring structure. h) What is function prototype? Give one example of function prototype. i) Given the following declarations: int x=10,y=10; int *p1=&x, *p2=&y; What is the value of following expression? (a) (*p1)++ j) What would be output of following code segment? int count =5 3

while (count-- >0) print (count); print ( %, count); k) Define token? List tokens in C. l) Distinguish between while and do-while loop [Any two points] Q.2 Attempt any FOUR of the following. 16 Marks a) Enlist different format specifiers. b) Distinguish between variable and constant. c) How if-else is replaced using conditional operator? State with example. d) Draw the structure of C program with suitable example. e) Write syntax of switch case statement with syntax and give suitable example. f) Write continue statement with example. Q.3 Attempt any FOUR of the following. 16 Marks a) Write a program to reverse given integer number(input =2356 reverse is 6532) b) Find out the errors in the following program component and justify the same: float i; int p=0; for (i=0;i =10; i+=2) { p=i*2; printf( %d,i,p); } c) State the use of increment and decrement operators. Also give the difference between i++ and ++I state with example. d) State with example, the conditions in which else-if ladder is used. e) Write a C program to accept any integer number and print whether it is even or odd. f) Write a program to find the sum of odd numbers between1 to 20. Q.4 Attempt any FOUR of the following. 16 Marks a) Write a program to determine the String is Palindrome. (E.g. madam reverse madam.if both are equal then String is Palindrome) b) What is character Array? Describe with example c) Write a program to read two Strings and compare them using strcmp() Function and print a message accordingly. 4

d) Describe category of function: function with No arguments and No return value with example e) What is a Structure? How is it different from an Array? f) Write the syntax of function declaration? State the example of it. Q.5 Attempt any FOUR of the following. 16 Marks a) Write a program to accept five integer elements in array and print Odd Numbers in them b) Define 2-D array. State syntax to declare and initialize two dimensional arrays with example. c) Distinguish between Call by Value and Call by Reference methods for calling function. d) Write a function to exchange the value of variables say x and y. e) Write p program to define a structure employee with members emp_name, emp_id and salary. Accept data for one employee and display it. f) Write a function to find the product (multiplication) of two numbers. Q.6 Attempt any FOUR of the following. 16 Marks a) Write a program to calculate factorial of given number using recursion. b) Define pointer. Describe & (ampersand) and *(asterisk) operators in pointers. c) State the meaning of following statements with reference to the pointers int *ptr,m=8; *ptr =m; ptr =&m; d) Write a program in C using pointers to determine length of the string. e) List different pointer arithmetic operations and give example of each. f) How pointers are used in Call By Reference method for functions? 5