quiz

Computer Science Quiz 1

Answer these simple questions correctly and earn coins

Difficulty Level :
10 Questions

Popular Questions In Computer Science Quiz 1

  • Find the invalid identifier from the following

  • Consider a declaration L = (1, 'Python', '3.14'). Which of the following represents the data type of L?

  • Given a Tuple tup1= (10, 20, 30, 40, 50, 60, 70, 80, 90). What will be the output of print (tup1 [3:7:2])?

  • Which of the following option is not correct?

  • Which of the following options can be used to read the first line of a text file Myfile.txt?

  • Assume that the position of the file pointer is at the beginning of 3rd line in a text file. Which of the following option can be used to read all the remaining lines?

  • The return type of the input() function is

  • Which of the following operator cannot be used with string data type?

  • Consider a tuple tup1 = (10, 15, 25, and 30). Identify the statement that will result in an error.

  • Which of the following statement is incorrect in the context of binary files?