English

Science (English Medium) Class 11 - CBSE Question Bank Solutions for Computer Science (Python)

Advertisements
[object Object]
[object Object]
Subjects
Popular subjects
Topics
Advertisements
Advertisements
Computer Science (Python)
< prev  101 to 120 of 234  next > 

Following is an algorithm to classify numbers as “Single Digit”, “Double Digit” or “Big”.

Classify_Numbers_Algo
INPUT Number
IF Number < 9
             "Single Digit"
Else If Number < 99
             "Double Digit"
Else
             "Big"

Verify for (5, 9, 47, 99, 100, 200) and correct the algorithm if required.

[4] Introduction to Problem Solving
Chapter: [4] Introduction to Problem Solving
Concept: undefined >> undefined

For some calculations, we want an algorithm that accepts only positive integers up to 100.

Accept_1 to 100_Algo
INPUT Number
IF (0 <= Number) AND (Number <= 100)
       ACCEPT
Else
       REJECT
  1. On what values will this algorithm fail?
  2. Can you improve the algorithm?
[4] Introduction to Problem Solving
Chapter: [4] Introduction to Problem Solving
Concept: undefined >> undefined

Advertisements

Write the corresponding Python assignment statement:

Assign 10 to variable length and 20 to variable breadth.

[5] Getting Started with Python
Chapter: [5] Getting Started with Python
Concept: undefined >> undefined

Write the corresponding Python assignment statement:

Assign the average of values of the variable's length and breadth to a variable sum.

[5] Getting Started with Python
Chapter: [5] Getting Started with Python
Concept: undefined >> undefined

Write the corresponding Python assignment statement:

Assign a list containing strings ‘Paper’, ‘Gel Pen’, and ‘Eraser’ to variable stationery.

[5] Getting Started with Python
Chapter: [5] Getting Started with Python
Concept: undefined >> undefined

Write a program to swap two numbers using a third variable.

[5] Getting Started with Python
Chapter: [5] Getting Started with Python
Concept: undefined >> undefined

Write a program to swap two numbers without using a third variable.

[5] Getting Started with Python
Chapter: [5] Getting Started with Python
Concept: undefined >> undefined

Give the output of the following when num1 = 4, num2 = 3, num3 = 2.

num1 = float(10)
print (num1)

[5] Getting Started with Python
Chapter: [5] Getting Started with Python
Concept: undefined >> undefined

Observe the following program carefully, and identify the error:

mynum = 9
def add9():
       mynum = mynum + 9
       print mynum
add9()                          #function call
[7] Functions
Chapter: [7] Functions
Concept: undefined >> undefined

Using an example showing how a function in Python can return multiple values.

[7] Functions
Chapter: [7] Functions
Concept: undefined >> undefined

Differentiate between the following with the help of an example:

Global and Local variable

[7] Functions
Chapter: [7] Functions
Concept: undefined >> undefined

Consider the following string mySubject:

mySubject = "Computer Science"

What will be the output of the following string operation:

print(mySubject.isalpha())

[8] Strings
Chapter: [8] Strings
Concept: undefined >> undefined

Consider the following string myAddress:

myAddress = "WZ-1, New Ganga Nagar, New Delhi"

What will be the output of the following string operation:

print(myAddress.count('New'))

[8] Strings
Chapter: [8] Strings
Concept: undefined >> undefined

Consider the following string myAddress:

myAddress = "WZ-1, New Ganga Nagar, New Delhi"

What will be the output of the following string operation:

print(myAddress.find('New'))

[8] Strings
Chapter: [8] Strings
Concept: undefined >> undefined

Consider the following string myAddress:

myAddress = "WZ-1, New Ganga Nagar, New Delhi"

What will be the output of the following string operation:

print(myAddress.rfind('New'))

[8] Strings
Chapter: [8] Strings
Concept: undefined >> undefined

Consider the following string myAddress:

myAddress = "WZ-1, New Ganga Nagar, New Delhi"

What will be the output of the following string operation:

print(myAddress.split(','))

[8] Strings
Chapter: [8] Strings
Concept: undefined >> undefined

Consider the following string myAddress:

myAddress = "WZ-1, New Ganga Nagar, New Delhi"

What will be the output of the following string operation:

print(myAddress.split(' '))

[8] Strings
Chapter: [8] Strings
Concept: undefined >> undefined

Consider the following string myAddress:

myAddress = "WZ-1, New Ganga Nagar, New Delhi"

What will be the output of the following string operation:

print(myAddress.partition(','))

[8] Strings
Chapter: [8] Strings
Concept: undefined >> undefined

Write a user-defined function to convert a string with more than one word into a title case string where the string is passed as a parameter. (Title case means that the first letter of each word is capitalized).

[8] Strings
Chapter: [8] Strings
Concept: undefined >> undefined

After a fight with your friend, you did the following activities. Which of these activities is not an example of cyber bullying?

[11] Societal Impact
Chapter: [11] Societal Impact
Concept: undefined >> undefined
< prev  101 to 120 of 234  next > 
Advertisements
Advertisements
CBSE Science (English Medium) Class 11 Question Bank Solutions
Question Bank Solutions for CBSE Science (English Medium) Class 11 Biology
Question Bank Solutions for CBSE Science (English Medium) Class 11 Chemistry
Question Bank Solutions for CBSE Science (English Medium) Class 11 Computer Science (C++)
Question Bank Solutions for CBSE Science (English Medium) Class 11 Computer Science (Python)
Question Bank Solutions for CBSE Science (English Medium) Class 11 English Core
Question Bank Solutions for CBSE Science (English Medium) Class 11 English Elective - NCERT
Question Bank Solutions for CBSE Science (English Medium) Class 11 Entrepreneurship
Question Bank Solutions for CBSE Science (English Medium) Class 11 Geography
Question Bank Solutions for CBSE Science (English Medium) Class 11 Hindi (Core)
Question Bank Solutions for CBSE Science (English Medium) Class 11 Hindi (Elective)
Question Bank Solutions for CBSE Science (English Medium) Class 11 History
Question Bank Solutions for CBSE Science (English Medium) Class 11 Mathematics
Question Bank Solutions for CBSE Science (English Medium) Class 11 Physics
Question Bank Solutions for CBSE Science (English Medium) Class 11 Political Science
Question Bank Solutions for CBSE Science (English Medium) Class 11 Psychology
Question Bank Solutions for CBSE Science (English Medium) Class 11 Sanskrit (Core)
Question Bank Solutions for CBSE Science (English Medium) Class 11 Sanskrit (Elective)
Question Bank Solutions for CBSE Science (English Medium) Class 11 Sociology
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×