Computer Programming (University of Rajasthan, February-March 2021)

Instructor: Sanjeev Kumar

Pre-requisites

The basic pre-requisites for this course are a proper knowledge of basic logic and algorithm makings: How to solve a problem by hand and how to work logic.

Message Channel

If you want to get updates on mobile, send your mobile number on email and get updates on whatsapp/hike/sms.

Dates and timings

Wednesday, Thursday, Friday and Saturday 10:00 AM – 11:00 AM

Starting date: Revision of pre-requisites from February 17, new course material from February 22, 2021.

Venue

Smart room 2

Links

Contact

  • Email: sanjeev@uniraj.ac.in

  • Office: R201

  • Mobile: +91 9462807073

Calendar

My Calendar and availability

About the course

This is a Masters in Physics course at Department of Physics, University of Rajasthan, Jaipur.

Several textbooks will be used during the course. The five books pictured above (click to enlarge) are among the recommended ones. A list of other C-programing language textbooks can be found on the internet. Syllabus is covered from two books, one is by Robert Sebesta and another is Deitel.

Details about these books can be found by clicking here.

The course contents are as follows:

  1. Basic concepts of programming languages: Programming domains, language evaluation criterion and language categories. Describing Syntax and Semantics, formal methods of describing syntax, recursive descent parsing, attribute grammars, dynamic semantics. Names, Variables, Binding, Type checking, Scope and lifetime.

  2. Data types, array types, record types, union types, set types and pointer types, arithmetic expressions, type conversions, relational and Boolean expressions, assignment statements, mixed mode assignment, statement level control structure, compound statements, selection statement, iterative statements, unconditional branching, guarded commands. Fundamentals of sub-program, design issues, parameter passing methods, overloaded subprograms, generic subprograms, separate and independent compilation, design issues for functions, accessing nonlocal environment, user defined overloaded operators, implementing subprograms, blocks, implementing dynamic scooping.

  3. Programming in C: Character set, variables and constants, keywords, Instructions, assignment statements, arithmetic expression, comment statements, simple input and output, Boolean expressions, Relational operators, logical operators, control structures, decision control structure, loop control structure, case control structure, functions, subroutines, scope and lifetime of identifiers, parameter passing mechanism.

  4. Arrays and strings, structures, array of structures, Unions of structures, operations on bits, usage of enumerated data types. Bit-fields, Pointers to Function, Function returning Pointers.

Assignments

Notes

There are few handwritten notes/slides can be found in previous year pages. This is to maintain the record of classes held during the course. To find files written for discussion can be found at github.

  • Introduction to syllabus and pattern of course: 17, 18, 19 and 20 February 2021

  • Revision lecture: 22 and 23 February 2021 (pdf)

  • Lecture 1: First day in computer lab: 24 February 2021

  • Lecture 2: First c program: 25 February 2021

  • Lecture 3, 4, 5 and 6: simple arithmetic, if statement and examples: 3, 4, 5 and 6 March 2021

  • Lecture 7: for, while and do-while loops: 10 March 2021

  • Holiday: Mahashivratri: 11 March 2021

  • Lecture 8: Switch case statement: 12 March 2021

  • Lecture 9: Operation of char datatypes: 13 March 2021

  • Lecture 10: Math library functions: 17 March 2021

  • Lecture 11: User defined functions and recursion: 18 March 2021

  • Lecture 12: Scope rules and lifetime of identifiers: 19 March 2021

  • Lecture 13, 14: Arrays in c program: 20 March 2021

Attendance

  • In classroom (Reports hided after completion of the course)