Computer Science Quiz 1

Computer Science Quiz 1

Difficulty Level: Easy
10 Questions

Popular Questions InComputer Science Quiz 1

1

Find the invalid identifier from the following

2

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

3

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

4

Which of the following option is not correct?

5

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

6

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?

7

The return type of the input() function is

8

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

9

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

10

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