
CS XII
Authored by Navneet Sadh
Computers
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
60 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
State True or False: Exception is a compile time error.
True
False
Answer explanation
Explanation for the answer (optional)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the output of the following code snippet text = “Comma(,) is a punctuator” text = text.split(‘,’) print(text)
[ ‘Comma(,)’, ‘is’, ‘a’, ‘punctuator’ ]
[ ‘Comma(’, ‘) is a punctuator’ ]
[ ‘Comma(‘, ‘,’, ‘) is a punctuator’ ]
Error
Answer explanation
Jupiter is a gas giant made primarily of hydrogen and helium. Unlike terrestrial planets that have solid surfaces, gas giants like Jupiter don't have a well-defined solid surface, allowing them to accumulate more mass in a gaseous form. This composition has allowed Jupiter to grow significantly larger than planets with solid surfaces.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following expressions evaluates to True
False or not False and False
False and not False or False
True or not True and False
True and not True or not True
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet? ‘CS’.join(‘IP’)
ICSP'
CIPS'
IPCIPSIP'
CSICSPCS'
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? msg = ‘Transcendental’ print(msg[ 10 : -10 : -2 ])
nde'
ndesaTltenc'
error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement(s) will result in error? t1=(11,22,33) t2=(44,) #statement1 t2+=t1 #statement2 t4=t1*2+t2*2 #statement3 t4[0]=45 #statement4
statement 4
statement 2&4
statement 3&4
All
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement will result in error item={‘Cake’:20, ‘Pastry’:30, ‘Burger’:15}
item[‘Patties’]=30
item.update((‘Patties’,30))
item.update({‘Patties’:30})
item.setdefault(‘Patties’,30)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?