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

Similar documents
Name :. Roll No. :... Invigilator s Signature :.. CS/B.TECH (NEW)/SEM-2/CS-201/ BASIC COMPUTATION & PRINCIPLES OF COMPUTER PROGRAMMING

A3-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH 'C' LANGUAGE

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

C-LANGUAGE CURRICULAM

M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

Roll No. :... Invigilator's Signature :.. CS/B.TECH(CSE/IT)/SEM-5/CS-501/ OPERATING SYSTEM. Time Allotted : 3 Hours Full Marks : 70

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

Roll No. :... Invigilator's Signature :. CS/B.Tech(CSE)/SEM-7/CS-701/ LANGUAGE PROCESSOR. Time Allotted : 3 Hours Full Marks : 70

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

3.Constructors and Destructors. Develop cpp program to implement constructor and destructor.

DETAILED SYLLABUS INTRODUCTION TO C LANGUAGE


C Programming SYLLABUS COVERAGE SYLLABUS IN DETAILS

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

Computer Programming C++ (wg) CCOs

C++ ARRAYS POINTERS POINTER ARITHMETIC. Problem Solving with Computers-I

A Fast Review of C Essentials Part I

CS201- Introduction to Programming Current Quizzes

Programming for Engineers Iteration

Contents. Preface. Introduction. Introduction to C Programming

Code No: R Set No. 1

COMPUTER APPLICATION

Lecture 8: Pointer Arithmetic (review) Endianness Functions and pointers

Important Questions for Viva CPU

(Following Paper ID and Roll No. to be filled by the student in the Answer Book)

Introduction to C Language (M3-R )

Decision Making -Branching. Class Incharge: S. Sasirekha

Java Primer 1: Types, Classes and Operators

Roll No. :... Invigilator's Signature : UNIX AND SHELL PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

Module 2 - Part 2 DATA TYPES AND EXPRESSIONS 1/15/19 CSE 1321 MODULE 2 1

EXAMINATION FOR THE BSC (HONS) INFORMATION SYSTEMS; BSC (HONS) INFORMATION TECHNOLOGY & BSC (HONS) COMPUTER SCIENCE; YEAR 1

Homework #3 CS2255 Fall 2012

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

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

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

Short Notes of CS201

C Language Part 1 Digital Computer Concept and Practice Copyright 2012 by Jaejin Lee

P.G.TRB - COMPUTER SCIENCE. c) data processing language d) none of the above

CS/B.TECH/CSE(OLD)/SEM-6/CS-605/2012 OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

CS201 - Introduction to Programming Glossary By

PERIYAR CENTENARY POLYTECHNIC COLLEGE Periyar Nagar- Vallam Thanjavur

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

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):

o Counter and sentinel controlled loops o Formatting output o Type casting o Top-down, stepwise refinement

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language

Paytm Programming Sample paper: 1) A copy constructor is called. a. when an object is returned by value

C: How to Program. Week /Mar/05

INDIAN SCHOOL SOHAR FIRST TERM EXAM ( ) INFORMATICS PRACTICES

0. Overview of this standard Design entities and configurations... 5

LESSON 6 FLOW OF CONTROL

CS2255 HOMEWORK #1 Fall 2012

C Programming Multiple. Choice

ME 461 C review Session Fall 2009 S. Keres

H192 Midterm 1 Review. Tom Zajdel

QUIZ. 1. Explain the meaning of the angle brackets in the declaration of v below:

Tribhuvan University Institute of Science and Technology 2065

Lecture 2: C Programm

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

Computer System and programming in C

Chapter 2 - Introduction to C Programming

INTERNATIONAL INDIAN SCHOOL, RIYADH XI XII BOYS SECTION

Expressions. Arithmetic expressions. Logical expressions. Assignment expression. n Variables and constants linked with operators

INITIALISING POINTER VARIABLES; DYNAMIC VARIABLES; OPERATIONS ON POINTERS

SHARDA UNIVERSITY SCHOOL OF ENGINEERING & TECHNOLOGY Mid Term Examination, (Odd Term, ) SOLUTION

S Y B Voc Software Development Syllabus

IMPORTANT QUESTIONS IN C FOR THE INTERVIEW

Unit IV & V Previous Papers 1 mark Answers

BASIC ELEMENTS OF A COMPUTER PROGRAM

INTERNATIONAL INDIAN SCHOOL, RIYADH XI XII BOYS SECTION. Subject- Informatics Practices

Introduction. C provides two styles of flow control:

Type Conversion. and. Statements

CSE 431S Type Checking. Washington University Spring 2013

BLM2031 Structured Programming. Zeyneb KURT

CS313D: ADVANCED PROGRAMMING LANGUAGE

Lecture 4: Outline. Arrays. I. Pointers II. III. Pointer arithmetic IV. Strings

CS/B.TECH/CSE(New)/SEM-5/CS-504D/ OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 GROUP A. (Multiple Choice Type Question)

Review of the C Programming Language for Principles of Operating Systems

Midterm CSE 131B Spring 2005

15 FUNCTIONS IN C 15.1 INTRODUCTION


Chapter 3 Structure of a C Program

Roll No. :. Invigilator's Signature :.. CS/MCA/SEM-4/MCA-401/ SOFTWARE ENGINEERING & TQM. Time Allotted : 3 Hours Full Marks : 70

Subject: Fundamental of Computer Programming 2068

CSI33 Data Structures

SRE VIDYASAAGAR HIGHER SECONDARY SCHOOL. TWO MARKS

Model Viva Questions for Programming in C lab

Introduction to C Programming. Chih-Wei Tang ( 唐之瑋 ) Department of Communication Engineering National Central University JhongLi, Taiwan

C & Data Structures syllabus

SESSION ENDING EXAMINATION CLASS XI SUBJECT : INFORMATICS PRACTICES (065) Time Allowed : 3 Hrs. Max Marks : 70

COMPUTER SCIENCE (083)

These are reserved words of the C language. For example int, float, if, else, for, while etc.

Padasalai.Net s Model Question Paper

Review of the C Programming Language

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Stamp / Signature of the Invigilator

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

Understanding the Concepts and Features of Macro Programming 1

3. Java - Language Constructs I

CS313D: ADVANCED PROGRAMMING LANGUAGE

Scientific Programming in C VI. Common errors

Transcription:

Name :. Roll No. :..... Invigilator s Signature :.. 2011 INTRODUCTION TO PROGRAMMING Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates are required to give their answers in their own words as far as practicable. GROUP A ( Multiple Choice Type Questions ) 1. Choose the correct alternatives for any ten of the following : 10 1 = 10 i) Which of the following operators accepts only integer ii) iii) operands? a) + b) * c) / d) % Do-While loop is called... in C language. a) entry controlled loop b) exit controlled loop c) both (a) and (b) d) none of these. C supports the... statement to branch unconditionally from one point to another in the program. a) Continue b) Break c) Goto d) Switch. 1104 [ Turn over

iv) An array of string ends with a) NULL b) last character of the string c) 0 d) none of these. v) The declaration of float *a[5]; is a) a normal pointer b) an ordinary array c) an array of pointer d) a pointer to an array vi) When the pointer is incremented by one, it results the pointer to a) point the next element b) increment its data value by one c) both (a) & (b) d) none of these. vii) Call by reference is done with the... of the variable. a) contents b) address c) both (a) and (b) d) none of these. viii) Static memory allocation means allocation during... time. a) compile b) run c) allocation d) de-allocation. 1104 2

ix) The mode used for creating a text file for read/write is (a) r+ (b) w+ (c) a+ (d) w x) What should be the correct output of the following program? main ( ) { int k, num = 30; k = ( num > 5? ( num < 10? 100 : 200 ) : 500 ) ; printf ( "%d %d", num, k ) ; } a) 200 30 b) 30 100 c) 30 200 d) 30 500. xi) What is the value of y in the following code? x = 7; y = 0; if ( x = 6 ) y = 7 ; else y = 1; a) 7 b) 0 c) 1 d) 6. 1104 3 [ Turn over

xii) Determine the out put : f ( ) { static int i = 0; i++; if ( i < = 3 ) { print f ( "\n%d", i ); f ( ); } else exit ( O ); } main ( ) { f ( ) ; } a) 1, 2 b) 2, 3 c) 1 2 3 d) None of these. GROUP B ( Short Answer Type Questions ) Answer any three of the following. 3 5 = 15 2. a) What do you mean by local variable and global variable? b) Discuss on various available storage classes in C. 2 + 3 3. What do you mean by recursion? Write a recursive function called power ( ) to calculate x rise to the power n. 2 + 3 1104 4

4. Compare array and linked list. 5. a ) Distinguish betwen structure and union. b ) Write down the following program in C : Input an M-digit number. Print its digit one by one. (least significant but first) 2 + 3 6. Write a program to print the sum of the following series of n terms : S = 1 + ( 1 + 2 ) + ( 1 + 2 + 3 ) +... GROUP C ( Long Answer Type Questions ) Answer any three of the following. 3 15 = 45 7. a) Do you have the facility of multiple way branching in C? If so, how? Explain your answer with an example. 5 b) Write down the differences between 'do-while' and 'while-do' statements in C. 5 c) What is a macro? Write down the advantages of macro over function. 5 8. a) Give example of each of the following : i) Function returning a pointer to an array of float. ii) Function returning a pointer to a function returning float. 1104 5 [ Turn over

iii) Pointer to pointer to integer iv) Pointer to an array of integers. v) Pointer to an array of pointers to a function returning character. 5 2 b) Discuss on call by value and call by reference. 5 9. a) Explain with examples the meaning of explicit and implicit type casting. 5 b) Compare between static memory allocation and dynamic memory allocation. 5 c) Write down program in C that will accept a string from the user and print the frequency of each characters of the string entered. 5 10. a) What do you mean by integer division in C? 3 b) Write a note on logical operators available in C. 5 c) Write down a program that will find out the maximum and the minimum of the given set of n numbers (you can examine the set of numbers only once). 7 1104 6

11. Differentiate between any three of the following : 3 5 a) Declaring a variable b) Break and exit c) Union and structure d) auto and extern. 1104 7 [ Turn over