10th Class Computer science Test Chapter 1
Max Marks: 25
Q No.1 Choose the best option. /5
1 A text editor is a software that Debug code Compile Write and edit Run
allows programmers to: program computer executable
programs files
2 The set of rules for writing an Logic Algorithm syntax Reserve
accurate program in a words
programming language is
known as its:
3
Which of the following is a program return create pack
reserved word in C language, as
listed in the provided text?
4 The printf() function is used User input User Declaring a Defining a
for: output variable function
5 Which of the following is NOT C++ python Java HTML
an example of a programming
language mentioned in the text?
Q No 2
Write short answers to the following questions. 2 x 5 = 10
1. What are header files and why are they included in a program?
2. What are the three main parts of a C program's structure?
3. What are reserved words (or keywords), and why must a programmer not redefine
them?
4. What is the role of a compiler, and when does a syntax error occur?
5. What tools are included in a programming environment?
Q No 3.
Answer the following question in detail. /10
1. Explain the structure of the C program in detail with examples.