Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
6 views

ComputerScience ClassX Question Set

Uploaded by

Anil Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

ComputerScience ClassX Question Set

Uploaded by

Anil Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

INTERNATIONAL INDIAN SCHOOL DAMMAM

BSS
COMPUTER SCIENCE QUESTION SET CLASS X

1. A _____________ is a graphical representation of an algorithm.


a) Flowchart b) Program
c) Pseudocode d) Compiler

2.A _____________is a stepwise presentation of a program in simple English.


a) Flowchart b) Program
c) Pseudocode d) Algorithm

3. When an algorithm is written in the form of a programming language, it becomes a ____?


a) Flowchart b) Program
c) Pseudo code d) Syntax

4. Which of the following symbol in a flowchart is used to indicate all arithmetic process of
adding, subtracting, multiplying and dividing?
a) Input/Output b) Terminal
c)Processing d) Decision

5. Which of the following is not a characteristics of good algorithm?


a) Precise b) Language independent
c)A proper syntax required d) Logical flow of control

6.What symbol is used to represent output in a flowchart?


a) b) c) d)

7. Which is the standard terminal symbol for a flowchart?


a) b) c) d)

8. A program that translates a high level language program into machine language program is
called
a) Compiler b) Interpreter
c) Both a and b d) None of these

9. A program written in mnemonics is called _____________ program.


a) High-Level Language b) Machine Language
c) Pseudocode d) Assembly Language

Page 1 of 5
10. Which of the following is not true about an interpreter?
a) Interpreter generates the object program from the source program
b) It converts each statement of the code into machine language
c) It is more memory efficient
d) the execution time of the program is slower than compiled program

11. A program written in the form of 0’s and 1’s is called _____________ program.
a) High-Level Language b) Machine Language
c) Pseudocode d) Assembly Language

12. Which of the following is true about Machine or Low-Level Language?


a) Machine Dependent b) Errorprone
c) Difficult to program or modify d) All of these

13. Which of the following is true about High-Level Languages?


a) Machine Independent b) Few Errors
c) Easy to program or modify d) All of these

14. The language understood by a computer without translation is called?


a) High-Level Language b) Machine Language
c) Command Language d) Assembly Language

15.____________ is a set of statements written in Computer Language.


a) Algorithm b) Flowchart
c) Program d) None of these

16. Which one is not a Compiled Language?


a) C b) C++ c) Python d) None of these

17. Who developed Python Programming Language?


a) Wick van Rossum b) Rasmus Lerdorf
c) Guido van Rossum d) Niene Stom

18. Which of the following character is used to give single-line comments in Python?
a) // b) # c) ! d) /*

19. Which of the following is not a core data type in Python programming?
a) Tuples b) Lists c) Class d) Dictionary

20. Which of the following is the correct extension of the Python File
a) .py b) .python c) .p d) None of these

Page 2 of 5
21. Which of these are the features of Python.
a) Python is a High-level Language
b) Python is an Interpreted Language
c)Python easy to learn, maintain and portable Language
d) All of the above

22. The Python Shell mode is also called as ______________.


a) Interactive Mode b) Script Mode c)Python Editor d) none of these.

23. The Python Script mode is also called as ______________.


a) Interactive Mode b) Shell Mode c)Python Editor d) none of these.

24.The Python command prompt >>> is displayed in________________


a) Interactive Mode b) Script Mode c)Python Editor d) none of these.

25. IDLE stands for


a) Integrated Development Environment
b) Integrated Development Learning Environment
c) Indigenous Development Environment
d) Indigenous Development Learning Environment

26. ___________ mode allows you to type multiple lines of code and save it for future
reference.
a) Interactive Mode b) Script Mode c) Shell Mode d) none of these.

27._______________ are reserved words that have a special function or task in a program.
a) Datatype b) Variables c) Keywords d) Operators

28. An _______________ is unique name given to identify something like name of a variable,
functions, classes etc.
a) Datatype b) Variables c) Keywords d) Identifiers

29. ____________ can be defined as data stored in a variable.


a) Literals b) Identifiers c) Keywords d) Datatype

30. Which of the following is a valid variable identifier?


a) number 1 b) First number c) Num_1 d) number#1

31. The kind of data stored in a variable in a programming language is called the _________.
a) Datatype b) Variables c) Keywords d) Identifier

32. Which of the following is not a numerical datatype?


a) int b) string c) float d) complex

Page 3 of 5
33. _________ datatype are identified as continuous set of characters enclosed between
quotations.
a) int b) string c) float d) complex

34. >>>a= “HELLO”


>>> print ( a[1])
will give the output as
a) H b) E c) L d) HELLO

35. li=[ “abc”, 15, “xyz”, 18]


Identity the datatype of variable li .
a)tuple b) list c) set d) dictionary

36.____________ datatypes stores values in terms of key and value.


a)dictionary b) list c) set d) tuple

37.Which of the below declarations is incorrect?


a) x_num=2 b) x=3 c) x=’’5” d) None of these

38. The answer to this expression , 22%3 is?


a) 7 b) 1 c) 0 d) 5

39.What will be the output of the following Python code snippet if


>>>x=1
>> >x+=1
a) 3 b) 2 c) 1 d) 0

40.Which of the following operators is the correct option for power (a raised to b)?
a) a^b b) a^^b c) a*b d) a**b

41. ____________ function is used to display output in Python.


a)print() b) int() c) type() d) input()

43 . ____________ function is used to accept data from user in Python.


a)print() b) int() c) type() d) input()

44. ____________ function is used to know the datatype of a variable in Python.


a)print() b) int() c) type() d) input()

45. Inputs entered through an input function is by default in _______ datatype.


a) int b) string c) list d) complex

Page 4 of 5
46. Which of the following is not a keyword in Python?
a) for b) if c) print d) All are keywords

47. Strings are defined using:


a) Single quote(‘) b) Double quote(“) c) both a & b d) None of these.

48. Which of the following is not an arithmetic operator?


a) % b) // c) ++ d) *

49. Which of the following is not an assignment operator?


a) = b) == c) %= d) +=

50.Which of the following is not a relational operator?


a) > b) >= c) != d) **

Page 5 of 5

You might also like