Friday, April 10, 2020

PPT + Video on Evaluation of Mathematical Series using Loops

This video introduces the approaches to evaluate mathematical infinite series, namely:
1) Euler's Series 2) Sine Series

Kindly go through the video and ask your doubts (if any) in the comments section.
Also try out the suggested activity that is discussed in the video without fail. 

YouTube Video:



PPT discussed in the video:

Wednesday, April 8, 2020

PPT + Video on Programs on Decision Making and Looping

In continuation with the previous post, I have uploaded video on Programs on Decision Making and Looping.

This video introduces two problems that can be solved using loops. Namely: 1) Checking whether a number is prime or not 2) Finding GCD (using Euclid's algorithm) and LCM of two numbers Please find the blog link on how to measure time taken by C statements:
https://18ucsc200-pspc.blogspot.com/2018/10/using-time-functions-in-c-programs-to.html

Kindly go through the video and ask your doubts (if any) in the comments section.

YouTube Video:



PPT discussed in the video:

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:

  1. Include time.h header in your C program. i.e., write #include<time.h> statement before main() function.
  2. 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)
  3. Use t1=time(NULL); before the start of the algorithm/ methodology that you want to test.
  4. After writing algorithm/ methodology, use t2=time(NULL); 
  5. 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;
        unsigned long long int i, j, n;

        printf("Enter N:\n");
        scanf("%llu", &n);
        t1=time(NULL);
        for(i=2;i<=n/2;i++)
        {
                if(n%i==0)
                {
                     flag=1;
                     break;
                }
        }
        t2=time(NULL);
        printf("Time taken (in seconds): %d\n", t2-t1);
}

Execute the above program by providing large values of N and note the time it takes (in seconds) to check whether N is prime or not.

PPT + Video on Decision Making Looping

Hello students,

As you are aware that we are locked down due to corona outbreak, conducting physical classes is not possible. To enable you to learn during the lock down, we will post video lectures on PSPC course on YouTube.

As a starter, I have uploaded video on Decision Making and Looping.

Kindly go through the video and ask your doubts (if any) in the comments section.

YouTube Video:



PPT discussed in the video:

Friday, February 28, 2020

Schedule + Guidelines for conduction of Online PSPC Quiz-1

Online PSPC Quiz-1 shall be conducted on 06/03/2020 (Friday) from 9:00 - 9:45 A.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:
  1. Use the link: https://tinyurl.com/18ucsc200-h-quiz1 to take the quiz. There are 30 questions, each are of MCQ (Multiple Choice Question) type. These questions are selected from back questions of chapters: 1, 2, 3 & 5 (partly) from the textbook "Programming in ANSI C" by E. Balagurusamy and the concepts that were covered in the regular theory class.
  2. Currently the quiz is not enabled yet. The quiz will be enabled at sharp 9:00 A.M. on Friday (06/03/2020) and will be disabled at sharp 9:45 A.M.
  3. You have to come to CSE Lab-1 to take the quiz. Attendance will be taken during the quiz. 
  4. If any student takes the quiz outside CSE Lab-1, then quiz marks of such students will not be considered for CTA.
  5. You can use your smart phone, laptop or the machines that are available in the lab, for taking the quiz.
  6. As this quiz is online quiz, active Internet connection is required to take the quiz. You might have to login using your internet username and password if you want to take the quiz using the machines available in the lab. 
  7. It is preferable to use Google Chrome Browser (recent updated version recommended) to attempt the quiz. If you are using any other browsers then quiz questions might not appear properly.
  8. It is important to submit the quiz on or before 9:45 A.M. to avoid any problems
  9. If you fail to submit the quiz on or before 9:45 A.M., then your attempt is not recorded in the database and the performance in the quiz will not be considered for CTA evaluation.
  10. The quiz is successfully submitted ONLY IF you click on the Submit button. After successful submission of the quiz, you will get a message, "Thank you for taking the quiz. Your answers have been recorded". This is a confirmation message that you have SUCCESSFULLY submitted the quiz.
  11. You can attempt this quiz only once.
  12. Please use your gmail ID ONLY to login and take the quiz. If you currently don't have gmail ID, then create a fresh gmail ID and use it to take the quiz.
  13. There is NO NEGATIVE marking for wrong answers. Hence attempt all the questions of the quiz.
  14. If you want to get yourself familiarize with Google Forms environment to take the quiz, then you can try the sample PSPC Quiz. You can refer my post: Sample PSPC Quiz to make yourself familiarize with Google Forms Environment for more information. 
I wish you all the best for the quiz!!!!!

Wednesday, February 26, 2020

Sample PSPC Quiz to make yourself familiarize with Google Forms Environment

As part of CTA activity for PSPC theory course, I shall be conducting online quizzes. To conduct the quizzes, I will be making use of Google Forms, which provides facility to create, share and take the quiz easily and efficiently.

As many of you may not be familiar with the usage of Google Forms for taking quizzes, I have created a sample quiz. This quiz will be always active. The link for the online sample quiz is given below:

Link to PSPC Sample Quiz

Following things should be kept in mind while taking the quiz:

  • Use the above link to take the quiz any number of times. However, for the actual quizzes that are part of CTA activity, you will be allowed to take the quiz only once (in a stipulated time slot). 
  • Before attempting the quiz, you need to enter your email ID. Preferably enter the gmail ID (get the gmail ID created if you don't have your gmail ID).
  • Real quiz requires you to sign in to your gmail account first and then continue with the quiz.
  • Make yourself familiarize with the quiz environment.
  • Fill in the Personal Information (all fields in this section are mandatory) and attempt all the quiz questions.
  • After attempting all the questions from the quiz, click on "Submit" button (this button will be available at the end of the quiz).
  • After successfully submitting the quiz, you will get a message "Thank you for taking the sample quiz. Your answers have been recorded". This message confirms that your answers are successfully recorded.
  • Your answers will be saved only if you click on Submit button
  • Forgetting to click on Submit button will lead to your answers not getting recorded at my end.
I sincerely hope that you will use this sample quiz to make yourself fully familiarize with Google Forms environment!!!

PPT + Video on Evaluation of Mathematical Series using Loops

This video introduces the approaches to evaluate mathematical infinite series, namely: 1) Euler's Series 2) Sine Series Kindly go t...