You are on page 1of 3

Page 1 of 3

GHULAMAN-E-ABBAS SCHOOL
Class Test #1 Final Term Session 2020-21
Computer Science
Class: X

1) Last step in process of problem solving 7) A technical communication document


is: intended to give assistance to user using a
A. design a solution particular system is called
B. define a problem A. program manual
C. practicing the solution B. user manual
D. organizing the data C. detailed manual
D. hard copy of manual
2) Rectangle shaped symbol is used to show
the: 8) Any input or output operation of program
A. carried operations flowcharts are shown in symbol of
B. errors A. circle
C. decisions B. trapezoid
D. defined variables C. rhombus
D. parallelogram
3) Lines and arrows in the system flowchart
are used to represent the 9) Second step-in problem-solving process is to
A. flow of data A. practicing the solution
B. order of operations B. organizing the data
C. order of input C. design a solution
D. order of processing D. define a problem

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

6) Program documentation is used by the


A. programmers 12) How many bytes are set aside by the
B. system analyst compiler for a variable of type double
C. modifying the program float?
D. all of above A. 2
B. 3
C. 4
D. 5
Page 2 of 3

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

You might also like