Class 10 Computer Chapter 1 Notes
Complete Class 10 Computer Chapter 1 Notes Introduction to Programming in 10th Class Computer Science English and Urdu Medium. These computerized notes are very helpful in the preparation of Introduction from Class 10 Computer Chapter 1 Notes to Programming for students of the 10th class Computer Science and these are according to the paper patterns of all Punjab boards.
Summary and Contents:
- Important 10 class computer chapter 1 mcqs for all students of Punjab Textbook Board.
- Topics which are discussed in the notes are given below:Important Multiple Choice Questions ( MCQs ) with correct Answers of Chapter No. 1: Introduction to Programming in Computer Science class 10th Urdu Medium.
- Important class 10 computer notes chapter 1 for all students of Punjab Textbook Board.
- Important Short Questions with Correct Answers of Chapter No. 1: Introduction to Programming in Computer Science class 10th Urdu Medium.
- Important class 10 computer chapter 1 notes pdf for all students of Punjab Textbook Board.
- Programming Basics: Each programming language has some primitive building blocks and provides some rules in order to write an accurate program. This set of rules is known as syntax of the language.
- Important class 10 computer chapter 1 important questions for all students of Punjab Textbook Board.
- Syntax can be thought of as grammar of a programming language. While programming, if proper syntax or rules of the programming language are not followed, the program does not get compiled. In this case, the compiler generates an error. This kind of errors are called syntax errors.
- Important class 10 computer chapter 1 short question answer for all students of Punjab Textbook Board.
- Reserved Words: Every programming language has a list of words that are predefined. Each word has its specific meaning already known to the compiler.
- Important class 10 computer chapter 1 exercise solutions for all students of Punjab Textbook Board.
- These words are known as reserved words or keywords. If a programmer gives them a definition of his own, it causes a syntax error. The list of reserved words in C programming language.
- Important class 10 computer chapter 1 question answer for all students of Punjab Textbook Board.
- Structure of a C Program: We can understand the structure of a C language program, by observing the program written. We can see that a program can be divided into three main parts:
- Important class 10 computer chapter 1 programming exercise for all students of Punjab Textbook Board.
- 1. Link section or header section: While writing programs in C language, we make extensive use of functions that are already defined in the language. But before using the existing functions, we need to include the files where these functions have been defined.
- Important computer chapter 1 class 10 notes for all students of Punjab Textbook Board.
- These files are called header files. We include these header files in our program by writing the include statements at the top of program. General structure of an include statement is as follows: #include
- Important class 10 computer application chapter 1 notes for all students of Punjab Textbook Board.
- Here header_file_name can be the name of any header file. In the above example, we have included file stdio.h that contains information related to input and output functions.
- Important class 10 computer chapter 1 exercise for all students of Punjab Textbook Board.
- Many other header files are also available, for example file math.h contains all predefined mathematics functions.
- Important class 10 computer chapter 1 extra questions for all students of Punjab Textbook Board.
- 2. Main section: It consists of a main() function. Every C program must contain a main() function and it is the starting point of execution.
- Important class 10 computer chapter 1 internet basics notes for all students of Punjab Textbook Board.
- 3. Body of main() function: The body of main() is enclosed in the curly braces {}. All the statements inside these curly braces make the body of main function. In the above program, the statement printf("Hello world!"); uses a predefined function printf to display the statement Hello World! on computer screen.
- Important class 10 computer chapter 1 long question answer for all students of Punjab Textbook Board.
- We can also create other functions in our program and use them inside the body of main() function.
- Important Note: Following points must be kept in mind in order to write syntactically correct C language programs.
- Important class 10 computer chapter 1 long question answer for all students of Punjab Textbook Board.
- The sequence of statements in a C language program should be according to the sequence in which we want our program to be executed.
- Important class 10 computer chapter 1 important long questions for all students of Punjab Textbook Board.
- C language is case sensitive. It means that if a keyword is defined with all small case letters, we cannot capitalize any letter i.e. int is different from Int. Former is a keyword, whereas latter is not.
- Important class 10 computer chapter 1 notes pdf communication skills for all students of Punjab Textbook Board.
- Each statement ends with a semi-colon; symbol.
- Purpose and Syntax of Comments in C Programs: Comments are the statements in a program that are ignored by the compiler and do not get executed.
- Important class 10 computer applications ch 1 notes for all students of Punjab Textbook Board.
- Usually comments are written in natural language e.g. in English language, in order to provide description of our code.
- Important class 10 computer chapter 1 exercise solutions pdf download for all students of Punjab Textbook Board.
- Purpose of writing comments: Comments can be thought of as documentation of the program. Their purpose is twofold. 1) They facilitate other programmers to understand our code. 2) They help us to understand our own code even after years of writing it. We do not want these statements to be executed, because it may cause syntax error as the statements are written in natural language.
- Important class 10 computer chapter 1 exercise solutions pdf for all students of Punjab Textbook Board.