Questions

3 Marks Each

🎯

Test yourself on this topic

14 questions · timed · auto-graded

Question 13 Marks
Write a script to create a list of names of 10 cities and then
(a) Display the names of all the cities whose names start with 'A'
(b) Count the number of cities whose names do not start with 'A'
View full question & answer
Question 23 Marks
Write a script to create a list of names of 10 cities and then
(a) Display all the elements of the list
(b) Display all the elements of the list in reverse order
View full question & answer
Question 33 Marks
Write a script to create an empty list and then
(a) Input 10 numbers from the users and store them in the list using append() method
(b) Find the sum of all the even elements present in the list
View full question & answer
Question 43 Marks
Write a script to create a list of 10 integers and then
(a) Display all the elements of the list
(b) Display the odd elements of the list
View full question & answer
Question 53 Marks

Write a script to create an empty list and then find the sum of all the elements present at even indices of the list.

View full question & answer
Question 63 Marks
Write a script to create a list of 10 integers and then display the elements present at odd indices of the list.
View full question & answer
Question 93 Marks
Write a program that reads a string and print and count the Upper case characters, Lower case characters and
other characters.
View full question & answer
Question 123 Marks
Find and write the output of the following Python code :

Answer

Assuming that input value is 23
1

40
7
100
13
160
19
220
92

View full question & answer
Question 143 Marks
Rewrite the following code in Python after removing all syntax error(s). Underline each correction done in the code.

View full question & answer
3 Marks Each - Computer Science STD 12 Humanities Questions - Vidyadip