Loading samples...
Loading samples...
11th-sample-19
Class 11 Computer Science Assessment
What is the output of bool('False')?
Which method is used to add an element at the end of a list?
What is the output of 'Python'[1:3]?
What is the output of 'Python'[1:3]?
Which of the following is NOT a core data type in Python?
Which operator is used for string concatenation?
Tuples are ____ in nature.
Which of the following functions is used to find the length of a string?
What is the output of 'Python'[1:3]?
Which loop is used when the number of iterations is known?
Explain the difference between '/' and '//' operators in Python.
[3 marks]Explain the concept of key-value pairs in a dictionary.
[3 marks]Differentiate between compiler and interpreter.
[3 marks]What are keywords in Python? Give 2 examples.
[3 marks]Explain the difference between '/' and '//' operators in Python.
[3 marks]What is the role of an Operating System?
[3 marks]What is the role of an Operating System?
[3 marks]What is the role of an Operating System?
[3 marks]What is cyberbullying? How can it be prevented?
[3 marks]What is cyberbullying? How can it be prevented?
[3 marks]Write a program to check if a number is prime.
[5 marks]Write a program to check if a number is prime.
[5 marks]Write a program to check if a number is prime.
[5 marks]Write a program to count vowels in a given string.
[5 marks]Write a Python script to print the Fibonacci series up to n terms.
[5 marks]Write a program to check if a number is prime.
[5 marks]Predict the output: lst = [1, 2, 3] lst.append([4, 5]) print(len(lst))
[3 marks]Explanation:The list [4, 5] is appended as a single element, so the list becomes [1, 2, 3, [4, 5]].
Predict the output: lst = [1, 2, 3] lst.append([4, 5]) print(len(lst))
[3 marks]Explanation:The list [4, 5] is appended as a single element, so the list becomes [1, 2, 3, [4, 5]].
Predict the output: lst = [1, 2, 3] lst.append([4, 5]) print(len(lst))
[3 marks]Explanation:The list [4, 5] is appended as a single element, so the list becomes [1, 2, 3, [4, 5]].
Predict the output: s = 'Python' print(s[::-1])
[3 marks]Explanation:The slice [::-1] reverses the string.
Find the error: for i in range(5) print(i)
[2 marks]Explanation:Missing colon ':' at the end of the for loop statement.
Find the error: for i in range(5) print(i)
[2 marks]Explanation:Missing colon ':' at the end of the for loop statement.
Find the error: d = {1: 'a', 2: 'b'} print(d[3])
[2 marks]Explanation:The key 3 does not exist in the dictionary.
Find the error: d = {1: 'a', 2: 'b'} print(d[3])
[2 marks]Explanation:The key 3 does not exist in the dictionary.