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

Similar documents
C-LANGUAGE CURRICULAM

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

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING


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

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

PERIYAR CENTENARY POLYTECHNIC COLLEGE Periyar Nagar- Vallam Thanjavur

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

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

Long Questions. 7. How does union help in storing the values? How it differs from structure?

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

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

DETAILED SYLLABUS INTRODUCTION TO C LANGUAGE

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

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

C Programming SYLLABUS COVERAGE SYLLABUS IN DETAILS

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

DR. A.P.J. ABDUL KALAM TECHNICAL UNIVERSITY LUCKNOW. Evaluation Scheme & Syllabus. For. B.Tech. First Year (Programming for Problem Solving)

Introduction to C Language (M3-R )

PROGRAMMING IN C AND C++:

Important Questions for Viva CPU

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

Character Set. The character set of C represents alphabet, digit or any symbol used to represent information. Digits 0, 1, 2, 3, 9

Contents. Preface. Introduction. Introduction to C Programming

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

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

C programming basics T3-1 -

Subject: Fundamental of Computer Programming 2068

CprE 288 Introduction to Embedded Systems Exam 1 Review. 1

Introduction to Programming Using Java (98-388)

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

C & Data Structures syllabus

Software Development & Education Center C Programming

Euclid s algorithm, 133

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

Programming for Problem Solving 105A L T P Credit Major Minor Total Time

Review of the C Programming Language for Principles of Operating Systems

C Programming. Course Outline. C Programming. Code: MBD101. Duration: 10 Hours. Prerequisites:

Pace University. Fundamental Concepts of CS121 1

Review of the C Programming Language

Arrays. An array is a collection of several elements of the same type. An array variable is declared as array name[size]

advanced data types (2) typedef. today advanced data types (3) enum. mon 23 sep 2002 defining your own types using typedef

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:

Reg. No. : Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, JANUARY First Semester GE 6151 COMPUTER PROGRAMMING

Introduction to C++ Introduction. Structure of a C++ Program. Structure of a C++ Program. C++ widely-used general-purpose programming language

Gujarat University M. Sc. Computer Science [S. F.] Semester-1 Syllabus Gujarat Arts & Science College, Ahmedabad.

Introduction to C++ with content from

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

Main Program. C Programming Notes. #include <stdio.h> main() { printf( Hello ); } Comments: /* comment */ //comment. Dr. Karne Towson University

Fundamentals of Programming

CSI33 Data Structures

Multiple Choice Questions ( 1 mark)

This exam is to be taken by yourself with closed books, closed notes, no calculators.

CSCI 171 Chapter Outlines

C: How to Program. Week /Apr/16

Compiling and Running a C Program in Unix

Fundamental Data Types. CSE 130: Introduction to Programming in C Stony Brook University

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

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

Variables Data types Variable I/O. C introduction. Variables. Variables 1 / 14

COMS W3101 Programming Language: C++ (Fall 2015) Ramana Isukapalli

Student Name: (in Capital Letters) CSE Introduction to Programming for Engineers and Scientists. Final Exam

DC104 DATA STRUCTURE JUNE Q.2 a. If you are using C language to implement the heterogeneous linked list, what pointer type will you use?

Model Viva Questions for Programming in C lab

CSC209H Lecture 4. Dan Zingaro. January 28, 2015

DHANALAKSHMI SRINIVASAN INSTITUTE OF RESEARCH AND TECHNOLOGY SIRUVACHUR, PERAMBALUR DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

Computers Programming Course 5. Iulian Năstac

IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23.

mith College Computer Science CSC270 Spring 2016 Circuits and Systems Lecture Notes, Week 11 Dominique Thiébaut

Chap 0: Overview. Overview of basic C++ syntax Refresh programming basics C++ Vs. Java differences Coding conventions used. EECS 268 Programming II 1

CS 326 Operating Systems C Programming. Greg Benson Department of Computer Science University of San Francisco

The Waite Group's. New. Primer Plus. Second Edition. Mitchell Waite and Stephen Prata SAMS

Fundamental of Programming (C)

Introduction to Computer Science Midterm 3 Fall, Points

Character Strings. String-copy Example

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

Quiz 0 Review Session. October 13th, 2014

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

C Programming Multiple. Choice

Tokens, Expressions and Control Structures

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

Kadi Sarva Vishwavidyalaya, Gandhinagar

Q 1. Attempt any TEN of the following:

PRINCIPLES OF OPERATING SYSTEMS

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

A flow chart is a graphical or symbolic representation of a process.

Lectures 5-6: Introduction to C

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

KLiC C Programming. (KLiC Certificate in C Programming)

Memory. What is memory? How is memory organized? Storage for variables, data, code etc. Text (Code) Data (Constants) BSS (Global and static variables)

CHAPTER 1 Introduction to Computers and Programming CHAPTER 2 Introduction to C++ ( Hexadecimal 0xF4 and Octal literals 031) cout Object

Data Type Fall 2014 Jinkyu Jeong

Short Notes of CS201

Arrays and Pointers (part 1)

Object-Oriented Programming

DEPARTMENT OF MATHS, MJ COLLEGE

VALLIAMMAI ENGINEERING COLLEGE

CS201 - Introduction to Programming Glossary By

This is CS50. Harvard University Fall Quiz 0 Answer Key

Dynamic memory allocation

Transcription:

Fundamental of C Programming Unit I: Q1. What will be the value of the following expression? (2017) A + 9 Q2. Write down the C statement to calculate percentage where three subjects English, hindi, maths and total are of int type and percentage is of float. Max marks for each subjects are 100. (2017) Q3. Create a Boolean data type in C, which will accept true and false value (2017) True = 1 False=0 Q4. Explain logical operators with examples (2017) Q5. Explain various types of data types in C, also explain implicit and explicit type casting. (2017) Q6. What is variable in C Language (2015) Q7. What is the use of getch() in C Program? (2015) Q8. What is pre-processor directives? (2015) Q9. Define unary operators in C Language. (2015) Q10. Write a program in C Language to calculate area of triangle. (2015) Q11. Explain all C tokens. (2015, 2014) Q12. Explain the different data types used in C Language. (2015) Q13. By default real no. is treated as a: (2014) a) float b) long double c) double d) far double Q14. Write the correct order of evaluation for the below expression (2014) Z = x + y * Z / 4 % 2 1 Q15. What is bitwise operator? (2014) Q16. What is top down approach? (2014) Q17. Arrange the following operators in ascending order according to their precedence (2013) a) && b) c)! d)? : e) & (bitwise and ) Q18 (2016, 2013) a) Explain various types of operators with suitable example. b) Compare various operators according to their precedence and also explain their associativity. Q19. What is the range of float data type. (2016) Q20. What is the range of float data type. (2016) Q21. What is the use of type-casting (2016) Q21. Which operators are not used with literals (2016) Q22. What is difference between constants and literals (2016) 1 /BCA/C Programming/2017

Unit II: Q1. What will be the output of (2017) X = 101; X = X >> 2 << 2; printf( %d, x); Q2. Write down appropriate C statement for the formula (2017) X = a 1b 1 + a 2b 2 ---------------- ( c 1 + C 2 ) d Q3. What will be the output of (2017) Int x = 0; If ( x = 0) printf( Hello ); else printf( Hey ); Q4. Explain various branching statements with appropriate examples (2017) Q5. Explain various looping statements with appropriate example (2017) Q6. Write the output for the following code: (2015) void main() int a; b = a++ + a; Q7. Explain the use of switch case. (2015) Q12. What is the difference between goto, break and continue, specify with example. (2015, 2014) Q9. Describe the various loop control structures. (2015) Q10. Write a C Program to check the string is palindrome or not without using string function. (2015) Q12. Write a program to print Fibonacci series. (2014) Q13. What will be the output of the following code: (2013) int x = 40000; printf( %d, x); Q14. What will be the output of the following code: (2013) for (i = 1, j = 10; I < 6 ; ++I, j--) Printf( %d %d, I, j); Q15. Find errors ( if any) and remove them otherwise give output of the following (2013) char c = A ; int x = 10, y; Y = x + c; putchar (y); Q16. Find errors and remove them (if any) otherwise give output of the following (2013) printf ( %d, ++5); Q17. Find errors and remove them ( if any) otherwise give output of the following (2013) Printf [ %d, sizeof( )]; Q18. What will be the output of the following (2013) Int x = 10, y = 20; ( x? y )? ++x : ++y 2 /BCA/C Programming/2017

Printf( \n x = %d, y = %d, x, y); Q19. Write a program in C to find LCM of two numbers. (2013) Q20. Write a program in C to print the following series. (2013) 1, 8, 72, 46 521,.. up to n terms Q21. (2013) a) Explain various types of branching statements of C with suitable example b) Explain various types of looping statements of C with suitable example. Q22. What is the difference between while and do while loop. (2016) Q23. What is the output of the following program (2016) int x = 10; printf( %d, x << 2); Q24. Write a program to print reverse of given number (2016) 3 /BCA/C Programming/2017

Unit III: Q1. What happens when a variable is declared as register variable but register memory is not available? (2017) Q2. What is global variable? (2017) Q3. Explain extern variable with an example (2017) Q4. Write a program in C to print factorial of given number. (2017) Q5. Write a program in C to swap two variables without using temporary variable. (2017, 2013) Q6. What do you mean by function prototype? Explain it with an example. (2017) Q7. Define Pointers and its use. (2015) Q8. What is the use of register variable? (2015) Q9. Write difference between user-defined and library functions. (2015) Q10. What is recursion? Explain with example. (2015, 2014) Q11. In the following program where is the variable a getting defined and where it is getting declared? (2014) int main() extern int a; printf( %d\n, a); return a; int a = 20; Q12.What is macro in C language? (2014) Q13. What is the difference between call by value and call by reference? (2014) Q14. What are storage classes? Explain in detail with examples. (2014) Q15. What is recursion? What is the utility of recursions in C language? Write a program to find out greatest common divisor of two given numbers using recursion. (2016, 2014) Q16. What is top down approach? Explain different methods of parsing arguments in functions. Also explain different types of functions used in C language. (2014) Q17. Explain following with suitable example: (2014) a) strcpy() b) strcat() c) strlen() d) strcmp() Q18. Char * name = M.D.S. University ; then what will be the value of *( name + 18) and what will be the output if we write printf( %s, name+ 8); (2013) Q19. Write short notes on the following with suitable example. (2013) I. auto II. extern III. static IV. register Q20. (2016, 2013) a) Write a program in C to solve tower of honoi game problem b) Explain the tower of honoi game with solution for four rings. Q21. Explain auto and static storage class of variable (2016) Q22. Explain functions and their types with their suitable examples. (2016) 4 /BCA/C Programming/2017

Unit IV: Q1. What do you mean by following statement? (2017) int * x [ 10 ]; Q2. Explain multi-dimensional array with appropriate example (2017) Q3. Write a program in C language to sort the array elements using bubble sort. (2015) Q4. Explain array and its types with appropriate syntax and example. (2015) Q5. What is the function of pointers in C language? (2014) Q6. Explain the role of pointers in C language. Explain reference variable in context to a program (2014) Q7. What is the meaning of (2013) Int (*p) [10]; Q18 (2013) a) Write a program to calculate 2D matrix multiplication b) Write a program to print transpose of matrix. Q19. What is an array (2016) Q20. Why arithmetic operators are not used with pointers (2016) Q21. Explain 1-D and 2-D Array with suitable examples. (2016) Q22. Write a program to multiply two 2-D arrays. (2016) Q23. Explain pointers and addresses with suitable examples. (2016) Q24. Explain pointers to 1-D and 2-D arrays with examples. (2016) 5 /BCA/C Programming/2017

Unit V: Q1. Define structure. (2017) Q2. Write a program to create a mark sheet using structure and explain it. (2017) Q3. Explain pointer to structure with appropriate example. (2017) Q4. What do you mean by user-defined data types? (2015) Q5. Write important difference between structure and union. (2016, 2015) Q6. What is the difference between calloc() and malloc()? (2014) Q7. How will you free the allocated memory? (2014) Q8. What is enumerated data type? (2016, 2014) Q9. Explain the role of pointers in structures with program and how arithmetic operations performed (2014) on pointers. Q10. If student is given as (2013) struct student char name[10]; int e; int h; int m; * pstu; Then allocate memory to pstu pointer. Q11. Explain typedef with suitable example. (2016, 2013) Q12. What is union? Explain it. (2013) Q13. Explain various file handling operations with suitable examples. (2016) 6 /BCA/C Programming/2017