Please select a subject first
Advertisements
Advertisements
Identify data required to be maintained to perform the following service:
Declare exam results and print e-certificates.
Concept: undefined >> undefined
Identify data required to be maintained to perform the following service:
Register participants in an exhibition and issue biometric ID cards.
Concept: undefined >> undefined
Advertisements
Identify data required to be maintained to perform the following service:
To search for an image by a search engine.
Concept: undefined >> undefined
Identify data required to be maintained to perform the following service:
To book an OPD appointment with a hospital in a specific department.
Concept: undefined >> undefined
Which of the following is an invalid datatype in Python?
Concept: undefined >> undefined
Which of the following operators will return either True or False?
Concept: undefined >> undefined
“Every syntax error is an exception but every exception cannot be a syntax error.” Justify the statement.
Concept: undefined >> undefined
Differentiate between text file and binary file.
Concept: undefined >> undefined
Write the file mode that will be used for opening the following file. Also, write the Python statement to open the following file:
a text file “example.txt” in both read and write mode
Concept: undefined >> undefined
Write the file mode that will be used for opening the following file. Also, write the Python statement to open the following file:
a binary file “bfile.dat” in write mode.
Concept: undefined >> undefined
Write the file mode that will be used for opening the following file. Also, write the Python statement to open the following file:
a text file “try.txt” in append and read mode.
Concept: undefined >> undefined
Write the file mode that will be used for opening the following file. Also, write the Python statement to open the following file:
a binary file “btry.dat” in read only mode.
Concept: undefined >> undefined
Write a program to enter the following records in a binary file:
| Item No | integer |
| Item_Name | string |
| Qty | integer |
| Price | float |
Number of records to be entered should be accepted from the user. Read the file to display the records in the following format:
Item No:
Item Name :
Quantity:
Price per item:
Amount: (to be calculated as Price * Qty)
Concept: undefined >> undefined
Consider a list of 10 elements:
numList = [7, 11, 3, 10, 17, 23, 1, 4, 21, 5].
Display the partially sorted list after three complete passes of Bubble sort.
Concept: undefined >> undefined
Identify the number of swaps required for sorting the following list using selection sort and bubble sort and identify which is the better sorting technique with respect to the number of comparisons.
List 1:
| 63 | 42 | 21 | 9 |
Concept: undefined >> undefined
Write a program using user defined functions that accepts a List of numbers as an argument and finds its median. (Hint : Use bubble sort to sort the accepted list. If there are odd number of terms, the median is the center term. If there are even number of terms, add the two middle terms and divide by 2 get median)
Concept: undefined >> undefined
Using linear search determine the position of 8, 1, 99 and 44 in the list:
[1, -2, 32, 8, 17, 19, 42, 13, 0, 44]
Draw a detailed table showing the values of the variables and the decisions taken in each pass of linear search.
Concept: undefined >> undefined
Use the linear search program to search the key with value 8 in the list having duplicate values such as [42, -2, 32, 8, 17, 19, 42, 13, 8, 44]. What is the position returned? What does this mean?
Concept: undefined >> undefined
Write a program that takes as input a list having a mix of 10 negative and positive numbers and a key value. Apply linear search to find whether the key is present in the list or not. If the key is present it should display the position of the key in the list otherwise it should print an appropriate message. Run the program for at least 3 different keys and note the result.
Concept: undefined >> undefined
Following is a list of unsorted/unordered numbers:
[50, 31, 21, 28, 72, 41, 73, 93, 68, 43, 45, 78, 5, 17, 97, 71, 69, 61, 88, 75, 99, 44, 55, 9]
- Use linear search to determine the position of 1, 5, 55, and 99 in the list. Also, note the number of key comparisons required to find each of these numbers in the list.
- Use a Python function to sort/arrange the list in ascending order.
- Again, use linear search to determine the position of 1, 5, 55, and 99 in the list and note the number of key comparisons required to find these numbers in the list.
- Use binary search to determine the position of 1, 5, 55, and 99 in the sorted list. Record the number of iterations required in each case.
Concept: undefined >> undefined
