0% found this document useful (0 votes)
40 views3 pages

10th Computer Science Pre Board

Uploaded by

sehrishtaj99
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views3 pages

10th Computer Science Pre Board

Uploaded by

sehrishtaj99
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

PUNJAB GROUP OF COLLEGES

Choa Saidan Shah Campus

Subject: computer science


Student Name: _____________ pre board Date: _____________
Class 10th Total Marks: 50

OBJECTIVE
Q1. Choose the correct answer.
1.Stdio stands for:

a. Standard input output

h. Symbolic input output

c. Simple input output

d. String input output

2.What is the name for the words that have predefined meaning and cannot be used as
variable names?

A. Auto words

b. Reserved words

c. Restricted words

d Predefined words

3.Which of the following header file contains information about common mathematical
functions?

a.Stdio.h

b. math.h

e. Runtime

d.Conio.h

4.Format specifier is started with the symbol:

a.?

b.%

c./

d.&

5.. Which of the following functions is used to display output on the screen?

a. Scanf()

b. Printf()

c. Show()
d. Display ()

6.Which of the following format. Specifiers is used for character data. Type?

a.%d

b.%i

c.%f

d. %c

7.How many types of control statements are available in programming?

a.One

b. Two

c.Three

d. Four

8.Which control structure in C executes the statements in order?

a. Sequential

b. Repetition

c. Selection

d. Relation

9.The index of an element in array is written within:

a. Angle brackets <>

b. Square brackets []

c. Parentheses ( )

d. Curly brackets {}

10.Another name for built-in function is:

a. User-defined function

b. Library function

c. Custom-made function

d. Both a & b

.Subjective
Q2.(Attempt any six questions)

1. 1.What are syntax errors?


2. Give four examples of IDEs for C programming?
3. Define computer program and programmer.
4. . Why is it important to assign a data type to a variable?
5. What is meant by initialization of a variable?
6. Differentiate between sequential and selection statements.
7. Write a program that displays larger one out of the three given numbers.
8. How do an array store values in memory?
9. Write the structure of if-else statement.

Q.3 (Attempt any six questions)

1. Define logical operators


2. Explain two purposes of using loops.
3. What is meant by an iteration?
4. What is meant by parameters?
5. What is meant by user defined function?
6. What does the return type indicate in the function signature?
7. What is difference between arguments and parameters? Give an example.
8. Identify errors in the following coding segments.
Int=40
9. What do you know about the return keyword?

Marks: 16
Q.4 Long Questions (Attempt any two question)
1. Define variables. Write the rules for naming variables.
2. What are logical operators? Explain any three logical operators.
3. Write a program takes two Positive integers a and b as input and displays the value
of a.

You might also like