Fundamentals of Programming Languages - I
|
|
- Brook Blake
- 5 years ago
- Views:
Transcription
1
2 Fundamentals of Programming Languages - I First Year Engineering Common to All Branches As per the new revised syllabus of SSPU. w.e.f. academic year Dr. Parikshit N. Mahalle LMISTE, Ph.D., Member ACM, Member IEEE, M.E. (Comp. Engg.) Professor, HOD Department of Computer Engineering Smt. KashibaiNavale College of Engg. Vadgaon (BK), Pune. Prof. Vivek V. Jog Ph.D.(Pursuing), M.E.(IT) Assistant Professor Department of Computer Engineering Smt. KashibaiNavale College of Engg. Vadagaon (Bk, Pune
3 Fundamentals of Programming Languages-I First Year Engineering Common to All Branches As per new revised syllabus of SPPU w.e.f. academic year Dr. Parikshit N. Mahalle, Prof. Vivek V. Jog First Edition : July 2017 Published By 631/32, Budhawar Peth, Office No. 105, First Floor, Shan Bramha Complex, Pune Phone No Copyright All rights reserved. No part of this publication can be stored in any retrieval system or reproduced in and form or by any means without prior permission of the Publisher. LIMITS OF LIABILITY AND DISCLAIMER OF WARRANTY The Authors and Publisher of this book have tried their best to ensure that the program, procedure and function described in the book are correct. However the author and publisher make no warranty with regard to the program and documentation contained in the book. ISBN NO. : Price : < 195/- Available at All Leading Book Stalls Distributor : PRADEEP BOOK DISTRIBUTORS 102/3, 1 ST Floor, Shan Bramha Complex, Pune. Telephone No , / pbd0909@gmail.com Note: For any queries, doubts, suggestions & complaints regarding the subject, please feel free to contact on the below or phone number. We will be more than thankful for your feedback. Ph: info.gigatech1@gmail.com
4 Preface Dear students, We are extremely happy to present book on "Fundamentals of Programming Languages - I" for you. We have divided the subject into small chapters so that the topics can be arranged and understood properly. The topics within the chapters have been arranged in a proper sequence to ensure smooth flow of the subject. We are thankful to Mr. Harshal J Potdar and Mr. Rohit K Dongare for the encouragement and support that they have extended. We are also thankful to the staff members of (GPH) and others for their efforts to make this book as good as it is. We have made every possible effort s to eliminate all the errors in this book. However if you find any, please let us know, because that will help us to improve further. We are also thankful to our family members and friends, for patience and encouragement. Authors
5 Unit 1 : Introduction to computer SYLLABUS Block diagram of Computer, hardware, software. Introduction to System Software- Operating System, Editor, Complier, Assembler, Linker, Loader. Problem solving using computers, Introduction to computer programming, Introduction to program planning tools- algorithm, flowcharts, pseudo codes, Software Development Life Cycle, Introduction to open source operating systems and programming languages, Introduction to program development environments: BOSS and GCC Unit 2 : Programming language C Types of programming languages-machine-level, assembly, high level languages. Features of C, basic concepts, structure of a C program, declarations, constants, variables, data types, Operators and expressions, conditional expressions. Operators-assignment, arithmetic, relational, logical, increment and decrement, precedence and associativity of operators, type conversions, Input and Output functions- scanf and printf; Unit 3 : Decision Control Structures in C if, if-else, nested if-else, cascaded if-else and switch statement, loop control structures: for, while, do-while loops, break and continue. Pointers in 'C': Concept, address operators, pointer variable declaration, pointer assignment, pointer initialization. Unit 4 : Array, Functions and Strings in C Arrays in 'C' : Concept, declaration, initialization, assessing elements, operations, multidimensional array. Functions in 'C' : definition, function call, call by value and call by reference, return statement, standard library functions and user defined functions, passing array as function parameter. Strings in 'C' : Concept, declaration, initialization and string manipulation functions, library functions Laboratory Assignments Group A 1. Write a C program to compute the roots of given quadratic equation for non-zero coefficients. 2. Write a C program to calculate the sum of all positive even numbers and the sum of all negative odd numbers from the set of input numbers 3. A customer is offered 15% discount on the printed price of a laptop. The customer has to pay 7% sales tax on the remaining amount. Write a program in C to calculate the amount to be paid by the customer. 4. Write a C program to accept the length of three sides of a triangle and to test and print the type of triangle as equilateral, isosceles or right angled or none
6 F.E. (Fundamentals of Programming Languages-I) 2 Contents 5. Write a C program to accept cost price and sales price of an item and calculate the profit percentage or loss percentage. 6. Write a C program to find out if the number is a Pythagoras triplet. Ex a 2 = b 2 c 2 7. Write a C program to implement Euclid's algorithm to find the GCD and LCM of the given two integers. 8. Write a C program to check whether input number is Prime or not. 9. Write a C program to check if (any one) A) The number is perfect number or not. Hint: If sum of the factors (including 1 and excluding the number itself) is same as that of original number then the number is said to be perfect number. B) The number is 'neon' number or not. Hint: If the sum of the digits of square of the number is the number itself, then the number is said to be neon. For example- 9, Square is 81 and = 9. C) The number is `Armstrong' number or not. Hint: If sum of cubes of digits is equal to original number then the number is said to be Armstrong. For example- Number 153 is Armstrong number (1) 3 + (5) 3 + (3) 3 = Write a C program to separate digits of input 4 digit integer, separate & display its digits. 11. Write a C program to generate first 20 Fibonacci numbers. Write a C program to check if the entered 3 digit number is twisted prime or not. Hint : If the number obtained after reversing the number is also a prime then the number is twisted prime. Example 167, twisted 761, so 167 is twisted prime. 12. Write a C program to calculate the sum of all numbers from 1 to 100 that are divisible by 4 Group B 14. Write a C program to store the N data samples in an array and calculate mean, mode and median. 15. Write a C program to store N numbers in an array and display only those numbers that are perfect squares. 16. Write a C program to store N numbers in an array and search particular number. 17. Write a C program to store N numbers in an array and display the square of each number in the array 18. Write a C program to sort the roll numbers of present students. Mark the attendance of the present students roll numbers randomly in an array. 19. Write a C program to store N numbers in an array and reverse the elements of the array. 20. Write a C program to store Chemistry subject test marks of N students in an array and find the Minimum and Maximum score. Test maximum marks= 20. Your program should accept marks ranging between 0 to 20 only.
7 F.E. (Fundamentals of Programming Languages-I) 3 Contents 21. Write a C program to store N numbers in an array and compute the sum of all even and odd numbers in an array. Group C 22. Write a C program to accept a string and to display the following: A) Total number of characters in the string B) Total number of vowels in the string C) Total number of occurrence of particular character in the string 23. Write a C program to accept a string and change the case of each character of the string. Example "THIs Is a C Program" changes to "this is A c program" 24. Write a C program to accept a string and print the string in alphabetical order. Example COMPUTER will be CEMOPRTU 25. Write a C program to accept a string with complete name of the employee and display the string eliminating the middle word. Example "Mayur Kumar Kulkarni" would be displayed as "Mayur Kulkarni" 26. Write a C program that will check whether given string is palindrome or not. 27. Write a C program that will check whether one string is substring of other string or not. 28. Write a C program to enter a string. Frame a word by joining all the first characters of the words in the string. Example- input "Just Allow Me" will give output as "JAM" 29. Write a C program to accept a string and replace all the vowels in the string with *. Group D 30. A class teacher wants to keep record of 10 students in the class along with the names and marks obtained in 5 subjects. Write a C program with function that displays A) Name of the student with highest marks in a particular subject B) Overall percentage result of the class C) Total number of passing students in the class D) Total number of students failing in one subject E) Total number of distinctions in the class 31. Write a C program to carry out following operations on strings using library functions A) To concatenate a string S2 to string S1 B) To find the length of a given string C) To compare two strings S1 and S2 D) To copy a string S2 to another string S1
8 F.E. (Fundamentals of Programming Languages-I) 4 Contents 32. Write a C program to compute the factorial of the given positive integer using function 33. Write a C program with functions to compute addition and subtraction of two matrices 34. Write a C program that stores 12 city names in a single dimensional array. Write function to display only those words that begin with a consonant and end with a vowel example - Begaluru, Mumbai 35. A mall has 5 stores and 3 departments. Write a C program with function to find the monthly sale of a particular store or department and the total monthly sale of each store and each department. 36. Write a C program that declares and initializes a double, an int and a char variable and a pointer to each of the three variables and one double pointer to store pointer address. Your program should print the address of, and value stored in, and the memory size (in bytes) of each of seven variables. 37. Write a C program with function to swap values of two elements (call by reference)
9 F.E. (Fundamentals of Programming Languages-I) 5 Contents CONTENTS 1. Introduction to computer Introduction and Block Diagram of computer Hardware Software 1.2 Introduction to System Software Operating System Software Objectives of an Operating System Main Objective of an Operating System Program Functions of Operating System Utility Software Library Software / programs Translator Software Editor Compiler Assembler Interpreter 1.3 Software Utilization : A Complete Picture Linker Loader 1.4 Problem Solving using Computers 1.5 Types of software and Their Licensing Open Source Freeware Trial Versions / Sharewares Proprietary Single User License Multi User License Organizational/ Campus based 1.6 Introduction to Computer Programming What is the need for planning a program before Coding? 1.7 Introduction to Program planning Tool Algorithm Advantages of Generalized Algorithms Steps to write Generalized Algorithm Phases of Algorithm An Example How to Create An Algorithm? Avoiding Infinite Loops in Algorithms Flowchart Pseudo Code : Its Necessity
10 F.E. (Fundamentals of Programming Languages-I) 6 Contents Writing A Pseudo Code : Some Do s and Don ts 1.8 soft ware Development Life Cycle 1.9 Introduction to Open Source Operating Systems and Programming Languages Open source operating System Introduction to programming languages Evolution of Programming Languages Paradigm based Programming Language Classification Procedural Programming Languages Structured Programming Languages Object-oriented Programming Languages command scripting Language Application Scripting Language Markup Language Universal Scripting Language Advantages of Scripting Language Features of Good Programming Language 1.10 Introduction to Program Development Environment BOSS : stands for BesIII Offline Software System GCC 2. Programming language C Introduction facts and Features of C Facts about C Why to use C? Features of C Language C program File C Compilers 2.2 Introduction to Programming Language 2.3 Structure of C program 2.4 Constants 2.5 C Tokens, Keywords, Introduction and comments C Tokens C Keywords Instructions Comments 2.6 Identifiers 2.7 Variables Types of Variables 2.8 Declarations 2.9 Storage Class 2.10 Data Types Integer Type Data and Its Categories Character Type Data and Its Categories
11 F.E. (Fundamentals of Programming Languages-I) 7 Contents Floating Point Type Data and Its Categories 2.11 Operators and Expressions Conditional Expressions Arithmetic Operators Increment and Decrement Arithmetic Operators Relational Operators Logical Operators Bitwise Operators Truth Table and Example of Bitwise Operations Assignment Operators 2.12 Operator Precedence and Associativity 2.13 Type Conversions / Type Casting 2.14 Input and output Functions printf () Functions scanf () Functions Unformatted Input/output 3. Decision Control Structures in C Introduction to Decision Control Structures in C 3.2 if 3.3 if - else 3.4 Nested if - else 3.5 Cascaded If else in Case of Multipath Decisions 3.6 Switch case 3.7 Loop Control Structure while loop for loop Nested for loop do while loop Break Statement Continue statement goto Statement Examples on Loop Control Structure 3.8 Pointer Concept 4. Array, Functions and Strings in C Array in C Concept Classification of Array 4.2 Single Dimensional Array Declaration and Initiation of Integer Type Array Array Initiation and Access Declaration and Initiation and Access of Character Type Array
12 F.E. (Fundamentals of Programming Languages-I) 8 Contents Declaration and Initiation and Access to Float Type Array 4.3 Operations on Multidimensional Array (Two Dimensional Arrays) 4.4 String Concepts, Declaration and Initialization Read or Accept string Print or Display string : Accessing Elements Library Functions and Their Purpose String Manipulations Functions 4.5 Function What is C Function.? Uses of C Functions Function Declaration, Function Call and Function Definition Simple Example Program for C Function 4.6 Function Call Call by Value Call by Reference 4.7 Function Categories based on Use of Arguments and Return Value A Function Without Parameters and Without Return Type A Function Without Parameters and With Return Type A Function With Parameters and Without Return Type A Function With Parameters and With Return Type Few Facts About Return Statements of C Functions 4.8 Functions Types in C Standard Library Function User Defined Function Example for User Defined Function 4.9 Steps for Adding our Own Functions in C Library (Considering Turbo C Compiler) Example of Library Function 4.10 Passing Array as Function Parameters Only Specific Data from Specific Location Passing Whole Array Passing Two Dimensional Array 4.11 Array and Pointers 4.12 Structure 4.13 Union MCQ S LABORATORY ASSIGNMENT 1 42
13 Unit 1 Introduction to Computer : Syllabus : Introduction to Open Source Operating Systems and Programming Languages, Introduction to Bharat Operating System (Boss ) GNU/Linux users model GUI, System Folders, study Commands (Using command terminal) with switches; Is Directory Commands, Change user, Privileges, passwords, Uy, who, config, make, rpm, yum, sudo, Sutodown. Eclipse Editor, Compiler, Linker, Libraries, (GUI, Configuring Programming Environments: C,C++, Java, Python(Pydev), Output, Debug windows Introduction to types of Programming Languages Machine-level, Assembly level and High level Languages, Scripting Languages, Natural Languages; Their relative Advantages and Limitations. Characteristics of Good Programming Languages; Selection a Language out of many available languages for coding an application ; subprograms. Short Introduction to LISP, Simulation Platforms: MATLAB and GNU Octagve (Open Source), Importance of Documentation. Documentation Platform LATEX (Free ware/open Source). 1.1 Introduction and Block diagram of Computer Computer of the day is nothing but an electronic device having very fast calculating ability. Definition 1 : A computer is an electronic machine that accepts data, stores and processes data into information. The computer is able to work because there are instructions in its memory directing it.
14 F. E. (Fundamentals of Programming Languages-I) 1.2 Introduction to Computer Definition 2 : A computer is a general purpose device that can be programmed to carry out a set of arithmetic or logical operations automatically. Since a sequence of operations can be readily changed, the computer can solve more than one kind of problem. It accepts request from user through input unit in digital form, process the request as per the request made by user and finally return back result produced to external world through output device. Processing of request is done following set of instructions that are generally prepared and stored in internal memory at par with required business logic. This script is known as a Program. A typical computer system consists of (i) Hardware (ii) Software and (iii) Data Hardware All physical components that belong to all sections of the system block diagram as given in Fig can be said to be Hardware of the computer. As seen in the block diagram, computer hardware comprises of (i) Input unit (ii) Output unit (iii) Central Processing Unit (CPU) (iv) Memory unit Fig : Block diagram of a typical computer
15 F. E. (Fundamentals of Programming Languages-I) 1.3 Introduction to Computer 1. Input unit : To get required work done from computer, user of the system need to command the system to do so. This is possible with the help of hardware that is used in input section of the computer. Input section hardware i.e. an input device is used : i) To receive command from external world to perform required task ii) iii) To provide data on which operations are to be performed. To write set of instructions together called as a program those actually define how to process users request to produce required results. 2. Output Unit : Task that needs to be accomplished is submitted to computer through input devices. These tasks are executed by computer and appropriate results are generated. Now it becomes important to produce these results to the requesting user back. Output unit devices are thus used to communicate or disclose or display these results to the external world back. 3. Central processing unit : This is actual processing part of the system. It further consists of i) Control unit ii) iii) Arithmetic and Logic unit Internal memory. i) Control unit : This unit plays role of a manager. It manages execution of user requests along with coordination with other functional units. ii) iii) Arithmetic and Logic unit : This unit looks after all mathematical and logical computations. It received data either from input unit or from stored memory, performs all operations based on the instructions provided in program or through user command and generates appropriate result. These results are than displayed to user back through output device. Internal memory : It is an immediate memory of the CPU. It is smaller, faster and volatile form of memory. It is used to hold data, programs as well as intermediate results that get generated during normal execution of program. It thus saves the memory overheads in the form of read and write operations to and from secondary memory and hence is a key contributor in speeding up computer operations. Registers : These are smallest, fastest and closest memory available to processor for computations Secondary Memory : This is not a part of computer block diagram but we felt that it is better to explain this external part of system since whole computer works of stored program concept. It means that any program that is to be executed in system has to be brought in RAM for execution and its source by default is
16 Fundamentals of Programming Languages-I (Common for all branches) Publisher : Gigatech Publishing House ISBN : Author : Parikshit N Mahalle And Vivek V Jog Type the URL : Get this ebook
Hrs Hrs Hrs Hrs Hrs Marks Marks Marks Marks Marks
Subject Code: CC103-N Subject Title: FUNDAMENTALS OF PROGRAMMING Teaching scheme Total L T P Total Theory Credit Evaluation Scheme Mid Sem Exam CIA Pract. Total Hrs Hrs Hrs Hrs Hrs Marks Marks Marks Marks
More informationVALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR
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
More informationPROGRAMMING IN C AND C++:
PROGRAMMING IN C AND C++: Week 1 1. Introductions 2. Using Dos commands, make a directory: C:\users\YearOfJoining\Sectionx\USERNAME\CS101 3. Getting started with Visual C++. 4. Write a program to print
More informationProgramming for Problem Solving 105A L T P Credit Major Minor Total Time
ES- Programming for Problem Solving 105A L T P Credit Major Minor Total Time Test Test 3 - - 3 75 25 100 3h Purpose To familiarize the students with the basics of Computer System and C Programming Course
More informationGujarat University M. Sc. Computer Science [S. F.] Semester-1 Syllabus Gujarat Arts & Science College, Ahmedabad.
B. Sc. Computer Science SEM-II EFFECTIVE FROM ACADEMIC YEAR - 2016-2017 CODE Titles Th. Pr. COM-103 ProgramminginC (Theory) 4 COM-104 ProgramminginC(Practical) 4 Teaching Scheme Unit Computer Theory COM
More informationB. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013
Information Technology, UTU 203 030000 Fundamentals of Programming Problems to be solved in laboratory Note: Journal should contain followings for all problems given below:. Problem Statement 2. Algorithm
More informationKadi Sarva Vishwavidyalaya, Gandhinagar
Kadi Sarva Vishwavidyalaya, Gandhinagar MASTERS OF COMPUTER APPLICATION (MCA) Semester I (First Year) Subject: MCA-101 Programming for Logic Building (LDPL) SUB Teaching scheme Examination scheme Total
More information(i) Describe in detail about the classification of computers with their features and limitations(10)
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
More informationQuestions Bank. 14) State any four advantages of using flow-chart
Questions Bank Sub:PIC(22228) Course Code:-EJ-2I ----------------------------------------------------------------------------------------------- Chapter:-1 (Overview of C Programming)(10 Marks) 1) State
More informationC- 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:
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: On successful completion of the course, the students will
More informationAIR FORCE SCHOOL,BAMRAULI COMPUTER SCIENCE (083) CLASS XI Split up Syllabus (Session ) Contents
AIR FORCE SCHOOL,BAMRAULI COMPUTER SCIENCE (083) CLASS XI Split up Syllabus (Session- 2017-18) Month July Contents UNIT 1: COMPUTER FUNDAMENTALS Evolution of computers; Basics of computer and its operation;
More informationSyllabus of Diploma Engineering. Computer Engineering. Semester: II. Subject Name: Computer Programming. Subject Code: 09CE1104
Semester: II Subject Name: Computer Programming Subject Code: 09CE1104 Objective: This Course will help to develop programming skills in the students, using a structured programming language `C'. Students
More informationUNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING
SIDDARTHA INSTITUTE OF SCIENCE AND TECHNOLOGY:: PUTTUR Siddharth Nagar, Narayanavanam Road 517583 QUESTION BANK (DESCRIPTIVE) Subject with Code : PROGRAMMING FOR PROBLEM SOLVING (18CS0501) Course & Branch
More informationAbout Codefrux While the current trends around the world are based on the internet, mobile and its applications, we try to make the most out of it. As for us, we are a well established IT professionals
More informationSubject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100
Code: DC-05 Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100 NOTE: There are 11 Questions in all. Question 1 is compulsory and carries 16 marks. Answer to Q. 1. must be written in the space
More informationFPL-I and FPL-II Syllabus (2012 Course)
FPL-I and FPL-II Syllabus (0 Course) Preamble Major question before me while designing this syllabus was, What CAN I do for First Year Engineering graduates, so that they get the good quality Jobs or opportunity
More informationC-LANGUAGE CURRICULAM
C-LANGUAGE CURRICULAM Duration: 2 Months. 1. Introducing C 1.1 History of C Origin Standardization C-Based Languages 1.2 Strengths and Weaknesses Of C Strengths Weaknesses Effective Use of C 2. C Fundamentals
More informationCHOICE BASED CREDIT SYSTEM (With effect from )
B.Sc. Computer Science Syllabus Under the CHOICE BASED CREDIT SYSTEM (With effect from 2017-18) DEPARTMENT OF COMPUTER SCIENCE University College,TU,Nizamabad-503322 Syllabus for Computer Science (With
More informationReg. No. : Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, JANUARY First Semester GE 6151 COMPUTER PROGRAMMING
wss Reg. No. : Question Paper Code : 37007 B.E./B.Tech. DEGREE EXAMINATION, JANUARY 2014. First Semester Civil Engineering GE 6151 COMPUTER PROGRAMMING (Common to all branches) (Regulation 2013) Time :
More informationUNIVERSITY OF ENGINEERING & MANAGEMENT, KOLKATA C ASSIGNMENTS
UNIVERSITY OF ENGINEERING & MANAGEMENT, KOLKATA C ASSIGNMENTS All programs need to be submitted on 7th Oct 206 by writing in hand written format in A4 sheet. Flowcharts, algorithms, source codes and outputs
More informationSubject: Computer Science
Subject: Computer Science Topic: Data Types, Variables & Operators 1 Write a program to print HELLO WORLD on screen. 2 Write a program to display output using a single cout statement. 3 Write a program
More informationAryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9
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
More informationB.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University
Unit 1 Programming Language and Overview of C 1. State whether the following statements are true or false. a. Every line in a C program should end with a semicolon. b. In C language lowercase letters are
More informationSPLIT UP SYLLABUS SUBJECT : COMPUTER SCIENCE (083) SESSION: Class XI (Theory) C++ Duration: 3 hours Total Marks: 70
SPLIT UP SYLLABUS SUBJECT : COMPUTER SCIENCE (083) SESSION:2014-15 Class XI (Theory) C++ Duration: 3 hours Total Marks: 70 Unit No. Unit Name MARKS 1. COMPUTER FUNDAMENTALS 10 2. INTRODUCTION TO C++ 14
More informationBarkatullah University, Bhopal BCA Faculty 2014 onwards Semester II. Scheme of Marks:
Barkatullah University, Bhopal BCA Faculty 2014 onwards Semester II Code No Name of the Paper 69 FC Paper I Moral values and language - II BCA 201 BCA 202 BCA 203 BCA 204 FC Paper II Development of Entrepreneurship
More informationM4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE
M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be
More informationCourse Title: C Programming Full Marks: Course no: CSC110 Pass Marks: Nature of course: Theory + Lab Credit hours: 3
Detailed Syllabus : Course Title: C Programming Full Marks: 60+20+20 Course no: CSC110 Pass Marks: 24+8+8 Nature of course: Theory + Lab Credit hours: 3 Course Description: This course covers the concepts
More informationComputer Programming C++ (wg) CCOs
Computer Programming C++ (wg) CCOs I. The student will analyze the different systems, and languages of the computer. (SM 1.4, 3.1, 3.4, 3.6) II. The student will write, compile, link and run a simple C++
More informationC & Data Structures syllabus
syllabus Overview: C language which is considered the mother of all languages, is and will be the most sought after programming language for any beginner to jump start his career in software development.
More informationC Programming SYLLABUS COVERAGE SYLLABUS IN DETAILS
C Programming C SYLLABUS COVERAGE Introduction to Programming Fundamentals in C Operators and Expressions Data types Input-Output Library Functions Control statements Function Storage class Pointer Pointer
More informationCOMPUTER PROGRAMMING LAB
COURSE OUTCOMES SEMESTER I Student will be able to: COMPUTER PROGRAMMING LAB 1. Explain basic commands in Linux. 2. Develop programs in C language. 3. Design programs for various problems in C language.
More informationVARIABLE, OPERATOR AND EXPRESSION [SET 1]
VARIABLE, OPERATOR AND EXPRESSION Question 1 Write a program to print HELLO WORLD on screen. Write a program to display the following output using a single cout statement. Subject Marks Mathematics 90
More informationTribhuvan University Institute of Science and Technology 2065
1CSc.102-2065 2065 Candidates are required to give their answers in their own words as for as practicable. 1. Draw the flow chart for finding largest of three numbers and write an algorithm and explain
More informationSRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR
SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR 603203 DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS QUESTION BANK (2017-2018) Course / Branch : M.Sc CST Semester / Year : EVEN / II Subject Name
More informationQ1. Multiple Choice Questions
Rayat Shikshan Sanstha s S. M. Joshi College, Hadapsar Pune-28 F.Y.B.C.A(Science) Basic C Programing QUESTION BANK Q1. Multiple Choice Questions 1. Diagramatic or symbolic representation of an algorithm
More informationDR. A.P.J. ABDUL KALAM TECHNICAL UNIVERSITY LUCKNOW. Evaluation Scheme & Syllabus. For. B.Tech. First Year (Programming for Problem Solving)
DR. A.P.J. ABDUL KALAM TECHNICAL UNIVERSITY LUCKNOW Evaluation Scheme & Syllabus For B.Tech. First Year (Programming for Problem Solving) On Choice Based Credit System (Effective from the Session: 2018-19)
More informationSyllabus for Computer Applications
Syllabus for Computer Applications Proposed scheme for B.A. Programme under Choice Based Credit System Code Course Title Course Type HPW Credits SEMESTER I 106 Programming in C DSC 3A 4T+2P=6 4 + 1 =5
More informationProgramming Fundamentals (CS 302 ) Dr. Ihsan Ullah. Lecturer Department of Computer Science & IT University of Balochistan
Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah Lecturer Department of Computer Science & IT University of Balochistan 1 Outline p Introduction p Program development p C language and beginning with
More informationKENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SPLITUP SYLLABUS FOR COMPUTER SCIENCE CLASS XI
KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SPLITUP SYLLABUS FOR COMPUTER SCIENCE 2015-2016 CLASS XI Month Portion to be covered Th Prac July 2015 Computer Fundamentals 25 8 Classification of computers:
More informationImportant Questions for Viva CPU
Important Questions for Viva CPU 1. List various components of a computer system. i. Input Unit ii. Output Unit iii. Central processing unit (Control Unit + Arithmetic and Logical Unit) iv. Storage Unit
More informationData Types and Variables in C language
Data Types and Variables in C language Disclaimer The slides are prepared from various sources. The purpose of the slides is for academic use only Operators in C C supports a rich set of operators. Operators
More informationSplit up Syllabus (Session )
Split up Syllabus (Session- -17) COMPUTER SCIENCE (083) CLASS XI Unit No. Unit Name Marks 1 COMPUTER FUNDAMENTALS 10 2 PROGRAMMING METHODOLOGY 12 3 INTRODUCTION TO C++ 14 4 PROGRAMMING IN C++ 34 Total
More informationEuclid s algorithm, 133
Index A Algorithm computer instructions, 4 data and variables, 5 develop algorithm, 6 American Standard Code for Information Interchange (ASCII) codes, 141 definition, 142 features, 142 Arithmetic expressions
More informationSardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002
Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002 2 Practicals per week External marks :80 Internal Marks : 40 Total Marks :120 University
More informationVALLIAMMAI ENGINEERING COLLEGE
VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 60 20 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK B.E I SEMESTER GE85- Problem Solving and Python Programming Regulation 207 Academic
More informationScheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C
Sample Test Paper-I Marks : 25 Time:1 Hrs. Q1. Attempt any THREE 09 Marks a) State four relational operators with meaning. b) State the use of break statement. c) What is constant? Give any two examples.
More informationSwami Ramanand Teerth Marathwada University, Nanded
Swami Ramanand Teerth Marathwada University, Nanded Syllabus B. Sc. First Year COMPUTER SCIENCE Semester System (MCQ Pattern) (To Be Implemented From Academic Year 2013-2014) Theory/ Practical Semester
More informationIntroduction to Programming Using Java (98-388)
Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;
More informationLOOPS. 1- Write a program that prompts user to enter an integer N and determines and prints the sum of cubes from 5 to N (i.e. sum of 5 3 to N 3 ).
LOOPS 1- Write a program that prompts user to enter an integer N and determines and prints the sum of cubes from 5 to N (i.e. sum of 5 3 to N 3 ). 2-Give the result of the following program: #include
More information3 The L oop Control Structure
3 The L oop Control Structure Loops The while Loop Tips and Traps More Operators The for Loop Nesting of Loops Multiple Initialisations in the for Loop The Odd Loop The break Statement The continue Statement
More informationPreface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS
Contents Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS 1.1. INTRODUCTION TO COMPUTERS... 1 1.2. HISTORY OF C & C++... 3 1.3. DESIGN, DEVELOPMENT AND EXECUTION OF A PROGRAM... 3 1.4 TESTING OF PROGRAMS...
More informationWriting an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and
Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and #include The Use of printf() and scanf() The Use of printf()
More informationDETAILED SYLLABUS INTRODUCTION TO C LANGUAGE
COURSE TITLE C LANGUAGE DETAILED SYLLABUS SR.NO NAME OF CHAPTERS & DETAILS HOURS ALLOTTED 1 INTRODUCTION TO C LANGUAGE About C Language Advantages of C Language Disadvantages of C Language A Sample Program
More informationKLiC C Programming. (KLiC Certificate in C Programming)
KLiC C Programming (KLiC Certificate in C Programming) Turbo C Skills: The C Character Set, Constants, Variables and Keywords, Types of C Constants, Types of C Variables, C Keywords, Receiving Input, Integer
More informationClass 9 Saturday, Feb 14
Jahangirabad Institute of technology Er.Amit Kr Pathak Computer System & Programming in C, NCS-201 Semester II, 2016(Odd Sem.) MASTER SCHEDULE [U-1] week 1 Class 1 Monday, Feb 1 Introduction to digital
More informationBCA-105 C Language What is C? History of C
C Language What is C? C is a programming language developed at AT & T s Bell Laboratories of USA in 1972. It was designed and written by a man named Dennis Ritchie. C seems so popular is because it is
More informationSample Copy. Not For Distribution.
Computer System and Programming in C i Publishing-in-support-of, EDUCREATION PUBLISHING RZ 94, Sector - 6, Dwarka, New Delhi - 110075 Shubham Vihar, Mangla, Bilaspur, Chhattisgarh - 495001 Website: www.educreation.in
More informationPace University. Fundamental Concepts of CS121 1
Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction
More information(Following Paper ID and Roll No. to be filled by the student in the Answer Book)
F:/Academic/27 Refer/WI/ACAD/10 SHRI RAMSWAROOP MEMORIAL COLLEGE OF ENGG. & MANAGEMENT PAPER ID: 1602 (Following Paper ID and Roll No. to be filled by the student in the Answer Book) Roll No. B.Tech. SEM
More informationSavitribai Phule Pune University, Pune Second Year of Computer Engineering (2015 Course) : Object Oriented Programming Lab Teaching Scheme
Savitribai Phule Pune University, Pune Second Year of Computer Engineering (2015 Course) 210248: Object Oriented Programming Lab Teaching Scheme Credit Examination Scheme PR: 02 Hours/Week 01 TW: 25 Marks
More informationMultiple Choice Questions ( 1 mark)
Multiple Choice Questions ( 1 mark) Unit-1 1. is a step by step approach to solve any problem.. a) Process b) Programming Language c) Algorithm d) Compiler 2. The process of walking through a program s
More informationUnit 1: Introduction to Programming. Saurabh Khatri Lecturer Department of Computer Technology VIT, Pune
Unit 1: Introduction to Programming Saurabh Khatri Lecturer Department of Computer Technology VIT, Pune Syllabus Unit 1: Introduction to Programming Unit 2: Flow of Control and Functions Unit 3: Arrays
More informationINTERNATIONAL INDIAN SCHOOL, RIYADH XI XII BOYS SECTION. Subject- Informatics Practices
Grade- XI INTERNATIONAL INDIAN SCHOOL, RIYADH XI XII BOYS SECTION Unit 1 Programming and Computational Thinking Chapter 1 Introduction to Computer Systems 1. What are the functions of computer? 2. What
More informationTOPICS. Integers Properties of addition and. Rational Numbers Need for rational numbers. Exponents or Powers Introduction to Exponents or
TOPICS DETAILS Integers Properties of addition and subtraction of integers Multiplication of integers Properties of multiplication of integers Division of integers Properties of division of integers Introduction
More informationDownloaded from
CLASS 11 COMPUTER SCIENCE (83) PRACTICAL LIST 1. Write a C++ Program to find area & circumference of circle. 2. Write a C++ Program to display ASCII character & vice versa. 3. Write a C++ Program to find
More informationINTERNATIONAL INDIAN SCHOOL, RIYADH XI XII BOYS SECTION
INTERNATIONAL INDIAN SCHOOL, RIYADH XI XII BOYS SECTION Grade- XI COMPUTER SCIENCE Unit I Programming and Computational Thinking 1. What are the functions of computer? 2. Briefly explain the basic architecture
More informationFirst Year Engineering Credit System Syllabus 2015 Course
SAVITRIBAI PHULE PUNE UNIVERSITY First Year Engineering Credit System Syllabus 2015 Course $ : Mandatory subjects of first, second and third semester must include at least 40 credits for Engineering Physics,
More informationbphanikrishna.wordpress.com
Which of the following is not an input device A) plotter B) scanner C) keyboard D) mouse Which of the following statement is syntactically correct [ ] A) printf( %d, &a); B) scanf( %d, a); C) scanf( %d,
More informationFor Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit
For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit http://victory4sure.weebly.com/ For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit http://victory4sure.weebly.com/
More informationDEPARTMENT OF COMPUTER SCIENCE & ENGINEERING COMPUTER PROGRAMMING LABORATORY LAB MANUAL - 15CPL16 SEMESTER-I/II
APPROVED BY AICTE NEW DELHI, AFFILIATED TO VTU BELGAUM DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING COMPUTER PROGRAMMING LABORATORY LAB MANUAL - 15CPL16 SEMESTER-I/II 2016-2017 Prepared by: Reviewed by:
More informationQuestion Bank (SPA SEM II)
Question Bank (SPA SEM II) 1. Storage classes in C (Refer notes Page No 52) 2. Difference between function declaration and function definition (This question is solved in the note book). But solution is
More informationMODULE 2: Branching and Looping
MODULE 2: Branching and Looping I. Statements in C are of following types: 1. Simple statements: Statements that ends with semicolon 2. Compound statements: are also called as block. Statements written
More informationAssignment: 1. (Unit-1 Flowchart and Algorithm)
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
More informationKOMAR UNIVERSITY OF SCIENCE AND TECHNOLOGY (KUST)
Programming Concepts & Algorithms Course Syllabus Course Title Course Code Computer Department Pre-requisites Course Code Course Instructor Programming Concepts & Algorithms + lab CPE 405C Computer Department
More informationCORE JAVA TRAINING COURSE CONTENT
CORE JAVA TRAINING COURSE CONTENT SECTION 1 : INTRODUCTION Introduction about Programming Language Paradigms Why Java? Flavors of Java. Java Designing Goal. Role of Java Programmer in Industry Features
More informationIntroduction to Computer Science using JAVA
NJ CCCS AREA: 21 st -CENTURY LIFE AND CAREERS NJ-CCSS AREA: MATHEMATICS North Brunswick Township Public Schools Introduction to Computer Science using JAVA Acknowledgements Vivian Morris, Teacher Diane
More informationMiddle School Math Course 3 Correlation of the ALEKS course Middle School Math 3 to the Illinois Assessment Framework for Grade 8
Middle School Math Course 3 Correlation of the ALEKS course Middle School Math 3 to the Illinois Assessment Framework for Grade 8 State Goal 6: Number Sense 6.8.01: 6.8.02: 6.8.03: 6.8.04: 6.8.05: = ALEKS
More informationC PROGRAMMING LAB MANUAL
C PROGRAMMING LAB MANUAL For BEX/BCT/B.Sc.CSIT/BIM/BCA BY BABU RAM DAWADI RAM DATTA BHATTA 448/ From the Book: Capsules of C Programming Appendix - B C PROGRAMMING LAB SHEETS Dear Students, Welcome to
More informationCharacter Set. The character set of C represents alphabet, digit or any symbol used to represent information. Digits 0, 1, 2, 3, 9
Character Set The character set of C represents alphabet, digit or any symbol used to represent information. Types Uppercase Alphabets Lowercase Alphabets Character Set A, B, C, Y, Z a, b, c, y, z Digits
More informationComputers Programming Course 6. Iulian Năstac
Computers Programming Course 6 Iulian Năstac Recap from previous course Data types four basic arithmetic type specifiers: char int float double void optional specifiers: signed, unsigned short long 2 Recap
More informationFUNDAMENTALS OF COMPUTER PROGRAMMING AND IT
FUNDAMENTALS OF COMPUTER PROGRAMMING AND IT SALIENT FEATURES OF THE PRESENT EDITION Motivates the unmotivated and provides the teachers an unequaled approach that allows them to teach students with a disparity
More informationLecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes
Course Title Course Code WEB DESIGNING TECHNOLOGIES DCE311 Lecture : 3 Course Credit Practical : Tutorial : 0 Total : 5 Course Learning Outcomes At end of the course, students will be able to: Understand
More informationPDS Lab (Assignment 1) Date: 31 st July, 2017 (2-6 pm)
PDS Lab (Assignment 1) Date: 31 st July, 2017 (2-6 pm) (1) Write a C program to print your name. (2) Write a C program to convert the temparature from Fahrenheit to Celsius. Take the temparature in Fahrenheit
More informationProgramming Fundamentals - A Modular Structured Approach using C++ By: Kenneth Leroy Busbee
1 0 1 0 Foundation Topics 1 0 Chapter 1 - Introduction to Programming 1 1 Systems Development Life Cycle N/A N/A N/A N/A N/A N/A 1-8 12-13 1 2 Bloodshed Dev-C++ 5 Compiler/IDE N/A N/A N/A N/A N/A N/A N/A
More informationDEPARTMENT OF MATHS, MJ COLLEGE
T. Y. B.Sc. Mathematics MTH- 356 (A) : Programming in C Unit 1 : Basic Concepts Syllabus : Introduction, Character set, C token, Keywords, Constants, Variables, Data types, Symbolic constants, Over flow,
More informationM3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE
M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be
More informationCSCI 171 Chapter Outlines
Contents CSCI 171 Chapter 1 Overview... 2 CSCI 171 Chapter 2 Programming Components... 3 CSCI 171 Chapter 3 (Sections 1 4) Selection Structures... 5 CSCI 171 Chapter 3 (Sections 5 & 6) Iteration Structures
More informationAcademic Programme: B.Sc. I Year. Computer Science (Optional) Hours. Fundamentals of Computer Hours.
Swami Ramanand Teerth Marathwada University, Nanded B.Sc First Year Semester Pattern Computer Science (Optional) With Effect from 2009-10 Aims and Objectives: 1. To provide a professional level of competence
More informationVALLIAMMAI ENGINEERING COLLEGE
VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK B.E. - Electrical and Electronics Engineering IV SEMESTER CS6456 - OBJECT ORIENTED
More informationAlgorithms 4. Odd or even Algorithm 5. Greatest among three numbers Algorithm 6. Simple Calculator Algorithm
s 4. Odd or even Step 3 : If number divisible by 2 then Print "Number is Even" Step 3.1 : else Print "Number is Odd" Step 4 : Stop 5. Greatest among three numbers Step 2 : Read values of a, b and c Step
More informationINDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI
INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI 2017-2018 Worksheet No. 1 Topic : Getting Started With C++ 1. Write a program to generate the following output: Year Profit% 2011 18 2012 27 2013 32
More informationINTRODUCTION TO COMPUTER SCIENCE - JAVA
INTRODUCTION TO COMPUTER SCIENCE - JAVA North Brunswick Township Public Schools Acknowledgements Vivian S. Morris Math/Computer Science Teacher Diane Galella Supervisor of the Math Department Written SPRING
More informationDEPARTMENT OF COMPUTER APPLICATIONS SRM INSTITUTE OF SCIENCE AND TECHNOLOGY SRM NAGAR, KATTANKALATHUR
DEPARTMENT OF COMPUTER APPLICATIONS SRM INSTITUTE OF SCIENCE AND TECHNOLOGY SRM NAGAR, KATTANKALATHUR SYLLABUS / QUESTION BANK Class & Semester : I ECE & II Semester Subject Code : CS152 Subject Name :
More informationIntroduction to Computer Science Midterm 3 Fall, Points
Introduction to Computer Science Fall, 2001 100 Points Notes 1. Tear off this sheet and use it to keep your answers covered at all times. 2. Turn the exam over and write your name next to the staple. Do
More information2/29/2016. Definition: Computer Program. A simple model of the computer. Example: Computer Program. Data types, variables, constants
Data types, variables, constants Outline.1 Introduction. Text.3 Memory Concepts.4 Naming Convention of Variables.5 Arithmetic in C.6 Type Conversion Definition: Computer Program A Computer program is a
More informationChapter1 Overview of computers
1 Chapter1 Overview of computers 1. What is a computer? 2. Which is the earliest computing machine? 3. Who invented the pascaline? 4. What is Charles babbage known as? 5. What is the machine proposed by
More informationT.Y.B.Sc. Syllabus Under Autonomy Mathematics Applied Component(Paper-I)
T.Y.B.Sc. Syllabus Under Autonomy Mathematics Applied Component(Paper-I) Course: S.MAT. 5.03 COMPUTER PROGRAMMING AND SYSTEM ANALYSIS (JAVA PROGRAMMING & SSAD) [25 Lectures] Learning Objectives:- To learn
More informationENGINEERING PROGRAMMING
ENGINEERING PROGRAMMING MS in Earth Science Engineering Semester 1, 2018/19 COURSE COMMUNICATION FOLDER University of Miskolc Faculty of Earth Science and Engineering Institute of Geophysics and Geoinformatics
More informationDIOCESAN COLLEGE PREPARATORY SCHOOL Mathematics Syllabus: Grade 7
DIOCESAN COLLEGE PREPARATORY SCHOOL Mathematics Syllabus: Grade 7 For convenience the syllabus has been divided into sections. It is important to integrate work and set relevant problem solving tasks.
More informationIECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23.
Subject code - CCP01 Chapt Chapter 1 INTRODUCTION TO C 1. A group of software developed for certain purpose are referred as ---- a. Program b. Variable c. Software d. Data 2. Software is classified into
More information