Loading samples...
Loading samples...
11th-sample-20
Class 11 Computer Science Assessment
Which of the following functions is used to find the length of a string?
Which of the following is an input device?
Tuples are ____ in nature.
What is the output of 'Python'[1:3]?
Which operator is used for string concatenation?
Which of the following functions is used to find the length of a string?
What is cyber safety?
What is the result of 5 // 2?
Which of the following is a valid dictionary declaration?
What is the output of 'Python'[1:3]?
What is cyberbullying? How can it be prevented?
[3 marks]Define string slicing with an example.
[3 marks]Explain the concept of key-value pairs in a dictionary.
[3 marks]What are keywords in Python? Give 2 examples.
[3 marks]Explain the concept of key-value pairs in a dictionary.
[3 marks]What is cyberbullying? How can it be prevented?
[3 marks]Explain the difference between '/' and '//' operators in Python.
[3 marks]Explain the difference between '/' and '//' operators in Python.
[3 marks]Explain the difference between '/' and '//' operators in Python.
[3 marks]Define string slicing with an example.
[3 marks]Write a script that takes a list of numbers and returns a new list with only even numbers.
[5 marks]Write a Python script to print the Fibonacci series up to n terms.
[5 marks]Write a script that takes a list of numbers and returns a new list with only even numbers.
[5 marks]Create a dictionary of 3 students with their marks and write code to find the highest marks.
[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]Find the error: for i in range(5) print(i)
[3 marks]Explanation:Missing colon ':' at the end of the for loop statement.
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)
[3 marks]Explanation:Missing colon ':' at the end of the for loop statement.
Find the error: for i in range(5) print(i)
[3 marks]Explanation:Missing colon ':' at the end of the for loop statement.
Find the error: x = 10 if x = 10: print('Yes')
[2 marks]Explanation:Assignment operator '=' is used instead of comparison operator '=='.
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.
Predict the output: s = 'Python' print(s[::-1])
[2 marks]Explanation:The slice [::-1] reverses the string.