0% found this document useful (0 votes)
2 views

PEPS QB_Problem Solving Techniques & Python Fundamentals

The document is a question bank for Computer Science Standard XI at Pearls Public School, focusing on problem-solving techniques and Python fundamentals. It includes questions on algorithms, flowcharts, pseudocode, and various Python concepts such as identifiers, literals, and data types. The questions aim to assess students' understanding of programming and algorithmic thinking.

Uploaded by

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

PEPS QB_Problem Solving Techniques & Python Fundamentals

The document is a question bank for Computer Science Standard XI at Pearls Public School, focusing on problem-solving techniques and Python fundamentals. It includes questions on algorithms, flowcharts, pseudocode, and various Python concepts such as identifiers, literals, and data types. The questions aim to assess students' understanding of programming and algorithmic thinking.

Uploaded by

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

PEARLS PUBLIC SCHOOL (CBSE)

ARUMUGANERI
COMPUTER SCIENCE
STANDARD – XI
QUESTION BANK
PROBLEM SOLVING TECHNIQUES
1 Pictorial representation of an algorithm is called as________.
When an algorithm is written in the form of programming language, it becomes
2
________.
Write an algorithm, flowchart and pseudocode to enter the side of a square and
3
print its area and perimeter
4 Write an algorithm, flowchart and pseudocode to find factorial of a number
Write an algorithm, flowchart and pseudo code that will take a number from the
5
user and print if it is positive, negative or zero.
6 Draw a flowchart to calculate greatest of three entered numbers?
Write an algorithm, flowchart and pseudo code to find numbers between 100 and
7
400 (both included) where each digit of a number is an even number
Write a name of flowchart symbols:
8

9 Define: Algorithm & Flowchart?


10 What shape represents a decision in a flow chart?
11 What shape represents a start or stop in a flow chart?
12 What shape represents a process in a flow chart?
Write an algorithm, flowchart and pseudo code to check whether the given number
13
is odd or even.
14 Write an algorithm, flowchart and pseudo code to find average of three number.
15 Write an algorithm, flowchart and pseudo code to calculate the area of rectangle.
16 Write an algorithm, flowchart and pseudo code to find the sum of digits.
17 Write an algorithm, flowchart and pseudo code to reverse the number
Write an algorithm, flowchart and pseudo code to find the sum of first n natural
18
numbers?
PYTHON FUNDAMENTALS
1 Who developed the Python language?
2 In which year was the Python language developed?
3 What is the maximum possible length of an identifier?
4 What is the extension of the Python file?
5 Which character is used in Python to make a single line comment?
6 "Python is an interpreted language‟. What does it mean?
7 What does a cross platform language mean?
Python is a Free and Open Source language. What do you understand by this
8
feature?
9 In how many ways, can you work in Python?
10 What is the difference between Interactive mode and Script Mode in Python?
11 What are the advantages of Python?
Which of the following are not valid strings in Python?
12
(a)‖Hello‖ (b) ‗Hello„ (c)‖Hello„ (d) ‗Hello‖ (e) {Hello}
13 What is None literal in Python?
14 What is the difference between a keyword and an identifier?
15 What are literals in Python? How many types of Literals allowed in Python?
16 What are tokens in Python? How many types of tokens allowed in Python?
17 How can you create multi-line strings in Python?
Which of the following are syntactically correct strings? State reason.
(a) ”Python is nice Language” (b) „He called me “Friend!” when he came‟
18
(c) “Very Good‟ (d) „This is a good book‟
(e) “Namaste (f) “I liked „Harry Potter‟ very much”
Identify the data types of the following values given bellow –
19
3, 3j, 13.0, '12',”14”, 2+0j,19
Find the invalid identifier from the following
20
a) Name b)true c) 2ndName d) My_Name
Identify the types of following literals?
21 i) 23.789 ii) 23789 iii) 2.3789E-3 iv) „True‟
v) True v) 0xFACE vi) 0o213
Which of the following identifier names are invalid and why?
22 i) Serial_no. ii) 1st_room iii) Hundred$
iv) Total marks v) total-marks vi) True
23 How many types of strings are supported by python?
24 Write the following real constants in exponent form: a) 172.51 b) 0.000031
25 The shortcut key to run a python program from script mode is ____________.
Identify the types of following literals?
26 i) 23.789+2.5j ii) 2.75e-2 iii) 275 iv) „False‟
v) False v) 0b1011 vi) 0x1Ap
Which of the following identifier names are invalid and why?
27
i) False ii) 2ndnumber iii) reg-no iv) CS marks v) break vi) name#
Identify the type of Token:
28
i) D_o_b ii) True iii) * iv) %
Classify each of the following as a valid or invalid variable:
29
i)Length ii)%age iii)2nd innings iv)Half_Yearly
30 What are variables? Give example?
Identify the types of data from the following definition statements:
31
(i) Answer=True (ii) Answer=”TRUE”
Identify valid and invalid variable names from the following:-
32 (i) 12class (ii) final-exam (iii) Class (iv) For
(v) subjects (vi) percentage%
Give the data type of the following variables:
33 a) x= 'Raghav' b) y= 100.56 c) z=10 d) t=15 +6j
e) var1=[120, 130, 140, 'Ajit'] f) var2=(„May‟, „June‟, 5, 6)
Identify which of the following expressions are correct:
34 a) x,y,z=12.5, 170, 'Samarth' b) x,y,z=12.5, 170, 'Samarth', k
c) x=y=z=100 d) x,y = 10,10, z = 10 e) x,y = 10
35 What are identifiers?
Which one is a character set?
36
a) Letters (A –Z) b) Symbols (+ _ # & …) c) Digits (0 – 9) d) All the above
Identity the following strings which one not a correct one?
37
a) “srgs” b) „SRGS7‟ c) „„„Srgs‟‟‟ d) “SRGS‟
Which of the following are not valid identifier names?
38
i) pass ii) if iii) break iv) none
Which of the following are valid identifiers and why/ why not:
39
a) Data_rec b) _data c) 1 data d) data1 e) my.file f) elif
Identify the data types of the values given below:
40
3 , 3j , 13.0 , '13' , "13" , 2+0j
Which of the following can be used as valid variable identifiers in Python?
41
i) 4th Sum ii) Total iii) Number# iv) 5Data
Special meaning words of Pythons, fixed for specific functionality are called
42 ____________.
i) Identifiers ii) functions iii) keywords iv) literals
43 What is the difference between an Expression and a Statement in Python
Statements beginning with a hash, and which are ignored by a compiler and not executed are
44
called ___________.
Which of the following is not a keyword?
45
a) eval b) assert c) nonlocal d) pass

You might also like