Upcoming SlideShare
×

# Student copybca sem1-c

682 views

Published on

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
682
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
6
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Student copybca sem1-c

1. 1. PUNJAB COLLEGE OF TECHNICAL EDUCATION, LUDHIANA COURSE PLAN Programming in C [ BC- 104(N2) ] Max. Marks 100 Internal Assessment 40 External Assessment 60 Instructions for Students • Candidates are required to attempt FOUR questions from section B and the ALL the questions from section A. • Use of non-programmable scientific calculator is allowed. Syllabus Fundamentals: Character set, Identifiers & Keywords, Data Types, constants, set, constants, variables, expressions, statement, symbolic constants. Operations and expressions: Arithmetic operators, unary operators, relational and logical operators, assignment and conditional operators, and library functions. Data input and output: Preliminaries, single character input, single character output, entering input data, more about the scanf function, writing output data, more about printf function, the gets and puts function, interactive programming. Control statements: Preliminaries, while, do-while and for statements. Nested loops, if else, switch, break continue statement. Functions: Brief overview, defining accessing function, passing perimeters to function, specifying argument data types, function prototype and recursion.
2. 2. Program structure: Storage classes, automatic, external, and static variables, more about library functions. Array: defining and processing an array, passing pointers to a function, pointer and one dimensional arrays, operations on pointers, passing functions multidimensional arrays of pointers, passing functions to the other functions, more about pointer declarations. Structure And Unions: Defining and processing a structure, user defined data types, structure and Pointers, passing structure to function, self-referential structures, unions. Data files: Opening, closing, creating, and processing and unformatted data field. C-programming applications: Sorting (Bubble sort, Selection sort), Searching (Binary search, Linear Search). REFERENCES: 1. E.Balaguruswamy Programming in ANSI ‘C’ (Tata McGraw Hill) 2. Byron Gottorfried Schaum’s outline of prog. with C (Tata McGraw Hill) 3. Kerighan & Richie The C programming language (PHI Publication) 4. Aaron M. Tannen Baum Data structures using C (PHI publication)
3. 3. Important Guidelines  Attendance Criteria – 75% (No Compensation)  You are supposed to be present in the class on/before scheduled time. After that you will be allowed to attend the lecture but attendance for the same will not be awarded.  You will be informed well in advance about all the important deadlines related to different activities.  If you will miss any of the test or presentation or any other activity, there will be no compensation in the marks for the same.  You are advised not to copy the assignments otherwise copied assignments and the master assignment would be cancelled and awarded zero marks. Following are the parameters along with weight-age for the final calculation of Internal. Internal Evaluation Breakup Marks Parameters 15 MID SEMESTER EXAMINATION [MSE] 5 PRESENTATION 10 TESTS [First Hourly, Second Hourly, Special] 10 ASSIGNMENTS
4. 4. Class: BCA - 1st – A Lectures: 46 Subject: Programming in C Tutorials: 3 Subject Code: BC-104 (N2) Tests: 3 Instructor: Anil Sharma [AS] Assignments: 3 Tests/ Lecture Topics Assignment/ Tutorials Fundamentals: Fundamentals of 1 Computers, Types of Software, Meaning of a Computer Language Fundamentals continue…: Types of 2 Languages, Translators: Compiler, Interpreter, Assembler 3 Algorithms: Problem Solving with Computers, Algorithms with examples Flow charts: What is Flow Chart, why 4 Flow charts, Symbols of flow charts, Example 1 Flow charts continue…: Example 2, 5 Example 3, Example 4, Example 5 Program Structure of a simple C 6 Program, Simple example of C program. Introduction to Character set, Identifiers, Keywords, Data Types, Constants, 7 variables, expressions, Statement, symbolic constants Operations and expressions: Arithmetic operators, unary operators, relational and 8 logical operators, Assignment and conditional operators, and library functions. Preliminaries (printf, scanf), Single character output, entering input data, 9 Writing output data, gets and puts function Format Specifiers /Delimiters and Escape Sequences, Interactive 10 programming (creating User Friendly Programs) 11 Tutorial -1
5. 5. Test -1 12 Assignment – 1 If statements: Simple if statement, if… 13 else statement, multiple if statement If statements continue…: nested if-else 14 statements, ladder if-else statements Looping Controls: while Loop, syntax of 15 while loop, example1, example2 Looping Controls continue…: do… 16 while loop, example 1, example 2 Looping Controls continue…: for loop 17 statements, example 1, example 2, Nested loops Looping Controls continue…: More 18 Examples on looping controls Switch Case Statement, Example 1, 19 Example 2 Break and Continue statement, Example 20 1, Example 2 21 Test-2 Function: Definition, uses, Types of 22 functions (Inbuilt, user defined) Function continue…: Predefined 23 Functions: string function, mathematical functions User Function continue…: user defined 24 function: defining, calling and prototype of function User Function continue…: types of user defined functions: no argument no return 25 value, no argument with return value, with argument no return User Function continue…: with argument and with return value, Passing 26 parameters to function, Specifying argument data types, Recursion Tutorial – 2 27 Assignment – 2 Storage classes: automatic, external, 28 and static variables 29 User defined data types: enum, typedef Array: Defining and processing an array, 30 Types of Array- One dimensional, Two dimensional, Example 1, Example 2 Array continue…: Two dimensional 31 arrays – Example 1, Example 2
6. 6. 32 Array continue…: Array and Function 33 Test – 3 Pointers: Introduction to pointers, 34 Meaning, Usage, Importance of Pointers, Example 1, Example 2 Pointers continue…: Pointer and one 35 dimensional arrays Pointers continue…: Pointer 36 arthematics Structure: Defining and processing 37 structure, structure members, using structure Example 1, Example 2 Structure continue…: Structure and 38 pointers, passing structure to function, Self-referential structures Union: definition, uses, difference b/w 39 union and structure, Example 1, Example 2 Tutorial – 3 40 Assignment – 3 File Handling: Meaning, usage, opening 41 and closing files, Example 1, Example2 File Handling continue…:Various 42 modes of Files, Creating, and processing, Unformatted data field Searching: What is searching, Why 43 searching?, Linear Search Searching continue…: Binary search, 44 Meaning and Example Sorting: What is sorting, Why sorting?, 45 Bubble sort Sorting continue…: Selection sort, 46 Meaning and Example