Skip to main content

Posts

Showing posts from October, 2018

IA-2 PSPC Syllabus

Following is the syllabus for PSPC IA-2: Decision Making and Looping ( includes nested loops also ) Introduction The while statement The do statement The for statement Jumps in Loops Arrays ( 1D arrays only ) Introduction One-dimensional arrays Initialization of one-dimensional arrays NOTE: Programs on above the above mentioned topics can be asked in IA-2. Hence thoroughly practice the programs discussed in the class and also the problems given during the regular labs. Also refer the chapters: 5 & 6 from the prescribed text book " Programming in ANSI C " by E.Balagurusamy. All the best for IA-2!!!

Using time() functions in C programs to calculate time taken to execute set of statements

Following is the procedure to use time() functions in C. These functions help us to calculate total time taken (in seconds) to execute a set of statements. This is very helpful if we are testing the efficiency of any algorithm / methodology: Include time.h header in your C program. i.e., write #include<time.h> statement before main() function. Inside main(), define two variables t1 and t2 whose data type is time_t. i.e, write time_t t1, t2; t1 is used to record initial time (in seconds) and t2 is used to record elapsed time (in seconds) Use t1=time(NULL); before the start of the algorithm/ methodology that you want to test. After writing algorithm/ methodology, use t2=time(NULL);   Total time taken can now be calculated as: t2-t1. Following sample example shows the usage of time() functions in C programs: #include<stdio.h> #include<time.h> main() {         time_t t1, t2;         int flag=0; ...

Guidelines for conduction of Online PSPC Quiz-1

Online PSPC Quiz-1 shall be conducted on 15/10/2018 from 3:00 to 4:00 P.M. The quiz will be taken using Google Forms . The performance of the quiz will be considered for CTA marks. Hence, it is important to perform well in the quiz. Kindly go through the below guidelines: Use the link:  https://tinyurl.com/18ucsc100-pspc-quiz1  to take the  quiz . There are total 25 questions, each of MCQ (Multiple Choice Question) type. These are selected back questions of chapters: 1, 2, 3 & 5 from the textbook " Programming in ANSI C " by E. Balagurusamy. You can attempt the  quiz  from hostel/home/college premises . You can use  smart phone/laptop/desktop systems for taking the  quiz . Internet connection is required to take the  quiz . It is preferable to use Google Chrome Browser (recent version recommended) to attempt the  quiz . If you are using any other browsers then  quiz  questions might not appear properly. The...

Conduction of Lab IA-1 for PSPC Lab

PSPC Lab IA-1 shall be conducted next week (i.e., between 08/10/2018 and 13/10/2018) during the regular lab slots (i.e., on  09/10/2018 - Tuesday - C2 Batch - 2:30 - 5:00 P.M. and on  11/10/2018 - Thursday - C1 Batch - 10:30 - 1:00 P.M. ) Procedure for conducting Lab Internals: ONLY one common problem definition shall be given to the entire batch during the lab internal. ONLY one answer sheet (4 pages) shall be provided to each student. Write the C program for the problem definition in the answer sheet provided. Show the write-up to the teacher and get it singed. Students will be allowed to execute the program only after getting the signature on the answer sheet. Separate logins shall be provided for each student during the lab internal. Hence don't login using regular logins. During lab internals, bringing mobile phones is STRICTLY PROHIBITED. However, students can bring the text book "Programming in ANSI C" by E. Balagurusamy to the lab. Students can use ...

Conduction of Remedial Classes

It is decided by all the faculties handling PSPC course that, remedial classes shall be held for the students who have scored less than 10 marks in IA-1 . Such students are required to attend remedial classes every Wednesday starting from 03/10/2018 2:30 - 4:30 P.M. in CSE department Seminar Hall . Attendance for remedial classes is MANDATORY . Students are required to bring the text book " Programming in ANSI C " by E. Balagurusamy and PSPC class notes with them while attending the class.