95 questions across 7 question groups — pick any mix to generate a Computer Science paper with step-by-step answer keys.
True-False
10 Q→02M.C.Q
21 Q→031 Marks Each
22 Q→042 Marks Each
4 Q→053 Marks Each
14 Q→065 Marks Each
3 Q→074 Marks Each
21 Q→One sample from each question group in this chapter. Select any group above to see the full set with answer keys.
Answer: C.
View full solution →Answer: C.
View full solution →Answer: A.
View full solution →Answer: B.
View full solution →Answer: A.
View full solution →
Observe the following Python code very carefully and rewrite it after removing all syntactical errors with each
correction underlined.
Write a script to create an empty list and then find the sum of all the elements present at even indices of the list.
Pawan is confused in understanding Dictionary concept. Help him to understand the concept by choosing the appropriate answer.
(a) Which statement will display Not Available?
(i) Statement 9 (ii) Statement 10
(iii) Statement 11 (iv) Statement 13
(b) Choose the key from Dictionary.
(i) ADMNO (ii) ‘admno ’
(iii) 101 (iv) “Not Available ”
(c) Which statement will display None?
(i) Statement 9 (ii) Statement 10
(iii) Statement 11 (iv) Statement 13
(d) Which Statement will display Tejas?
(i) Statement 8 (ii) Statement 9
(iii) Statement 10 (iv) Statement 11
(e) Choose the identifier.
(i) ADMNO (ii) ‘admno ’
(iii) setdefault (iv) Not Available
The Teacher wrote the following code. Sanya was absent on the day when the topic was taught. Help her to complete the assignment.
Choose the output on the basis of the above code.
(a) Which statement is used to display “HeLLo PyThon ”?
(i) Statement 1 (ii) Statement 12
(iii) Statement 13 (iv) No Statement will display.
(b) Which statement will check for capital letters?
(i) Statement 6 (ii) Statement 7
(iii) Statement 8 (iv) Statement 9
(c) Which statement will convert it into capital letters?
(i) Statement 6 (ii) Statement 7
(iii) Statement 8 (iv) Statement 9
(d) Which is iterative Statement?
(i) Statement 5 (ii) Statement 6
(iii) Statement 8 (iv) There is No iterative Statement.
(e) What will be the output of Python code (Statement 1 to Statement 13)
(i) HeLLo PyThon (ii) No Output
(iii) hEllO pYtHON (iv) Hello Python
Write a script to create two lists of 5 floating point values each and then
(a) Sort the first list using sort() method and display it without using any loop
(b) Reverse the second list using reverse() method and display it without using any loop
(c) Append the second list to the first list using extend() method
(d) Delete all the elements from the second list using clear() method
(e) Display the first list (after performing the above operations)
(f) Input an integer from the user and find how many times does it exist in the first list using count() method
Write a script to create a list of 10 random integers and display it. Then input an integer from the user and check whether it is present in the list (use in operator). If it is present in the list, then remove it from the list. If the element is present in the list multiple times then all its occurrences should be removed. (use remove() method). If the element is not present, then display an appropriate message.
Write a script to create a list of 10 random integers and display it. Then input an integer from the user and check whether it is present in the list (use in operator) and display an appropriate message.
Pick question groups from the list above, set marks and difficulty, and export a branded PDF with step-by-step answer keys. First 3 chapters free — no signup.