हिंदी

Science (English Medium) कक्षा १२ - CBSE Question Bank Solutions for Computer Science (Python)

Advertisements
[object Object]
[object Object]
विषयों
मुख्य विषय
अध्याय
Advertisements
Advertisements
Computer Science (Python)
< prev  81 to 100 of 483  next > 

Write the use and syntax for the following method:

open()

[0.02] File Handling in Python
Chapter: [0.02] File Handling in Python
Concept: undefined > undefined

Write a command(s) to write the following lines to the text file named hello.txt. Assume that the file is opened in append mode.

“ Welcome my class”
“It is a fun place”
“You will learn and play”

[0.02] File Handling in Python
Chapter: [0.02] File Handling in Python
Concept: undefined > undefined

Advertisements

Write a Python program to open the file hello.txt used below in read mode to display its contents. What will be the difference if the file was opened in write mode instead of append mode?

“ Welcome my class”
“It is a fun place”
“You will learn and play”

[0.02] File Handling in Python
Chapter: [0.02] File Handling in Python
Concept: undefined > undefined

Write a program to accept string/sentences from the user till the user enters “END” to. Save the data in a text file and then display only those sentences which begin with an uppercase alphabet.

[0.02] File Handling in Python
Chapter: [0.02] File Handling in Python
Concept: undefined > undefined

State TRUE or FALSE for the following case:

In POSTFIX notation for expression, operators are placed after operands.

[0.03] Stack
Chapter: [0.03] Stack
Concept: undefined > undefined

For the following arithmetic expression:

((2+3)*(4/2))+2

Show step-by-step process for matching parentheses using stack data structure.

[0.03] Stack
Chapter: [0.03] Stack
Concept: undefined > undefined

Evaluate following postfix expression while showing status of stack after the operation given A = 3, B = 5, C = 1, D = 4.

A B + C *

[0.03] Stack
Chapter: [0.03] Stack
Concept: undefined > undefined

Evaluate following postfix expressions while showing status of stack after the operation given A = 3, B = 5, C = 1, D = 4.

A B * C / D *

[0.03] Stack
Chapter: [0.03] Stack
Concept: undefined > undefined

How is queue data type different from deque data type?

[0.04] Queue
Chapter: [0.04] Queue
Concept: undefined > undefined

Deletion of elements is performed from ______ end of the queue.

[0.04] Queue
Chapter: [0.04] Queue
Concept: undefined > undefined

______ is a data structure where elements can be added or removed at either end, but not in the middle.

[0.04] Queue
Chapter: [0.04] Queue
Concept: undefined > undefined

A deque contains ‘z’, ’x’, ’c’, ’v’ and ‘b’. Elements received after deletion are ‘z’, ’b’, ’v’, ’x’ and ‘c’. ______ is the sequence of deletion operation performed on deque.

[0.04] Queue
Chapter: [0.04] Queue
Concept: undefined > undefined

Write a python program to check whether the given string is palindrome or not, using deque. (Hint : refer to algorithm 4.1)

[0.04] Queue
Chapter: [0.04] Queue
Concept: undefined > undefined

Consider the following lists:

List 1:

2 3 5 7 11

List 2: 

11 7 5 3 2

If the lists are sorted using Insertion sort then which of the lists List1 or List 2 will make the minimum number of comparisons? Justify using diagrammatic representation.

[0.05] Sorting
Chapter: [0.05] Sorting
Concept: undefined > undefined

During admission in a course, the names of the students are inserted in ascending order. Thus, performing the sorting operation at the time of inserting elements in a list. Identify the type of sorting technique being used and write a program using a user defined function that is invoked every time a name is input and stores the name in ascending order of names in the list.

[0.05] Sorting
Chapter: [0.05] Sorting
Concept: undefined > undefined

Use the hash function: h(element) = element%11 to store the collection of numbers: [44, 121, 55, 33, 110, 77, 22, 66] in a hash table. Display the hash table created. Search if the values 11, 44, 88, and 121 are present in the hash table, and display the search results.

[0.06] Searching
Chapter: [0.06] Searching
Concept: undefined > undefined

Write a Python program by considering a mapping of the list of countries and their capital cities such as:

CountryCapital= {'India':'New Delhi','UK':
                             'London','France':'Paris',
                             'Switzerland': 'Berne',
                             'Australia': 'Canberra'}

Let us presume that our hash function is the length of the Country Name. Take two lists of appropriate size: one for keys (Country) and one for values (Capital). To put an element in the hash table, compute its hash code by counting the number of characters in the Country, then put the key and value in both lists at the corresponding indices. For example, India has a hash code of 5. So, we store India at the 5th position (index 4) in the keys list, New Delhi at the 5th position (index 4) in the values list, and so on. So that we end up with:

hash index = length of key - 1 List of Keys List of Values
0 None None
1 UK London
2 None None
3 Cuba Havana
4 India New Delhi
5 France Paris
6 None None
7 None None
8 Australia Canberra
9 None None
10 Switzerland Berne

Now search the capital of India, France, and the USA in the hash table and display your result.

[0.06] Searching
Chapter: [0.06] Searching
Concept: undefined > undefined

A bank ‘xyz’ wants to know about its popularity among the residents of a city ‘ABC’ on the basis of the number of bank accounts each family has and the average monthly account balance of each person. Briefly describe the steps to be taken for collecting data and what results can be checked through the processing of the collected data.

[0.07] Understanding Data
Chapter: [0.07] Understanding Data
Concept: undefined > undefined

Identify the type of data being collected/generated in the following scenario:

Recording a video.

[0.07] Understanding Data
Chapter: [0.07] Understanding Data
Concept: undefined > undefined

Identify the type of data being collected/generated in the following scenario:

Marking attendance by the teacher.

[0.07] Understanding Data
Chapter: [0.07] Understanding Data
Concept: undefined > undefined
< prev  81 to 100 of 483  next > 
Advertisements
Advertisements
CBSE Science (English Medium) कक्षा १२ Question Bank Solutions
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Biology
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Chemistry
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Computer Science (C++)
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Computer Science (Python)
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ English Core
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ English Elective - NCERT
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Entrepreneurship
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Geography
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Hindi (Core)
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Hindi (Elective)
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ History
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Informatics Practices
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Mathematics
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Physical Education
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Physics
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Political Science
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Psychology
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Sanskrit (Core)
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Sanskrit (Elective)
Question Bank Solutions for CBSE Science (English Medium) कक्षा १२ Sociology
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×