SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ODD/EVEN ACADEMICSEMESTER (2014-15) ASSIGNMENT / QUESTION BANK (2110003) [F.Y.B.E.

Similar documents
KITES TECHNOLOGY COURSE MODULE (C, C++, DS)

PART-A Questions. 2. How does an enumerated statement differ from a typedef statement?

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT COURSE CURRICULUM. Course Title: Advanced Computer Programming (Code: )

The C Programming Language course syllabus associate level

B.Sc.(Computer Science) and. B.Sc.(IT) Effective From July 2011

10CS35: Data Structures Using C

I PUC - Computer Science. Practical s Syllabus. Contents

Sources: On the Web: Slides will be available on:

C++ Programming Language

ASCII Encoding. The char Type. Manipulating Characters. Manipulating Characters

Tutorial on C Language Programming

C Programming. for Embedded Microcontrollers. Warwick A. Smith. Postbus 11. Elektor International Media BV. 6114ZG Susteren The Netherlands

Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C

ALLIED PAPER : DISCRETE MATHEMATICS (for B.Sc. Computer Technology & B.Sc. Multimedia and Web Technology)

PES Institute of Technology-BSC QUESTION BANK

Curriculum Map. Discipline: Computer Science Course: C++

Multichoice Quetions 1. Atributes a. are listed in the second part of the class box b. its time is preceded by a colon. c. its default value is

5 Arrays and Pointers

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

Course Name: ADVANCE COURSE IN SOFTWARE DEVELOPMENT (Specialization:.Net Technologies)

Thomas Jefferson High School for Science and Technology Program of Studies Foundations of Computer Science. Unit of Study / Textbook Correlation

WESTMORELAND COUNTY PUBLIC SCHOOLS Integrated Instructional Pacing Guide and Checklist Computer Math

Moving from CS 61A Scheme to CS 61B Java

C Interview Questions

C++ INTERVIEW QUESTIONS

Embedded C Programming, Linux, and Vxworks. Synopsis

Syllabus for Computer Science. Proposed scheme for B.Sc Programme under Choice Based Credit System

Informatica e Sistemi in Tempo Reale

Programming and Software Development (PSD)

Illustration 1: Diagram of program function and data flow

Chapter One Introduction to Programming

Memory management. Announcements. Safe user input. Function pointers. Uses of function pointers. Function pointer example

C PROGRAMMING FOR MATHEMATICAL COMPUTING

Computer Programming I & II*

BCS2B02: OOP Concepts and Data Structures Using C++

File Handling. What is a file?

Chapter 2: Elements of Java

Java Application Developer Certificate Program Competencies

Fundamentals of Programming and Software Development Lesson Objectives

Education: P.h.D. Candidate (Santa Clara University, California) M.S. in Computer Engineering (Santa Clara University, California)

CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013

Data Structure [Question Bank]

Keywords are identifiers having predefined meanings in C programming language. The list of keywords used in standard C are : unsigned void

Object Oriented Programming With C++(10CS36) Question Bank. UNIT 1: Introduction to C++

An Introduction to Assembly Programming with the ARM 32-bit Processor Family

Module 816. File Management in C. M. Campbell 1993 Deakin University

PROBLEM SOLVING SEVENTH EDITION WALTER SAVITCH UNIVERSITY OF CALIFORNIA, SAN DIEGO CONTRIBUTOR KENRICK MOCK UNIVERSITY OF ALASKA, ANCHORAGE PEARSON

Semantic Analysis: Types and Type Checking

Bangalore University B.Sc Computer Science Syllabus ( Semester System)

Symbol Tables. Introduction

9 Control Statements. 9.1 Introduction. 9.2 Objectives. 9.3 Statements

UNIVERSITY OF MUMBAI. Revised syllabus for F.Y.BSc. Computer Science to be implemented. from

TECHNOLOGY Computer Programming II Grade: 9-12 Standard 2: Technology and Society Interaction

arrays C Programming Language - Arrays

Lecture 11 Doubly Linked Lists & Array of Linked Lists. Doubly Linked Lists

So far we have considered only numeric processing, i.e. processing of numeric data represented

El Dorado Union High School District Educational Services

Course Title: Software Development

Programming and Software Development CTAG Alignments

El Dorado Union High School District Educational Services

COWLEY COLLEGE & Area Vocational Technical School

Basic Java Constructs and Data Types Nuts and Bolts. Looking into Specific Differences and Enhancements in Java compared to C

Object Oriented Software Design

Chapter 5 Names, Bindings, Type Checking, and Scopes

ML for the Working Programmer

Database Programming with PL/SQL: Learning Objectives

Object Oriented Software Design

PROGRAMMING IN C PROGRAMMING IN C CONTENT AT A GLANCE

Phys4051: C Lecture 2 & 3. Comment Statements. C Data Types. Functions (Review) Comment Statements Variables & Operators Branching Instructions

Oracle Database: SQL and PL/SQL Fundamentals

Scoping (Readings 7.1,7.4,7.6) Parameter passing methods (7.5) Building symbol tables (7.6)

ADVANCED SCHOOL OF SYSTEMS AND DATA STUDIES (ASSDAS) PROGRAM: CTech in Computer Science

AQA GCSE in Computer Science Computer Science Microsoft IT Academy Mapping

Keil C51 Cross Compiler

An Introduction to Programming and Computer Science

Pseudo code Tutorial and Exercises Teacher s Version

HP-UX Essentials and Shell Programming Course Summary

Computational Mathematics with Python

In this Chapter you ll learn:

Embedded Programming in C/C++: Lesson-1: Programming Elements and Programming in C

Chapter 7: Additional Topics

COMPUTER SCIENCE (5651) Test at a Glance

BSc (Hons) Business Information Systems, BSc (Hons) Computer Science with Network Security. & BSc. (Hons.) Software Engineering

RARITAN VALLEY COMMUNITY COLLEGE ACADEMIC COURSE OUTLINE. CISY 105 Foundations of Computer Science

8051 MICROCONTROLLER COURSE

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

An Incomplete C++ Primer. University of Wyoming MA 5310

COMPUTER SCIENCE TRIPOS

As previously noted, a byte can contain a numeric value in the range Computers don't understand Latin, Cyrillic, Hindi, Arabic character sets!

Subject Name: Object Oriented Programming in C++ Subject Code:

Unit Write iterative and recursive C functions to find the greatest common divisor of two integers. [6]

Java (12 Weeks) Introduction to Java Programming Language

High-Level Programming Languages. Nell Dale & John Lewis (adaptation by Michael Goldwasser)

PROG0101 Fundamentals of Programming PROG0101 FUNDAMENTALS OF PROGRAMMING. Chapter 3 Algorithms

#820 Computer Programming 1A

COMP 356 Programming Language Structures Notes for Chapter 10 of Concepts of Programming Languages Implementing Subprograms.

Glossary of Object Oriented Terms

Transcription:

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ODD/EVEN ACADEMICSEMESTER (2014-15) ASSIGNMENT / QUESTION BANK Subject: Computer Programming and Utilization (2110003) [F.Y.B.E.: ALL BRANCHES] Unit 1 Introduction to Computer & Programming 1. Describe various types of computer languages and mention its advantages and disadvantages. Explain types of language used. 2. Draw the block diagram of computer Architecture and explain each block with its functions. 3. Explain following: a. Operating System b. Compiler c. Interpreter d. Application software e. System Software f. High Level Language 4. Differentiate between a. Hardware and Software b. Flowchart and Algorithm. c. Compiler and Interpreter 5. Explain Algorithms and Flowcharts with example. What is Algorithm and flowchart? Explain both with suitable example. 6. Draw the flowchart & write algorithm for finding largest number out of three given numbers. 7. Draw a flow chart & write algorithm to do the sum of 10 elements read from the user. 8. Explain various symbols used in a flowchart. Draw a flowchart to read 10 integers and find and print the sum of these integers. 9. Write an algorithm and draw the flowchart to accept N numbers and count how many of them where odd and also compute sum of all these odd. 10. What is Flowchart and Algorithm? Draw flowchart to print sum of numbers between 1 to 100 which are divisible by 3 and 5. Unit 2 Fundamentals of C 1. What do you mean by constants in C language? Explain types of constants in detail. 2. State the important features of C language. Also, explain the basic structure of a C program. State and explain features of C language. 3. What is type conversion? Explain implicit type conversion and explicit type conversion with example. 4. Explain: a. Token b. Identifier c. Constant d. Type casting

e. Turnery operator 5. Explain the various I/O function with example in C. 6. Explain different data types used in C Language. 7. List out operators used in C language and explain them with example. Discuss about various operators used in C language. Explain arithmetic, relational and logical operators used in C language. 8. Explain following functions with syntax and suitable example. a. scanf(), b. printf(), c. getchar(), d. putchar(), e. gets() and f. puts(). Unit 3 Control Structures in C 1. Explain various types of loop available in C with example. What do you understand by looping? Explain different types of loops in C with example and compare them. Explain various types of loop available in C with flowchart & example. Compare while loop and for loop with illustrations. Write a program to demonstrate use of o For ( ) o While (.) loop 2. Explain if.. else statement with example. Write types of IF Else statement with example. 3. Explain if.. else.. if ladder with example. 4. Explain goto statement with example. 5. State the difference between entry control loop and exit control loop. 6. What is infinite loop in C? How can you create it? Give an example of situation where you need to use infinite loop? 7. Explain break, continue and exit statement with example. Explain break statement with examples. 8. Explain switch case with examples. 9. Write a program to select and print the largest of the three nos. using nested-if-else statement. 10. Write a program to perform addition, multiplication, subtraction and division with switch statement. 11. Write a program to print the following patterns 1 1 4 3 2 1 2 2 2 3 3 2 1 3 3 3 4 5 6 2 1 4 4 4 4 7 8 9 10 1

1 1 * * * * * * 0 1 1 3 * * * * * * 1 0 1 1 3 5 * * * * * * 0 1 0 1 1 3 5 7 * * * * * *. *. For n lines upto n such lines 12. Write a C program to check whether the given number is prime or not. Write C program to find and print prime numbers between the numbers 1 to n, where the number n should be read from the keyboard. 13. Write a program in C for finding sum of 1 to k. The number k should be read from the keyboard using scanf ( ). 14. Write a program to generate Fibonacci series of numbers (total 30 numbers) i.e. 1, 1, 2, 3, 5, 8,. etc. Write an algorithm and draw a flowchart to print first N Fibonacci numbers. Unit 4 Array & String 1. What is an Array? Explain single & multidimensional array with suitable sample program in C. What is an Array? Explain two dimensional array with suitable sample program in C. 2. List the advantages and limitations of Array in C 3. Write a program to store 20 numbers in an array. Then find out Sum, average of these 20 numbers. 4. What is a string? How string is stored in C? 5. What is string? Write a program to concatenate two strings without using built in function. 6. Write a program to that read two strings and concatenate them using appropriate string function and print the resulting string. 7. Describe various string handling operation using sample C code. 8. Write a C program check given string is palindrome or not. 9. A and B are two n X n matrices. Write a C program to read both A and B matrices, add them and print the resultant C matrix. The maximum value n may be taken as 9. 10. Write a C program to Multiply two 3 X 3 Matrix. Read Two matrices from the user. 11. Write a program to find the minimum value from the array of 3x3. 12. Explain difference String functions used in C with suitable example. Explain following string manipulation functions. a. strcmp(), b. strncmp(), c. strlen(), d. strcmp(), e. strcmpi(), f. strcat(), g. strstr(), h. strchr()

Unit 5 Functions 1. What is function? Give one-one example of User Defined Function and Library Function. 2. What is function? Explain the function definition, function prototype and function call with example. 3. List out the categories of functions. Explain them with example. 4. What are advantages of user defined functions? Explain in this context with examples (i) function prototype (ii) call by value 5. Explain Actual argument and formal argument. 6. What do you mean by recursive function? Explain with small example. What is recursive function? Explain with example. 7. Explain the storage class specifiers in C 8. Write a C program to find factorial of n using recursive use of functions. 9. Define: a. Scope and life time of variable b. void data type c. Static Variable d. Pre-Processor 10. Write a function which accept a string and returns the length of the string. 11. Explain local variable Vs Global Variable using example. What is local and Global variable? Explain with examples. Unit 6 Pointers 1. Define Pointer and explain with example. Give benefits of Pointer. What is Pointer in C? Explain its advantages. What is pointer? Clear it with examples and give its use. 2. How pointer is different from Array? 3. What are pointers in C? Give their benefits. Write a program to read integer numbers in an m[10] array, and print the elements of this array using pointers. 4. Explain Array of pointer with example. 5. Explain Pass by value (or Call by Value) and Pass by reference (Call by reference) with example. 6. Explain functions returning a pointer with example. 7. Write a program to do swapping of two elements using function with two pointers as arguments. What is pointer? Give its benefits. Write a program to do swapping of two elements pointers. Unit 7 Structure 1. What is structure? How do we declare and access structure variables? Illustrate the concept of structure? Explain how can we access structure members? 2. Explain nested structure with example. 3. State the difference between Structure and Union with appropriate example.

Distinguish between Structure and Union. 4. What is structure? How does a structure differ from an array? How is an array of structure initialized? Explain array of structure with example. 5. Explain the various ways to access the structure members with proper syntax in C language. 6. What is a "structure in C? Write a program which declares a structure named student with roll_no, name, address and marks[5]. The structural element marks should be an array to store marks in each of the five subjects. The program then should read and print data for n student using proper format. Unit 8 Dynamic Memory Allocation 1. Give comparison of Static Memory Allocation and Dynamic Memory Allocation with a code snippet. 2. Explain Dynamic Memory Allocation functions with syntax. 3. Show the use of the malloc ( ) function. 4. What is dynamic memory allocation? What is difference between malloc and calloc? Recall the definition of dynamic memory allocation? Differentiate between malloc and calloc. Unit 9 File Management 1. What is a file? List the various file handling operations and write C functions for these operations. 2. What is command line argument? Explain with example. Write a program to display sum of two integers given as command line arguments. 3. Explain file opening and closing function. 4. Describe file management? Recall various file modes. 5. What are the usages of argc and argv in C? 6. Explain file management function. Differentiate between text mode and binary mode stream. 7. Discuss a built-in function that is used to read data randomly from a file. Write a program to display size of given file. 8. Explain character input functions fro files. 9. What is difference between feof() and ferror()? 10. Define the terms: a) File b) Buffer c) File Pointer. 11. Writ a program to read merit marks of 100 students from keyboard in an m[100] array, and store this m array on DATA file, and to read these marks from the DATA file and display them on the monitor. 12. Explain showing proper syntax, following file operations: (i) fprintf ( ) (ii) fscanf ( ) (iii) putc ( ) (iv) getc ( ) 13. Write a program to display the contents of a given file.