Professional Documents
Culture Documents
GHULAMAN-E-ABBAS SCHOOL
Class Test #1 Final Term Session 2020-21
Computer Science
Class: X
4) Knitting pattern and cook book recipes are 10) A way to repeat one or more operations as
examples of many times as required, is called:
A. algorithm A. structure
B. solving method B. irritation
C. flowchart C. algorithm
D. structure diagram D. flowchart
5) Set of diagrams and notes that accompany 11) All possible solutions of a problem that
program implementation are known as produce correct result are known as:
A. program execution A. accurate solutions.
B. program planning B. Program solutions.
C. program documentation C. Problem solutions.
D. program existence D. Candid solutions
13) What will be the output of following C++ 19) Which software helps in finding and
program codes: removing errors in programs?
A. Linker
int main() B. Text Editor
{ C. Leader
int a = 5; D. Debugger
int b = 10;
int c = a+b; 20) What should be the output:
printf("%i",c);
} int main()
{
A. 0 int x;
B. 15 x=10,20,30;
C. Undefined i printf("%d",x);
D. Compiler Error return 0;
}
14) How fast a problem can be solved, it
depends on efficient: A. 10
A. solutions. B. 20
B. flowchart. C. 30
C. algorithm. D. Compilation Error
D. Program.
21) Which of the following ways are correct to
15) What defines the rules of valid statements comment out preprocessing of any line?
in programming? A. #include<stdio.h>
A. Compiler B. // #include<stdio.h>
B. Interpreter C. ''#include<stdio.h>
C. Syntax D. ##include<stdio.h>
D. Semantic
22) How many main() function we can have in
16) Analyzing the efficiency of algorithms our project?
means comparing efficiency of different A. 1
methods of solutions of a: B. 2
A. Problem. C. No limit
B. design. D. Depend on the compiler
C. Program. 23) Which of the following ways are correct to
D. Algorithm. include header file in C program?
A. #include <stdio.h>
17) What is the other word for Reserved Words?
B. #include "stdio.h"
A. Compiler word
C. Both A & B
B. Keyword
C. Special word D. None of above
D. Mnemonics
18) Program statement in programming 24) Numbers are stored and transmitted inside
language 'C++' usually ends with a a computer in which format?
A. colon A. binary form
B. semicolon B. ASCII code form
C. comma C. decimal form
D. apostrophe D. alphanumeric form
Page 3 of 3
25) Is there any limit in adding number of 30) Which program translate high level
header files in a C++ program? language into machine language?
A. 1-3 A. Compiler
B. 1-10 B. Linker
C. Yes C. Loader
D. No D. Debugger
26) What should be the output: 31) The special characters used in C language to
control printing on the output device are
called:
int main()
A. ASCII code.
{ B. format specifier
int a = 10/3; C. escape sequence.
printf("%d",a); D. #include.
return 0;
} 32) When a program file named as MyProg
is compiled then it has different
A. 3.33 extensions at different stages of the
B. 3.0 compilation process.
C. 3
D. 0 The correct sequence of processing of this
file on the basis of extension at different
27) A file that contains predefined functions of stages is:
C language is called:
A. Linker file A. MyProg.c → MyProg.obj → MyProg.exe
B. Loader file B. MyProg.exe → MyProg.obj → MyProg.c
C. Header file C. MyProg. obj → MyProg.c → MyProg.exe
D. Source file D. MyProg.exe → MyProg.c → MyProg. Obj
28) In which problem-solving stage, the 33) The data type that should be used to
programmer investigates the problem and store the home address of a person is:
gather information to find the solution? A. CHAR..
A. Planning stage B. LONG.
B. Defining stage C. FLOAT.
C. Analyzing stage D. DOUBLE.
D. Candid solutions stage
29) What should be the output: 34) Choose a valid C statement to print a
string constant x?
int main() A. printf(“ %s”, x[]);
B. printf(“ %s , x[]”);
{
C. printf(“ %s”, x);
int a = 10.5;
D. printf(“ %s, x”);
printf("%d",a);
return 0; 35) Which statement is used to exit from
} the body of switch statement?
A. default
A. 10.5 B. continue
B. 10 C. exit
C. 0 D. break
D. Compilation Error