English

CBSE solutions for Computer Science with Python [English] Class 12 chapter 1 - Review of Phython [Latest edition]

Advertisements

Chapters

Unit -1 : Review of Phython & Concept of Oops

▶ 1: Review of Phython

    2: Concept of Object Oriented Programming

    3: Classes in Python

    4: Inheritance

Unit -2 : Advanced Programming with Python

    1: Liner List Manipulation

    2: Stacks & Queues in list

    3: Data File Handling

    4: Exception Handling & Generate Functions

Unit -3 : Databases Management Systems and SQL

    1: Databases Concepts and SQL

    2: Structure Query Language

Unit -4 : Introduction to Boolean Algebra

    1: Boolean Algebra

    2: Boolean Functions and Reduce Forms

   Chapter 3: Application of Boolean Logic

Unit -5 : Communication Technologies

   Chapter 1: Networking Concepts Part I

   Chapter 2: Networking Concepts Part II

   Chapter 3: Networking Protocols

   Chapter 4: Mobile Telecommunication Technologies, Network Security and Internet Services

CBSE solutions for Computer Science with Python [English] Class 12 chapter 1 - Review of Phython - Shaalaa.com
Advertisements

Solutions for Chapter 1: Review of Phython

Below listed, you can find solutions for Chapter 1 of CBSE CBSE for Computer Science with Python [English] Class 12.


EXERCISE
EXERCISE [Pages 24 - 27]

CBSE solutions for Computer Science with Python [English] Class 12 1 Review of Phython EXERCISE [Pages 24 - 27]

1. a.Page 24

Write the output from the following code:

x = 10
y = 20
if (x>y):
     print x+y
else:
     print x-y
1. b.Page 24

Write the output from the following code:

 print "Inspirational stories \n for \t Children"
1. c.Page 24

Write the output from the following code:

s = 0
for I in range(10,2,-2):
    s+=I
print "sum= ",s
1. d.Page 24

Write the output from the following code:

n = 50
i = 5
s = 0
while i<n:
      s+ = i
      i+ = 10
print "i=",i
print "sum=",s
1. e.Page 24

Write the output from the following code:

 y = 2000
if (i%4==0):
     print "Leep Year"
else:
     print "Not leep year"
2. a)Page 24

Write for statement to print the following series:

10, 20, 30, ..., 300

2. b)Page 24

Write for statement to print the following series:

105, 98, 91, ..., 7

3. a)Page 24

Write the while loop to print the following series:

5, 10, 15, ...100

3. b)Page 24

Write the while loop to print the following series:

100, 98, 96, ...2

4. a)Page 25

How many times are the following loop executed?

for a in range(100,10,-10):
     print a
4. b)Page 25

How many times are the following loop executed?

i = 100
while(i<=200):
     print i
     i + =20
4. c)Page 25

How many times are the following loop executed?

for b in (1,10):
     print b
4. d)Page 25

How many times are the following loop executed?

 i = 4
while (i>=4):
     print i
     i+ = 10
4. e)Page 25

How many times are the following loop executed?

i=2
while (i<=25)
       print i
5. a)Page 25

Rewrite the following for loop into while loop.

for a in range(25,500,25):
    print a
5. b)Page 25

Rewrite the following for loop into while loop.

for a in range(90,9,-9):
    print a
6. a)Page 25

Rewrite the following while loop into for loop.

 i = 10
while i<250:
     print i
     i = i+50
6. b)Page 25

Rewrite the following while loop into for loop.

i=88
while(i>=8):
     print i
     i- = 8
7.Page 25

Which command is used to convert text into integer value?

8. a.Page 26

Find the errors from the given code.

T=[a,b,c]
PrinT
8. b.Page 26

Find the errors from the given code.

for i in 1 to 100 :
     printI
8. c.Page 26

Find the errors from the given code.

i=10 ;
while [i<=n] :
    print i
   i+=1
8. d.Page 26

Find the errors from the given code.

if (a>b)
    print a:
 else if (a<b)
  print b:
 else
  print "both are equal"
9.Page 26

Find the output from the following code:

L=[100,200,300,400,500]
L1=L[2:4]
print L1
L2=L[1:5]
print L2
L2. .extend(L1)
print L2
10.Page 26

Write program to input any number and print all factors of that number.

11.Page 26

Write a program to input any number and check whether given number is Armstrong or not.

12.Page 26

Write a program to input employee no, name, basic pay and find HRA, DA and netpay.

Basic pay Hra Da
>100000 15% 8%
<=100000&>50000 10% 5%
<=50000 5% 3%
13.Page 27

Write a program to find all prime numbers up to given number.

14.Page 27

Write a program to convert decimal number to binary.

15.Page 27

Write a program to convert binary to decimal.

16.Page 27

Write a program to input two complex numbers and to find sum of the given complex numbers.

17.Page 27

Write a program to input two complex numbers and implement multiplication of the given complex numbers.

18.Page 27

Write a program to find sum of two distances with feet and inches.

19.Page 27

Write a program to find difference between two times with hours, minutes and seconds.

20.Page 27

Write a program to find the sum of all digits of the given number.

21.Page 27

Write a program to find the reverse of that number.

22.Page 27

Write a program to input username and password and to check whether the given username and password are correct or not.

23. a)Page 27

Which string method is used to implement the following?

To count the number of characters in the string.

23. b)Page 27

Which string method is used to implement the following?

To change the first character of the string in capital letter.

23. c)Page 27

Which string method is used to implement the following?

To check whether given character is letter or a number.

23. d)Page 27

Which string method is used to implement the following?

To change lower case to upper case letter.

23. e)Page 27

Which string method is used to implement the following?

Change one character into another character.

24.Page 27

Write a program to input any string and find number of words in the string.

25.Page 27

Write a program to input any two strings and to check whether given strings are equal are not.

26.Page 27

Differentiate between tuple and list.

27.Page 27

Write a program to input n numbers and to insert any number in a particular position.

28.Page 27

Write a program to input n numbers and to search any number from the list.

29.Page 27

Write a program to input n customer name and phone numbers.

30.Page 27

Write a program to search input any customer name and display customer phone number if the customer name is exist in the list.

31.Page 27

Explain in detail about cmp() function.

32.Page 27

Write a program to input n numbers and reverse the set of numbers without using functions.

Solutions for 1: Review of Phython

EXERCISE
CBSE solutions for Computer Science with Python [English] Class 12 chapter 1 - Review of Phython - Shaalaa.com

CBSE solutions for Computer Science with Python [English] Class 12 chapter 1 - Review of Phython

Shaalaa.com has the CBSE Mathematics Computer Science with Python [English] Class 12 CBSE solutions in a manner that help students grasp basic concepts better and faster. The detailed, step-by-step solutions will help you understand the concepts better and clarify any confusion. CBSE solutions for Mathematics Computer Science with Python [English] Class 12 CBSE 1 (Review of Phython) include all questions with answers and detailed explanations. This will clear students' doubts about questions and improve their application skills while preparing for board exams.

Further, we at Shaalaa.com provide such solutions so students can prepare for written exams. CBSE textbook solutions can be a core help for self-study and provide excellent self-help guidance for students.

Concepts covered in Computer Science with Python [English] Class 12 chapter 1 Review of Phython are .

Using CBSE Computer Science with Python [English] Class 12 solutions Review of Phython exercise by students is an easy way to prepare for the exams, as they involve solutions arranged chapter-wise and also page-wise. The questions involved in CBSE Solutions are essential questions that can be asked in the final exam. Maximum CBSE Computer Science with Python [English] Class 12 students prefer CBSE Textbook Solutions to score more in exams.

Get the free view of Chapter 1, Review of Phython Computer Science with Python [English] Class 12 additional questions for Mathematics Computer Science with Python [English] Class 12 CBSE, and you can use Shaalaa.com to keep it handy for your exam preparation.

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×