10th class past paper | 10th class past computer paper | 10th class 2024 past paper |

 

10th class past paper computer

10th class past computer paper with solution,past paper 10th class,10th class 2024 past paper key.it is fully free for students.

10th class 2024 past paper

For final exam preparation past papers are very important so we are giving you our golden time and energy.there are all past papers available with solution.Today we are solving 10th class 2024 computer paper.

First part (Short questions)

Question : What is meant by computer programming?

Computer programming is the process of designing and writing instructions  that a computer can execute to perform a specific task.

Question : Define syntax ?

Syntax refers to the set of rules that defines the structure of a programming language, including correct keywords, symbols, and punctuation.

Question : Why do we use comments in programmings ?

Answer : improving code readability and for explaining the purpose of code,debugging and documentations.

Question : write the output

 int x = 34 - 9 * 2 / (3 * 3);
printf(“x = %d”, x);

Answer : X=32

Question : What is the purpose of escape sequence ?

The escape sequences are special character combination and it is start with forward slash \ and it is use for format output for example \n for new line, \t for space,\" for double quotes.

Question : What is difference between == and = operator ?

= It is assignment operator and it use for assign the values for example, A=5.
== It is symbol of equal operator and it use for compare the values for example X ==5 it means X has 5 numbers.

Question : Define control statements and its types ?

In order to solve a problem,there is need to control the flow of execution of a programe sometime we need to execute one set of instruction if particular condition is true and other set of instruction if the condition is false.there are three types control statements.

Sequential control statement.
Selection control statement.
Repetition control statement.


Question : Define selection statement ?

The statement which help us to decide which statement should be executed next on the basis of condition is called selection statement.

Question : Define data structure ?

 Date structure is a container to store collection of data in a specific layout.

Question : What is an Array ?

An array is a data structure that can hold multiple values of same data type for example int array can hold multiple integer values and float can hold multiple real values.

Question : Find the error given code.if (X 100) printf ( " I am boy ");
Answer : In this code there is no equal operator and assignment  operator.

Question : What is user defined functions?

The function which are defined by a programmer are called user defined function.

Question : Define parameters?

A function is a block of statements that get some inputs and provide some output.Input of function are called parameters of functions.

Question : What is meant by readability in advantages of function?

Dividing the program into multiple functions,improve the readability of functions.

Part 2 (Long question)

Question : Define variable and define any three rules for naming a variable ?

 A variable is actually given to memory location as the data physically stored inside the computer memory and the value of  variable can be changed in program.each variable has unique name called identifier and has data type.
Rules of Naming the variable
A variable can only contain alphabets digits and underscore sign.
A variable name must begin with a letter.
A reserve words can not be usee as variable name.

Question : Write a program using for loop in c language that print even numbers from 25 to 35.

#include <stdio.h>
int main() {
    for (int i = 25; i <= 35; i++) {
        if (i % 2 == 0) {
            printf("%d\n", i);
        }
    }
    return 0;
}

Output : 26 28 30 32 34


Comments

Popular posts from this blog

10th class past paper computer 2024 | 10th class papers | 10th class old paper |