VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

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

PROGRAMMING IN C AND C++:

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING

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

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

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

VALLIAMMAI ENGINEERING COLLEGE


PERIYAR CENTENARY POLYTECHNIC COLLEGE Periyar Nagar- Vallam Thanjavur

C-LANGUAGE CURRICULAM

Multiple Choice Questions ( 1 mark)

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

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

GE PROBLEM SOVING AND PYTHON PROGRAMMING. Question Bank UNIT 1 - ALGORITHMIC PROBLEM SOLVING

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

DEPARTMENT OF COMPUTER APPLICATIONS SRM INSTITUTE OF SCIENCE AND TECHNOLOGY SRM NAGAR, KATTANKALATHUR

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT-1

DETAILED SYLLABUS INTRODUCTION TO C LANGUAGE

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

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


SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013

VALLIAMMAI ENGINEERING COLLEGE

V.S.B ENGINEERING COLLEGE DEPARTMENT OF INFORMATION TECHNOLOGY I IT-II Semester. Sl.No Subject Name Page No. 1 Programming & Data Structures-I 2

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:

Lab Manual. Program Design and File Structures (P): IT-219

UNIVERSITY OF ENGINEERING & MANAGEMENT, KOLKATA C ASSIGNMENTS

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

Code No: R Set No. 1

KLiC C Programming. (KLiC Certificate in C Programming)

Reg. No. : Question Paper Code : 27157

Introduction to C Language (M3-R )

Q1. Multiple Choice Questions

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

Kadi Sarva Vishwavidyalaya, Gandhinagar

Get Unique study materials from

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

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

CS PROGRAMMING & ATA STRUCTURES I. UNIT I Part - A

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

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

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

I Year MCA I Semester L T P To C FOUNDATIONS OF INFORMATION TECHNOLOGY

Dept. of Computer Sc., SDP College for Women, Ludhiana

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

Chapter1 Overview of computers

E.G.S. PILLAY ENGINEERING COLLEGE (An Autonomous Institution, Affiliated to Anna University, Chennai) Nagore Post, Nagapattinam , Tamilnadu.

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

COMPUTER PROGRAMMING LAB

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

Subject: Computer Science

Tribhuvan University Institute of Science and Technology 2065

Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002

UNIT - I. Introduction to C Programming. BY A. Vijay Bharath

GARDEN CITY UNIVERSITY. Bachelor of Computer Applications SEMESTER- I. Course: CONCEPTS OF PROGRAMMING USING C LANGUAGE CODE: 05ABCAR17111 CREDITS: 04

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

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

17CS33:Data Structures Using C QUESTION BANK

COMPUTER APPLICATION

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

Euclid s algorithm, 133

Hrs Hrs Hrs Hrs Hrs Marks Marks Marks Marks Marks

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

Contents. Preface. Introduction. Introduction to C Programming

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

UNIT IV 2 MARKS. ( Word to PDF Converter - Unregistered ) FUNDAMENTALS OF COMPUTING & COMPUTER PROGRAMMING

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

Unit-II Programming and Problem Solving (BE1/4 CSE-2)

CSCI 171 Chapter Outlines

C & Data Structures syllabus

Computer Programming C++ (wg) CCOs


P.E.S. INSTITUTE OF TECHNOLOGY BANGALORE SOUTH CAMPUS 1 ST INTERNAL ASSESMENT TEST (SCEME AND SOLUTIONS)

Algorithms 4. Odd or even Algorithm 5. Greatest among three numbers Algorithm 6. Simple Calculator Algorithm

Software Development & Education Center C Programming

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

C Programming SYLLABUS COVERAGE SYLLABUS IN DETAILS

'C' Programming Language

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

PESIT Bangalore South Campus Department of MCA Course Information for

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p.

BCA-105 C Language What is C? History of C

CS201- Introduction to Programming Latest Solved Mcqs from Midterm Papers May 07,2011. MIDTERM EXAMINATION Spring 2010

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

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

Advanced C Programming and Introduction to Data Structures

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

PESIT-BSC Department of Science & Humanities

ESC101N: Fundamentals of Computing End-sem st semester

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

PDS Lab (Assignment 1) Date: 31 st July, 2017 (2-6 pm)

Review of the C Programming Language for Principles of Operating Systems

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

Question Bank (SPA SEM II)

Computers Programming Course 6. Iulian Năstac

ANNA UNIVERSITY: CHENNAI B.E./B.Tech. DEGREE EXAMINATIONS, JAN Regulations First Semester (Common to All Branches )

CHOICE BASED CREDIT SYSTEM (With effect from )

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

Class 9 Saturday, Feb 14

Transcription:

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR 603 203 FIRST SEMESTER B.E / B.Tech., (Common to all Branches) QUESTION BANK - GE 6151 COMPUTER PROGRAMMING UNIT I - INTRODUCTION Generation and Classification of Computers- Basic Organization of a Computer Number System Binary Decimal Conversion Problems. Need for logical analysis and thinking Algorithm Pseudo code Flow Chart. 1. What is Super Computer? Give an example 2. Differentiate between analog and digital computers. 3. State the characteristics of computers. 4. How will you classify computer systems? 5. What are the different components of a computer? 6. What are the advantages and disadvantages of using the first generation computers? 7. List some important hardware and software technologies of fifth generation computers. 8. Give the advantages and disadvantages of third generation computers. 9. Convert the binary number 100110 into its octal equivalent. 10. Determine the decimal equivalent of the hexadecimal number AC.C8. 11. Convert 0.4375 decimal to binary system. 12. Convert the binary number 11000110 into Hexadecimal number. 13. Differentiate between RAM and ROM. 14. Draw a flowchart to find the maximum among the three numbers. 15. Compare and contrast flowchart and algorithm. 16. What is meant by pseudo code? 17. What is an algorithm? 18. Write an algorithm to compute the factorial of a number. 19. Write the pseudo code to find the given year is a leap year or not. 20. Give the advantages and limitations of Pseudo code. 1. (i) Describe the characteristics of the computer. (ii) Explain briefly the developments in computer technology starting from a simple calculating machine to the first computer. 2. Explain in detail the different generation of computers. 3. Describe the different classification of computers. 4. Explain in detail about the various components of a computer system with block diagram. (or) Explain the organization of a computer. 5. Explain the various types of computer memory. 6. Convert the following: (i) Convert (6245.14)8 to its decimal equivalent. (ii) Convert(111001.101)2 to its decimal equivalent. (iii) Convert the following numbers into their binary equivalent. a. (59.6825)10 b. (EBC)16 c. (654)8 (iv) Convert the following numbers into their binary equivalent. a. FAC16 b. 5618 Page 1

7. Explain the program development life cycle in detail. 8. Explain the need for an algorithm and highlight its advantages. Write an algorithm to find the greatest among three numbers. 9. Mention the guidelines in detail while drawing a flowchart with examples and list out the merits and demerits of flowcharting. 10. Explain pseudo code with an example and briefly discuss the different pseudo code structures. Differentiate algorithm, flowchart and pseudo code. UNIT II - C PROGRAMMING BASICS Problem formulation Problem Solving - Introduction to C programming fundamentals structure of a C program compilation and linking processes Constants, Variables Data Types Expressions using operators in C Managing Input and Output operations Decision Making and Branching Looping statements solving simple scientific and statistical Problems 1. Why header files are included in C programming? 2. What is a global variable? 3. List the different data types available in C? 4. What are keywords? 5. What do you mean by variables in C? 6. What is ternary operator or conditional operator? 7. What is the difference between Logical AND and Bitwise AND? 8. What is the difference between = and == operator? 9. What is the use of sizeof( ) operator? 10. What are the escape sequences present in C 11. What is the output of the programs given below? State the reason. main() main() { { float a; float a; int x=6, y=4; int x=6, y=4; a=x/y; a=(float) x/y; printf( Value of a=%f, a); printf( Value of a=%f,a); } } 12. What are the types of I/O statements available in C? 13. What is the significance of control string in Input / Output Statements? 14. Why we don t use the & symbol while reading a string through scanf() function? 15. What is the difference between ++a and a++? 16. Compare switch( ) and nested-if statement. 17. What are the various types of C operators? 18. Construct an infinite loop using while. 19. What is the difference between while(a) and while(!a)? 20. Differentiate break and continue statement. 1. Explain in detail the structure of a C program with an example. 2. Explain in detail about the constants, expressions and statements in C. Page 2

3. Discuss about the various data types in C. 4. Describe the various types of operators in C language along with its priority. 5. Explain about the various decision making and branching statements. 6. Write short notes on the following: a. for loop b. while loop c. do while loop 7. Explain briefly about the input and output functions in C. 8. (a) Describe in detail about type conversions in C with example. (b) Define delimiters. List them. Give an example program using various delimiters. 9. Explain the following: i. Keywords ii. Identifiers iii. C character set iv. Constants and volatile variables. 10. Write a program for the following : a. To check whether a given year is leap or not. b. To find the roots of a quadratic equation. c. To find the area and circumference of a circle with radius r. d. To convert the temperature given in Fahrenheit to Celsius. e. To calculate simple interest and the maturity amount. f. To find area of a triangle whose sides are a, b and c. g. To find the sum of first 100 integers. h. To find the sum of all odd / even numbers between 1 and 100. i. To check whether a number is prime or not. j. To find the sum of digits of a number. (123 => 1+2+3=6) k. To reverse the digits of a number. (123 => 321) l. To check whether a given number is a palindrome or not. (232) m. To check whether a given number is perfect. (6=>1+2+3, 28=>1+2+4+7+14) n. To print the integers between 1 and n which are divisible by 7. o. To generate the first n numbers in a Fibonacci series. p. To find the factorial of a given number. q. To generate Armstrong number between 100 and 999. r. To find the average of n numbers. s. To find the sum of series : i. 1+(1+2)+(1+2+3)+(1+2+3+4) n terms ii. 1 2 +2 2 +3 2 +4 2 +..n terms iii. 1+1/2+1/3+1/4+..n terms iv. Sin(x) = x - x 3 /3! + x 5 /5!- x 7 /7!+..+ x n /n! v. Cos(x) = 1 x 2 /2! + x 4 /4!- x 6 /6!+..+ x n /n! t. To print the following : i. Pyramid of digits 1 2 3 2 3 4 5 4 3 4 5 6 7 6 5 4. ii. Floyd s triangle 1 2 3 4 5 6 7 8 9 10 Page 3

UNIT III - ARRAYS AND STRINGS Arrays Initialization Declaration One dimensional and Two dimensional arrays. String String operations String Arrays. Simple programs sorting searching matrix operations. 1. Define an Array. Give example. 2. List out the features of Arrays. 3. Is it possible to declare an array subscript with float data type? 4. What are the main elements of an array declaration? 5. What are the drawbacks of Initialization of arrays in C? 6. What will happen when you access the array more than its dimension? 7. What are the different ways of initializing array? 8. How to create a two dimensional array? 9. What is the use of \0 and %s? 10. What is a String? 11. What is the starting index of an array? 12. Is address operator used in scanf() statement to read an array? Why? 13. What is the role of strrev()? 14. Distinguish between one dimensional and two dimensional arrays. 15. How to initialize a string? Give an example. 16. Differentiate between Linear search and Binary search. 17. Write the output of the following Code: main() { char x; x = a ; printf( %d \n,x); } 18. Specify any two methods of sorting. 19. List out the operations that are performed on character strings. 20. Write the output of the following Code: main() { static char name[]= Kagz WrxAd ; int i=0; while(name[i]!= \0 ) { printf( %c,name[i]); i++; } } 1.(i) Explain the need for array variables. Describe the following with respect to arrays: Declaration of array and accessing an array element. (8) (ii) Write a C program to re-order a one-dimensional array of numbers in descending order. (8) 2. Explain the following functions with examples. (4+4+4+4=16) (i) strlen() (ii) strcpy() (iii)strcat() (iv)strcmp() 3. Write ac program to find whether the given string is palindrome or not without using string functions. (16) 4. Write a C program to count the number of characters, spaces,vowels, constantsand others using string functions. (16) 5. Describe the following with suitable examples. (8+8=16) (i) Initializing a 2 Dimensional Array(ii) Memory Map of a Dimensional Array. 6. Explain about the String Arrays and its manipulation in detail (16) 7.(i). Write a C prg to find average marks obtained by a of 30 students in a test.(10) (ii).write short notes on Reading and Writing string. (6) 8. Write a C to merge two sorted array into a single sorted array (16) 9. Write a C program to search an element from the array. (16) 10. Write a C program to perform the following matrix operations: (16) (i) addition (ii) subtraction (iii) multiplication (iv) transpose Page 4

UNIT IV - FUNCTIONS AND POINTERS Function definition of function Declaration of function Pass by value Pass by reference Recursion Pointers Definition Initialization Pointers arithmetic Pointers and arrays Example Problems. 1. What is pointer? How will you declare it? 2. What is a pointer to a pointer? 3. What are the operations that can be performed on pointers? 4. What is pointer arithmetic? 5. What is a void pointer and a null pointer? 6. What is an address operator and indirection operator? 7. Why is pointer arithmetic not applicable on void pointers? 8. What is the use of Pointer? 9. What is user-defined function? 10. What is meant by library function? 11. Write the syntax for function declaration 12. What are the two parts of function definition? 13. What is meant by pass by value and pass by reference? 14. What is a function call? Give an example of a function call 15. What is default arguments and command line arguments? 16. What is a recursive function? 17. What is the need for function? 18. Differentiate Tail and Non Tail recursion 19. What is linear recursion? 20. What is a function pointer? 1. Discuss about pointers and their operations that can be performed on it 2. What is an array of pointers and what is pointer to an array? Explain in detail with example. 3. Write in detail about function declaration and function definition 4. Discuss about the classification of functions depending upon their inputs and output (parameters) 5. Explain in detail about Pass by Value and Pass by reference. 6. Discuss about passing arrays to function. 7. Explain in detail about recursive function with sample code. 8. Explain in detail about function pointers. 9. Write notes on fixed argument functions and variable argument functions. 10. What are the applications of recursive function? Explain about Tower s of Hanoi Problem. Page 5

UNIT V - STRUCTURES AND UNIONS Introduction need for structure data type structure definition Structure declaration Structure within a structure - Union Programs using structures and Unions Storage classes, Pre-processor directives. 1. What is structure? Write the syntax for structure. 2. Write the various operations on structure. 3. How the members of structure object is accessed? 4. Write the use of size operator on structure. 5. What is a nested structure? 6. How typedef is used in structure? 7. Define Union in C. 8. Write the operations on union object. 9. Write the storage classes in C. 10. What is C preprocessor? 11. What is Translator? 12. What is compiler? 13. What is trigraph replacement? 14. What is line splicing? 15. What is tokenization? 16. What is macro? What are predefined macros? 17. What is pre processor directive handling? 18. What is line and error directive? 19. Give the use of preprocessor. 20. Define conditional compilation directive. 1. Explain about storage class specifiers. 2. Explain about C pre processor and phases of translation. 3. Explain about pre processor directive. 4. Explain about union and its practical applications. 5. What is enumeration explain with examples. 6. Explain functions and structures. 7. Explain about structures and its operations. 8. Explain about pointers to structures, array of structures and nested structures. 9. Write a C program using structures to prepare the students mark statement. 10. Write a C program using unions to prepare the employee pay roll of a company. Page 6