Chapter 1 practice set

                            Practice set

Hope you have learned the previous session of Chapter 1. Now I will give you questions so you have to solve them some are find the errors questions and some are have to write the programs. Some of them are the conceptual based questions that will help u to revese your concepts. Now let's start.

                                Conceptual based questions

Question no. 1: What are variables?
Question no. 2: What is the format specifier for integer?
Question no. 3: Which format specifier is this: %f.
Question no. 4: What are comments? Give any one use of them.
Question no. 5: What are the two main types of comments.
Question no. 6: What is the syntax of taking input from the user?

                              A.I skills questions

This exersice is made for to test your AI skills and the questions that I donot have tell you. So you are living in AI era so many things are easier to understand so you have to use AI because if  you will not use AI so you will get slower because the time is less so you have to use ChatGPT to increase your productivity. Now you have to open this link
https://chatgpt.com/
You have to ask these questions from ChatGPT and learn them
Question no. 1: Name all the keywords in C and tell me how many keywords are there in C language.
Question no 2: Tell me the names of Airthmetic opreation operators in C language?
Question no 3: What is the basic structure of a C program?
Question no 4: What is the format specifier for Long, Double, and String? ( What is string we will learn it later so please hold you just have to know about string's format specifier so when we go to String's chapter so I will not tell you about the string's format specifier so I will only tell you about the opreations of strings in C language ).

                   Find the output and errors questions

Remember that to get a job you have to practice these questions so that you have to build your strong brach in logic building. That's why this exercise is made. You have to guess the output of these programs and sometimes it have an error so you have to fix the error then guess the output without wasting many time and without the help of compiler and ChatGPT if the answer is wrong or you are not finding the error so you have to check the program title in the source code and after you are confirmed so you have to test this in your compiler. If this is not working so you have to go to the ChatGPT and ask that what is the error.

                                           Program1

#include <stdio.h>

int main(){
    int a;
    printf("%d", a);
    return 0;
}

                                        Program2         

#include <stdio.h>

int main(){
    int a = 3
    int b = 4;
    return 0;
}

             Programme writing questions

Write the following programmes Writing a program is very important for your practice when you write programs in computer language so it becomes very helpful for your programming skills. There are ten programs for you. If you practice these things so you will definitly get the strong foundation in basics. Many things if I go to advance so you can use ChatGPT and ask him the formulaes. Like if I ask you the formula of Surface area of Squar that is 6{L}. So you can ask this from ChatGPT about the forulaes. Remember about the data types. Now let's start the questions. Remember that you have to attempt each question by using hard coded inputs and input getting by the user. which means you have to attempt each question's part.


Question no. 1: Write a program to calculate the surface area of squar?
Question no. 2: Write a program to calculate the area of a circle
Quesion no. 3: Write a program to calculate the perimeter of Rectangle?
Question no. 4: Write a program to convert the tempreature from Kelvin to Fehrenhiet?
Question no. 5: Write a program to do division?
Question no. 6: Write a program to calulate average of students?
Question no. 7: Write a program to convert tempreature in Clesuis to Fehrenhiet?
Question no. 8: Write a program to convert the 12 0 clock time to 24 0 clock time?
Question no. 9: Write a program to find the volume of Cylinder?
Question no. 10: Write a program to convert the Fehrenheit to Rankine?

Pro tip: To make the exercise interesting you can use the ChatGPT I will remember this you in every chapter exercise and Chapter I will give you source code in the AI skill questions I will only give you the prompts. To get the answers you have to go to ChatGPT and get the answers. Remember that productivity and time is very important and saving the time is the key to get your success quicker. When you have a free time you can learn the problem solving skills or get the AI learnng skills. AI is going very fast. Save your time and enjoy your time. 20/80 rule is important you can apply this to use ChatGPT when I was learning C language so I use ChatGPT and it was become very easy to learn this C language. The course of 3 Months I covered it in 1 Month. I am telling you with my experience so please use AI. Bye Bye. 



Comments

Popular posts from this blog

Chapter 1 source code

C language chapter 1