SlideShare a Scribd company logo
PUNJAB COLLEGE OF TECHNICAL EDUCATION, LUDHIANA

                                       COURSE PLAN


Subject Code: BC-104 (N2)

Assignments: 3    Total Lectures: 40              Tests: 4    Revision Lectures: 4

Max. Marks 100

Internal Assessment 40
External Assessment 60

Instructions for Candidates
Candidates are required to attempt four questions from section B and the entire section A. Use
of non-programmable scientific calculator is allowed.

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.

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).


    REFERENCE:

    1. E.Balaguruswamy        Programming in ANSI „C‟                   (Tata McGraw Hill)

    2. Byron Gottorfried      Schaum‟s outline of programming with C (Tata McGraw Hill)

    3. Kerighan & Richie      The C programming language                (PHI Publication)

    4. Lafore R.              Object Oriented Programming              (Galgotia)

    5. Aaron M. Tannen Baum    Data structures using C               (PHI publication)




          Punjab College of Technical Education -
                   Course Plan


Subject Name: Programming in 'C'                                          Subject Code: BC-
                                                                                        104(N2)
Teacher's Code: SJ                                                        No. of Tests: 4
No. of   40                                                               No. of        4
Lect.                                                                     Assignments



Lect No   Topic                                           Assignment Test                    Date
1         Fundamentals of computer Language,
          Compiler, assembler
2    Problem Solving with Computers, Algorithms
     with examples

3    Flow charts with examples
4    Program structure of a simple C Program

5    Introduction to Character set, Identifiers,
     Keywords, Data Types
6    Constants, variables, expressions.

7    Statement, symbolic constants
8    Operations and expressions: Arithmetic
     operators, unary operators, relational and
     logical operators
9    Assignment and conditional operators, and                     test1
     library functions.
10   Data input and output: Preliminaries (printf,
     scanf),Single character output, entering input
     data, Writing output data, gets and puts
     function


11   Format Specifiers /Delimiters and Escape
     Sequences

12   Interactive programming (creating User           Assignment
     Friendly Programs)                               1

13   Control statements: Preliminaries

14   If statements
15   If elseif, nested ifelse, ladder ifelse                       Test 2
     statements
16   While, do-while statements
17   For statements, Nested loops

18   Switch Case Statement
19   Break and Continue statement
20   function: definition, uses, Types of
     functions(Inbuilt, user defined)
21   Predefined Functions: string function,
     mathematical functions
22   user defined function: defining, calling and
     prototype of function

23   Passing perimeters to function, Specifying         Assignment
     argument data types                                2

24   Recursion
25   Storage classes, automatic, external, and static
     variables
26   User defined data types: enum, typedef

27   Array: Defining and processing an array                         test3

28   Types of Array : one and two dimensional
     arrays
29   Array and Function
30   Intro to pointers
31   Pointer and one dimensional arrays

32   Pointer Arithmetics
33   Structure :Defining and processing structure Assignment
                                                        3
34   Structure and pointers, passing structure to
     function
35   Self-referential structures
36   Union: definition, uses,difference b/w union                    test4
     and structure
37   Introduction of files:Opening and Closing
     files
38   Creating, and processing,Unformatted data
     field
39       C-programming applications: Linear
         Search,Binary search
40       Bubble sort,Selection sort




     Reference:
     1 Yashwant Kanetkar “Let us C”
     2. E.Balaguruswamy Programming in ansi „C‟ (Tata McGraw
     Hill)
     3. Schaum‟s series for data structure (Tata McGraw Hill)




     Assignment No. 1
     Date of delivery:

     Date of submission:


     Ques 1: Define the following terms:

                    a. variable
                    b. constant
                    c. keywords
                    d. difference between ‘+’ and ‘++’ operator
                    e. difference between ‘&’ and ‘&&’ operator
                    f. difference between ‘=’ and ‘==’ operator
Ques 2: Enumerate the operators available in ‘C’ language and
            illustrate the use of conditional, unary minus, increment and &&
            operator through a simple program.

            Ques 3: What is an expression? What kind of information is
            returned by an expression?

            Ques 4: What do you understand by structured language? Why
            ‘C’ is called a structured language and middle level language?




Assignment No. 2
Date of delivery:

Date of submission:


            Ques 1: Wap in ‘C’ to input 5 digits number from user and print
            this number in reverse order?

            Ques 2: Name the three different classes of statements in ‘C’.
            describe the composition of each.

            Ques 3: What the purpose of break statement? Within which
            statements can the break statement can be included?

            Ques 4: Write a recursive function to compute fibonacci series
            upto 20 terms.

            Ques 5: Write a program to print the following

                    1

                        121

               12321

  1234321
Ques 6.

What is the difference between while and do-while statement?



Assignment No. 3
Date of delivery:

Date of submission:

            Ques 1: Assuming That The Data Consist Of 100 Positive Integers
            In The Range Of 0 To 25, Write A Program In C That Prints The
            Number Of Times Each Of The Integers Occurs In The Input?

Ques 2: Explain the difference between structure and union?

            Ques 3: WAP to sort the elements of an array by using selection
            sort and bubble sort.

            Ques 4: WAP to search an element from an array by using binary
            search.

            Ques 5: WAP to multiply two matrices.

More Related Content

What's hot

C++ interview question
C++ interview questionC++ interview question
C++ interview question
Durgesh Tripathi
 
R05010106 C P R O G R A M M I N G A N D D A T A S T R U C T U R E S
R05010106  C  P R O G R A M M I N G   A N D   D A T A  S T R U C T U R E SR05010106  C  P R O G R A M M I N G   A N D   D A T A  S T R U C T U R E S
R05010106 C P R O G R A M M I N G A N D D A T A S T R U C T U R E S
guestd436758
 
OBJECT ORIENTED PROGRAMING IN C++
OBJECT ORIENTED PROGRAMING IN C++ OBJECT ORIENTED PROGRAMING IN C++
OBJECT ORIENTED PROGRAMING IN C++
Dev Chauhan
 
BASIC CONCEPTS OF C++ CLASS 12
BASIC CONCEPTS OF C++ CLASS 12BASIC CONCEPTS OF C++ CLASS 12
BASIC CONCEPTS OF C++ CLASS 12
Dev Chauhan
 
C, C++ Interview Questions Part - 1
C, C++ Interview Questions Part - 1C, C++ Interview Questions Part - 1
C, C++ Interview Questions Part - 1
ReKruiTIn.com
 
Handout#04
Handout#04Handout#04
Handout#04
Sunita Milind Dol
 
Handout#09
Handout#09Handout#09
Handout#09
Sunita Milind Dol
 
Handout#05
Handout#05Handout#05
Handout#05
Sunita Milind Dol
 
A COMPLETE FILE FOR C++
A COMPLETE FILE FOR C++A COMPLETE FILE FOR C++
A COMPLETE FILE FOR C++M Hussnain Ali
 
Visula C# Programming Lecture 6
Visula C# Programming Lecture 6Visula C# Programming Lecture 6
Visula C# Programming Lecture 6
Abou Bakr Ashraf
 
Handout#08
Handout#08Handout#08
Handout#08
Sunita Milind Dol
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
Soran University
 
Handout#03
Handout#03Handout#03
Handout#03
Sunita Milind Dol
 
Top C Language Interview Questions and Answer
Top C Language Interview Questions and AnswerTop C Language Interview Questions and Answer
Top C Language Interview Questions and Answer
Vineet Kumar Saini
 
Operators and Expressions in C#
Operators and Expressions in C#Operators and Expressions in C#
Operators and Expressions in C#
Prasanna Kumar SM
 
Assignment11
Assignment11Assignment11
Assignment11
Sunita Milind Dol
 
Chapter 2 c#
Chapter 2 c#Chapter 2 c#
Chapter 2 c#
megersaoljira
 
Visula C# Programming Lecture 7
Visula C# Programming Lecture 7Visula C# Programming Lecture 7
Visula C# Programming Lecture 7
Abou Bakr Ashraf
 

What's hot (19)

C++ interview question
C++ interview questionC++ interview question
C++ interview question
 
R05010106 C P R O G R A M M I N G A N D D A T A S T R U C T U R E S
R05010106  C  P R O G R A M M I N G   A N D   D A T A  S T R U C T U R E SR05010106  C  P R O G R A M M I N G   A N D   D A T A  S T R U C T U R E S
R05010106 C P R O G R A M M I N G A N D D A T A S T R U C T U R E S
 
OBJECT ORIENTED PROGRAMING IN C++
OBJECT ORIENTED PROGRAMING IN C++ OBJECT ORIENTED PROGRAMING IN C++
OBJECT ORIENTED PROGRAMING IN C++
 
BASIC CONCEPTS OF C++ CLASS 12
BASIC CONCEPTS OF C++ CLASS 12BASIC CONCEPTS OF C++ CLASS 12
BASIC CONCEPTS OF C++ CLASS 12
 
C, C++ Interview Questions Part - 1
C, C++ Interview Questions Part - 1C, C++ Interview Questions Part - 1
C, C++ Interview Questions Part - 1
 
Handout#04
Handout#04Handout#04
Handout#04
 
17515
1751517515
17515
 
Handout#09
Handout#09Handout#09
Handout#09
 
Handout#05
Handout#05Handout#05
Handout#05
 
A COMPLETE FILE FOR C++
A COMPLETE FILE FOR C++A COMPLETE FILE FOR C++
A COMPLETE FILE FOR C++
 
Visula C# Programming Lecture 6
Visula C# Programming Lecture 6Visula C# Programming Lecture 6
Visula C# Programming Lecture 6
 
Handout#08
Handout#08Handout#08
Handout#08
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Handout#03
Handout#03Handout#03
Handout#03
 
Top C Language Interview Questions and Answer
Top C Language Interview Questions and AnswerTop C Language Interview Questions and Answer
Top C Language Interview Questions and Answer
 
Operators and Expressions in C#
Operators and Expressions in C#Operators and Expressions in C#
Operators and Expressions in C#
 
Assignment11
Assignment11Assignment11
Assignment11
 
Chapter 2 c#
Chapter 2 c#Chapter 2 c#
Chapter 2 c#
 
Visula C# Programming Lecture 7
Visula C# Programming Lecture 7Visula C# Programming Lecture 7
Visula C# Programming Lecture 7
 

Viewers also liked

友商 SAAS
友商 SAAS友商 SAAS
友商 SAAS
yq76034150
 
AIA-Los Angeles Chapter Presentation - September 2010
AIA-Los Angeles Chapter Presentation - September 2010AIA-Los Angeles Chapter Presentation - September 2010
AIA-Los Angeles Chapter Presentation - September 2010
terribatch
 
test marks
test markstest marks
test marks
PCTE
 
test marks
test markstest marks
test marks
PCTE
 
Thank You Dido Lyrics and Chords
Thank You Dido Lyrics and ChordsThank You Dido Lyrics and Chords
Thank You Dido Lyrics and Chords
PennyName
 
C:\users\user\documents\robert\documents\documents\desktop\klases darbi bibli...
C:\users\user\documents\robert\documents\documents\desktop\klases darbi bibli...C:\users\user\documents\robert\documents\documents\desktop\klases darbi bibli...
C:\users\user\documents\robert\documents\documents\desktop\klases darbi bibli...jaunbuve
 
碰撞
碰撞碰撞
碰撞
yq76034150
 

Viewers also liked (7)

友商 SAAS
友商 SAAS友商 SAAS
友商 SAAS
 
AIA-Los Angeles Chapter Presentation - September 2010
AIA-Los Angeles Chapter Presentation - September 2010AIA-Los Angeles Chapter Presentation - September 2010
AIA-Los Angeles Chapter Presentation - September 2010
 
test marks
test markstest marks
test marks
 
test marks
test markstest marks
test marks
 
Thank You Dido Lyrics and Chords
Thank You Dido Lyrics and ChordsThank You Dido Lyrics and Chords
Thank You Dido Lyrics and Chords
 
C:\users\user\documents\robert\documents\documents\desktop\klases darbi bibli...
C:\users\user\documents\robert\documents\documents\desktop\klases darbi bibli...C:\users\user\documents\robert\documents\documents\desktop\klases darbi bibli...
C:\users\user\documents\robert\documents\documents\desktop\klases darbi bibli...
 
碰撞
碰撞碰撞
碰撞
 

Similar to Coursebreakup

Coursebreakup
CoursebreakupCoursebreakup
CoursebreakupPCTE
 
Course File c++
Course File c++Course File c++
Course File c++
emailharmeet
 
Course Break - C Language
Course Break - C LanguageCourse Break - C Language
Course Break - C Languageanilmanu2001
 
Course Breakup - C Porgramming Language
Course Breakup - C Porgramming LanguageCourse Breakup - C Porgramming Language
Course Breakup - C Porgramming Languageanilmanu2001
 
Student copybca sem1-c
Student copybca sem1-cStudent copybca sem1-c
Student copybca sem1-canilmanu2001
 
Syllabus of BCA Second Year JAMMU University
Syllabus of BCA Second Year JAMMU UniversitySyllabus of BCA Second Year JAMMU University
Syllabus of BCA Second Year JAMMU UniversityRavi Shairaywal
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
Ankit Dubey
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
Ankit Dubey
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
Ankit Dubey
 
Course Break - C++ Language
Course Break - C++ LanguageCourse Break - C++ Language
Course Break - C++ Languageanilmanu2001
 
Course Break - C++ Language
Course Break - C++ LanguageCourse Break - C++ Language
Course Break - C++ Languageanilmanu2001
 
A Validation of Object-Oriented Design Metrics as Quality Indicators
A Validation of Object-Oriented Design Metrics as Quality IndicatorsA Validation of Object-Oriented Design Metrics as Quality Indicators
A Validation of Object-Oriented Design Metrics as Quality Indicatorsvie_dels
 
IT-UG-New-Syllabus.pdf
IT-UG-New-Syllabus.pdfIT-UG-New-Syllabus.pdf
IT-UG-New-Syllabus.pdf
SONUKUMAR325592
 
B sc it syit sem 3 sem 4 syllabus as per mumbai university
B sc it syit sem 3 sem 4 syllabus as per mumbai universityB sc it syit sem 3 sem 4 syllabus as per mumbai university
B sc it syit sem 3 sem 4 syllabus as per mumbai university
tanujaparihar
 
Cmp 104
Cmp 104Cmp 104
Cmp 104
kapil078
 
17 pcds syllabus
17 pcds syllabus17 pcds syllabus
17 pcds syllabus
anandgudnavar
 
SE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUSSE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUS
nikshaikh786
 

Similar to Coursebreakup (20)

Coursebreakup
CoursebreakupCoursebreakup
Coursebreakup
 
Af7ff syllabuslablist
Af7ff syllabuslablistAf7ff syllabuslablist
Af7ff syllabuslablist
 
Course File c++
Course File c++Course File c++
Course File c++
 
Course Break - C Language
Course Break - C LanguageCourse Break - C Language
Course Break - C Language
 
Course Breakup - C Porgramming Language
Course Breakup - C Porgramming LanguageCourse Breakup - C Porgramming Language
Course Breakup - C Porgramming Language
 
Student copybca sem1-c
Student copybca sem1-cStudent copybca sem1-c
Student copybca sem1-c
 
Syllabus of BCA Second Year JAMMU University
Syllabus of BCA Second Year JAMMU UniversitySyllabus of BCA Second Year JAMMU University
Syllabus of BCA Second Year JAMMU University
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
 
Course Break - C++ Language
Course Break - C++ LanguageCourse Break - C++ Language
Course Break - C++ Language
 
Course Break - C++ Language
Course Break - C++ LanguageCourse Break - C++ Language
Course Break - C++ Language
 
A Validation of Object-Oriented Design Metrics as Quality Indicators
A Validation of Object-Oriented Design Metrics as Quality IndicatorsA Validation of Object-Oriented Design Metrics as Quality Indicators
A Validation of Object-Oriented Design Metrics as Quality Indicators
 
IT-UG-New-Syllabus.pdf
IT-UG-New-Syllabus.pdfIT-UG-New-Syllabus.pdf
IT-UG-New-Syllabus.pdf
 
M.Sc_Syllabus
M.Sc_SyllabusM.Sc_Syllabus
M.Sc_Syllabus
 
B sc it syit sem 3 sem 4 syllabus as per mumbai university
B sc it syit sem 3 sem 4 syllabus as per mumbai universityB sc it syit sem 3 sem 4 syllabus as per mumbai university
B sc it syit sem 3 sem 4 syllabus as per mumbai university
 
Cmp 104
Cmp 104Cmp 104
Cmp 104
 
17 pcds syllabus
17 pcds syllabus17 pcds syllabus
17 pcds syllabus
 
SE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUSSE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUS
 
2nd sem
2nd sem2nd sem
2nd sem
 

Coursebreakup

  • 1. PUNJAB COLLEGE OF TECHNICAL EDUCATION, LUDHIANA COURSE PLAN Subject Code: BC-104 (N2) Assignments: 3 Total Lectures: 40 Tests: 4 Revision Lectures: 4 Max. Marks 100 Internal Assessment 40 External Assessment 60 Instructions for Candidates Candidates are required to attempt four questions from section B and the entire section A. Use of non-programmable scientific calculator is allowed. 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. 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,
  • 2. 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). REFERENCE: 1. E.Balaguruswamy Programming in ANSI „C‟ (Tata McGraw Hill) 2. Byron Gottorfried Schaum‟s outline of programming with C (Tata McGraw Hill) 3. Kerighan & Richie The C programming language (PHI Publication) 4. Lafore R. Object Oriented Programming (Galgotia) 5. Aaron M. Tannen Baum Data structures using C (PHI publication) Punjab College of Technical Education - Course Plan Subject Name: Programming in 'C' Subject Code: BC- 104(N2) Teacher's Code: SJ No. of Tests: 4 No. of 40 No. of 4 Lect. Assignments Lect No Topic Assignment Test Date 1 Fundamentals of computer Language, Compiler, assembler
  • 3. 2 Problem Solving with Computers, Algorithms with examples 3 Flow charts with examples 4 Program structure of a simple C Program 5 Introduction to Character set, Identifiers, Keywords, Data Types 6 Constants, variables, expressions. 7 Statement, symbolic constants 8 Operations and expressions: Arithmetic operators, unary operators, relational and logical operators 9 Assignment and conditional operators, and test1 library functions. 10 Data input and output: Preliminaries (printf, scanf),Single character output, entering input data, Writing output data, gets and puts function 11 Format Specifiers /Delimiters and Escape Sequences 12 Interactive programming (creating User Assignment Friendly Programs) 1 13 Control statements: Preliminaries 14 If statements 15 If elseif, nested ifelse, ladder ifelse Test 2 statements 16 While, do-while statements 17 For statements, Nested loops 18 Switch Case Statement
  • 4. 19 Break and Continue statement 20 function: definition, uses, Types of functions(Inbuilt, user defined) 21 Predefined Functions: string function, mathematical functions 22 user defined function: defining, calling and prototype of function 23 Passing perimeters to function, Specifying Assignment argument data types 2 24 Recursion 25 Storage classes, automatic, external, and static variables 26 User defined data types: enum, typedef 27 Array: Defining and processing an array test3 28 Types of Array : one and two dimensional arrays 29 Array and Function 30 Intro to pointers 31 Pointer and one dimensional arrays 32 Pointer Arithmetics 33 Structure :Defining and processing structure Assignment 3 34 Structure and pointers, passing structure to function 35 Self-referential structures 36 Union: definition, uses,difference b/w union test4 and structure 37 Introduction of files:Opening and Closing files 38 Creating, and processing,Unformatted data field
  • 5. 39 C-programming applications: Linear Search,Binary search 40 Bubble sort,Selection sort Reference: 1 Yashwant Kanetkar “Let us C” 2. E.Balaguruswamy Programming in ansi „C‟ (Tata McGraw Hill) 3. Schaum‟s series for data structure (Tata McGraw Hill) Assignment No. 1 Date of delivery: Date of submission: Ques 1: Define the following terms: a. variable b. constant c. keywords d. difference between ‘+’ and ‘++’ operator e. difference between ‘&’ and ‘&&’ operator f. difference between ‘=’ and ‘==’ operator
  • 6. Ques 2: Enumerate the operators available in ‘C’ language and illustrate the use of conditional, unary minus, increment and && operator through a simple program. Ques 3: What is an expression? What kind of information is returned by an expression? Ques 4: What do you understand by structured language? Why ‘C’ is called a structured language and middle level language? Assignment No. 2 Date of delivery: Date of submission: Ques 1: Wap in ‘C’ to input 5 digits number from user and print this number in reverse order? Ques 2: Name the three different classes of statements in ‘C’. describe the composition of each. Ques 3: What the purpose of break statement? Within which statements can the break statement can be included? Ques 4: Write a recursive function to compute fibonacci series upto 20 terms. Ques 5: Write a program to print the following 1 121 12321 1234321
  • 7. Ques 6. What is the difference between while and do-while statement? Assignment No. 3 Date of delivery: Date of submission: Ques 1: Assuming That The Data Consist Of 100 Positive Integers In The Range Of 0 To 25, Write A Program In C That Prints The Number Of Times Each Of The Integers Occurs In The Input? Ques 2: Explain the difference between structure and union? Ques 3: WAP to sort the elements of an array by using selection sort and bubble sort. Ques 4: WAP to search an element from an array by using binary search. Ques 5: WAP to multiply two matrices.