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

10th class past paper computer


10th class past paper computer with solution.Past paper with solution is fully free all past papers available.

10th class computer past paper 2024 with solution

For final exams and for getting good position past papers are very important so we are giving you free past papers with solution.

First part (short questions)


Question : Define compiler ?
computer can understand and work in only machine language which is consist on 1 to 2 binary form and compiler is a software that convert high level language into low level language.

Question : Write down five reserved words in c ? 
Int,char,if,else

Question : What do you know about main section of a program?
Each program has a main function which performs the tasks programmed by the user.

Question : Define the format specifier?
In C programming, a format specifier acts as a placeholder in functions like `scanf()` and `printf()` to indicate the type of data being read or displayed. It begins with a `%` symbol, followed by a character that represents the data type. For example, `%d` is used for integers, and `%f` is used for floating-point numbers. These specifiers ensure that the data is correctly interpreted and formatted. Additionally, format specifiers can include modifiers to control aspects like width, precision, and length, allowing for more precise formatting of the output or input.

Question : What is getch ( ) function?
getch ( ) function is used to read character from a user.This function accepts characters only.The character entered by user does not get display on screen.

Question : What is sequential control?
Sequential control is the default control structure in c language.According the sequential control all the statements are executed into the given sequence.

Question : Write the structure of if-else statement?
if(condition)
Associated code
else
Associated code.

Question : What is meant by data structure?
The meaning of data structure is that how organize.managing and storing efficiently.it tells that how data storing in memory and operations like insertion deletion searching and storing can be performed effectively.

Question : How does to access an element of an array?
Each element of an array has index that can be used with the array name to access the data stored at the particular index.First element has 0 index second has 1 index and so on.

Question : What do you mean by reusability of code?
It means that whenever we need to use functionality provided by the function,we just call the function,we do not need write the same set of statements again and again.

Question : What is calling a function?
Calling function means transfer the control to the particular function.

Question : Write the name of parts of function definition?
Return type,Function name,parameter body, Function body.

Question : What is role of main function ( ) in c program?
Each program has a main function which performs the tasks programmed by user,similarly we can write other functions and use them multiple times.

Part two (Long question)


Question : What is meant by constants,moreover describe the types of constants in detail?
A constant is a quantity that can not be changed during program execution.The constants are used in the programs to specify the values that remain in the same throughout the program execution.

Types of Constants

integer constant.
integer constants are numeric values without a fraction or decimal point.Both positive and negative integer constants are used in c programs.For example 50 , 67, 10.

Real constants.
Real constants are numeric values with a fraction and decimal point.Both positive and negative real constants are used in programs.Minus sign is used for negative real constants,if no sign used the the value by default positive and real constants are also called floating point constants.For example,30.6 ,5.22 , -50 etc.

Character constants.
Any character written within single quotes is known as character constants.A character can be alphabetic,a digit or a special symbol.For example. 'A' , '6' , '*' etc.

Question : Write the program in c language that print even numbers from 2 to 20 on the screen using "for loop" ?

#include <stdio.h>
int main() {
     for (int i = 2; i <= 20; i += 2) {
        printf("%d\n", i);
    }
    return 0;
}
Output is,
2
4
6
8
10
12
14
16
18
20.












Comments

Popular posts from this blog

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