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

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

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

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING

Introduction. C provides two styles of flow control:

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

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

Flow Chart. The diagrammatic representation shows a solution to a given problem.

Unit 3. Operators. School of Science and Technology INTRODUCTION


Chapter 7. Additional Control Structures

C-LANGUAGE CURRICULAM

Department of Computer Science

Programming for Engineers Iteration

Data Types and Variables in C language

Introduction to C/C++ Lecture 3 - Program Flow Control

INTRODUCTION TO COMPUTER SCIENCE - LAB

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

C Programming SYLLABUS COVERAGE SYLLABUS IN DETAILS

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

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

Loops and Files. Chapter 04 MIT 12043, Fundamentals of Programming By: S. Sabraz Nawaz

Operators and Expressions:

Introduction to Computer Science Midterm 3 Fall, Points

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

PROGRAMMING IN C AND C++:

DEPARTMENT OF MATHS, MJ COLLEGE


Operators & Expressions

LESSON 1. A C program is constructed as a sequence of characters. Among the characters that can be used in a program are:

PERIYAR CENTENARY POLYTECHNIC COLLEGE Periyar Nagar- Vallam Thanjavur

DETAILED SYLLABUS INTRODUCTION TO C LANGUAGE

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

Code No: R Set No. 1

Advantages of writing algorithm

A complex expression to evaluate we need to reduce it to a series of simple expressions. E.g * 7 =>2+ 35 => 37. E.g.

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:

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

Guide for The C Programming Language Chapter 1. Q1. Explain the structure of a C program Answer: Structure of the C program is shown below:

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

CprE 288 Introduction to Embedded Systems Exam 1 Review. 1

Structured Program Development in C

COP 2000 Introduction to Computer Programming Mid-Term Exam Review

Operators in C. Staff Incharge: S.Sasirekha

CP FAQS Q-1) Define flowchart and explain Various symbols of flowchart Q-2) Explain basic structure of c language Documentation section :

P.E.S. INSTITUTE OF TECHNOLOGY BANGALORE SOUTH CAMPUS DEPARTMENT OF SCIENCE AND HUMANITIES EVEN SEMESTER FEB 2017

Copyright 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 5-1

Review for Test 1 (Chapter 1-5)

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

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

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

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

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

Fundamentals of Programming CS-110. Lecture 3

Java Notes. 10th ICSE. Saravanan Ganesh

Will introduce various operators supported by C language Identify supported operations Present some of terms characterizing operators

Q 1. Attempt any TEN of the following:

I Internal Examination Sept Class: - BCA I Subject: - Principles of Programming Lang. (BCA 104) MM: 40 Set: A Time: 1 ½ Hrs.

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Basic Science and Humanities

Constants and Variables

Information Science 1

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

3. EXPRESSIONS. It is a sequence of operands and operators that reduce to a single value.

Sir Muhammad Naveed. Arslan Ahmed Shaad ( ) Muhammad Bilal ( )

Decision Making -Branching. Class Incharge: S. Sasirekha

Flow Control. CSC215 Lecture

Prepared by: Shraddha Modi

Introduction. Following are the types of operators: Unary requires a single operand Binary requires two operands Ternary requires three operands

Infix to Postfix Conversion

PESIT Bangalore South Campus Hosur Road (1km before Electronic City), Bengaluru Department of Basic Science and Humanities

Imperative Paradigm. Syntax. Role of Programming Languages. Expressions. Expressions. Role of Programming Languages. Symbols.

Computers Programming Course 6. Iulian Năstac

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

C Programming Class I

Loops / Repetition Statements. There are three loop constructs in C. Example 2: Grade of several students. Example 1: Fixing Bad Keyboard Input

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

C/Java Syntax. January 13, Slides by Mark Hancock (adapted from notes by Craig Schock)

C/Java Syntax. Lecture 02 Summary. Keywords Variable Declarations Data Types Operators Statements. Functions. if, switch, while, do-while, for

Review of the C Programming Language for Principles of Operating Systems

Unit-2 (Operators) ANAND KR.SRIVASTAVA

Review of the C Programming Language

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

Dept. of CSE, IIT KGP

Multiple Choice Questions ( 1 mark)

Loops! Loops! Loops! Lecture 5 COP 3014 Fall September 25, 2017

Lecture 02 C FUNDAMENTALS

Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah. Lecturer Department of Computer Science & IT University of Balochistan

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

GO - OPERATORS. This tutorial will explain the arithmetic, relational, logical, bitwise, assignment and other operators one by one.

The Arithmetic Operators. Unary Operators. Relational Operators. Examples of use of ++ and

The Arithmetic Operators

A Look Back at Arithmetic Operators: the Increment and Decrement

The component base of C language. Nguyễn Dũng Faculty of IT Hue College of Science

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

Sequence structure. The computer executes java statements one after the other in the order in which they are written. Total = total +grade;

Chapter 4: Basic C Operators

Downloaded from

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

Operators. Java operators are classified into three categories:

LECTURE 5 Control Structures Part 2

5.1. Chapter 5: The Increment and Decrement Operators. The Increment and Decrement Operators. Looping. ++ is the increment operator.

Transcription:

Assignment: 1 (Unit-1 Flowchart and Algorithm) 1. Explain: Flowchart with its symbols. 2. Explain: Types of flowchart with example. 3. Explain: Algorithm with example. 4. Draw a flowchart to find the area and circumference of circle. 5. Draw a flowchart to find maximum number out of three numbers. 6. Draw a flowchart to print odd numbers between 1 to 10 numbers. 7. Draw a flowchart to add 1 to n numbers. 8. Write an algorithm to find the area of circle. 9. Write an algorithm to find minimum number out of two numbers. 10. Write an algorithm to find the sum of even numbers between 1 to 100.

Assignment: 2 (Unit-2 Basics of C) 1. Draw a basic structure of C program and explain it. 2. Explain Token with types. 3. List the rules of keywords and identifiers. 4. Explain variable with its declaration and initializations. 5. Explain datatype with its types. 6. List the basic datatype with its size and range. 7. Explain user defined datatype with example. 8. Explain Constants with example. 9. Explain storage class of C. 10. List the advantages of C. 11. List the features of C. 12. Convert the following expression into its equivalent C expression. (1) y = ax 2 +bx+c m1+m2 (2) y = 1 m1m2 (3) y = s(s a)(s b)(s c) (4) y = a 2 + b 2

Assignment: 3 (Unit 3 Operators and Expression) 1. Define operators and its types. 2. Explain Arithmetic operator with example. 3. Explain Logical operator with example. 4. Explain Relational operator with example. 5. Explain Conditional operator with example. 6. Explain Assignment operator with example. 7. Explain Bitwise operator with types and example. 8. Explain Sizeof operator with example. 9. Explain postfix and prefix increment operator with example. 10. Explain postfix and prefix decrement operator with example. 11. Give the difference between prefix and postfix increment (or decrement) operator. 12. Evaluate the following expressions: A. 5*3+6/2*5-7%3 B. 2-9*3+6/2*3+5 C. 5*9+(12+6/3*5)/4+3%3 D. 5+6*3+3-(5*6+(9+5)*4) 13. Give the output of following code. (1) (2) (3) int a,b; int a=15,b; int a=11; a=10; b=--a; printf( %d\n%d,a++,++a); b=a++; printf( a=%d,a); printf( a=%d,a); printf( b=%d,b); printf( b=%d,b);

Assignment: 4 (Unit- 4 Decision Statement) 1. Explain condition statement with types. 2. Explain simple if statement with syntax, flowchart and example. 3. Explain if - else statement with syntax, flowchart and example. 4. Explain nested if - else statement with syntax, flowchart and example. 5. Explain if else-if ladder statement with syntax, flowchart and example. 6. Explain switch case statement with syntax, flowchart and example. 7. Explain goto statement with example. 8. Explain the use of break and goto statement.

Assignment: 5 (Unit-5 Loop Control Statement) 1. Explain Looping statement with types. 2. Explain while loop statement with syntax, flowchart and example. 3. Explain do-while statement with syntax, flowchart and example. 4. Explain for loop statement with syntax, flowchart and example. 5. Give the difference between entry controlled loop (pre-test loop) and exit controlled loop (post-test loop). 6. Explain the features of for loop with example. 7. Explain the use of continue statement with example.

Assignment: 6 (Unit-6 Introduction of Array) 1. Explain Array with types and declaration of it. 2. List the characteristics of Array. 3. Explain the types of initialization of array. 4. Write a program to enter array elements and display it. 5. Write a program to add 5 elements of array. 6. Write a program to find maximum number out of 10 array elements. 7. Write a program to sort the array elements in ascending order.