Introduction of Computer 10 Class Notes
Knowledge of Computer technology is essential for all students. These days the first thing that comes to our mind is computer knowledge. We are providing Computer 10 class notes for your convenience to prepare for your exams.
At the 10 class level, there is basic knowledge of computers and their languages. A computer is an electronic device and it is very fast and accurate in many tasks. We will do the same tasks in much more time.
Computer Notes 10th Class Urdu Medium Punjab Board
10th Class Computer Notes Chapter 1
Introduction to programming is the first chapter of Computer 10 class notes. After completing this chapter you will be able to define the concept of integrated development environments. Describe modules of the C programming environment e.g, compiler, and text editor.
You can explain the reserved words, and define the structure of a C program covering e.g, Body of main{}, main() function, and Include. Describe the purpose of comments and their syntax, and define the difference between a constant and a variable.
We are providing knowledge about the rules for specifying variable names, the following data types offered by C, and the number of bytes taken by each data type e.g, character-char, Integer-int, and floating point-float, and also describe the process of declaring and initializing variables.
Computers need to be fed a series of instructions by humans that tell them how to perform a particular task. These series of instructions are known as computer programs or software. Computer programs are written in languages called programming languages. Some common languages are Java, C, C++, and Python.
Computer 10th Class Notes Chapter 2
User Interaction is the second chapter of Computer 10 class notes. After learning this chapter, you will be able to define and use output functions like print f(), and user input functions like scan f() and get ch(). We need a way to provide input and show output while writing programs.
Each programming language has its keywords or standard built-in function for I/O operations. Printf is a built-in function in the C programming language. Its name comes from “print formatted” which is used to show the formatted output on the screen.
Format specifiers are used to specify the format of data type during input and output operations. The format specifier is always preceded by a percentage(%) sign. Scan f is a built-in function in C language that takes input from the user into the variables.
The get ch() function is used to read a character from the user. This function accepts characters only. The character entered by the user does not get displayed on the screen. A statement terminator is an identifier for the compiler which identifies the end of a statement. In C language semicolon (;) is used as a statement terminator.
Computer Class 10th Notes Chapter 3
Conditional Logic is the third chapter of Computer 10 class notes on the Punjab board. You will be able to describe a control statement. The flow of program execution is controlled through a control statement. Sequential control is the default control structure in C language.
According to the sequential control, all the statements are executed in the given sequence. The statements that assist us in determining which statements should be executed next, on the basis of conditions, are called selection statements.
In the if statement we specify a condition and associate a code to it. The code gets executed if the specified condition turns out to be true, otherwise, the code does not get executed. A condition could be any valid expression including arithmetic expressions, logical expressions, relational expressions, or a combination of these. The associated code in the if statement is any valid C language set of statements. The if-else statement executes the set of statements under the if statement if the condition is true and executes the set of statements under the else otherwise.
10 Class Computer Notes Chapter 4
Data And Repetition is the fourth chapter of Computer 10 class notes in PDF format. You will define data structure as a container to store a collection of data items in a specific layout. An Array is a data structure that can hold multiple values of the same data type.
It stores all the values at contiguous locations inside the computer’s memory. In C language, an array can be declared as follows: data_type array_name[array_size];
- Data Type is the type of data that we want to store in the array.
- Array Name is the unique identifier that we use to refer to the array.
- Array Size is the maximum number of elements that the array can hold.
Assigning values to an array for the first time is called Array Initialization. An Array can be initialized either when it is declared or later. The following method can be used to initialize an array at the time of declaration.
Data_type array_name[N] = {value1, value2, value3,…valueN}; Each element of an array has an index that can be used with the array name as array_name[index] to access the data stored at the particular index. Variables can also be array indices. The loop structure is used to repeat a set of statements. Three types of loops are for loop, while loop, and do-while loop.
Computer Notes 10th Class Chapter 5
Functions is the fifth chapter of Computer 10th class notes. You will be able to explain a function is a block of statements that performs a particular task. The functions which are available in C standard library are called built-in functions.
You can describe some benefits of using functions including code reusability, task separation, problem complexity reduction, and code readability. The function signature describes the function’s name, inputs, and output.
The return type of the function is the data type of the value returned by the function. The name of the function should be related to its task. Parameters are variables of different data types, that are used to receive the values passed to the function as input. The Body of the function is the set of statements that are executed in the function to fulfill the specified task. Calling a function means transferring the control to that particular function