CTP Mid2 Bit Bank
CTP Mid2 Bit Bank
BRANCH : IT DATE:
YAR/SEM : TIME:
16. Which of the following errors is generated when rules of a programming language
are violated? [ ]
a) Syntax errors b) Semantic Errors c) Linker Errors d) Logical Errors
18. The default constructor is simple constructor which doesn’t accept any [ ]
a) Values b) Arguments
c) Data d) Declarations
24) list, tuple, and range are the ___ of Data Types. [ ]
A)Sequence Types B) Binary Types C) Boolean Types D) None of the above
25) bytes, bytearray, memoryview are type of the ___ data type. [ ]
A) Mapping Type B) Boolean Type C) Binary Types D)None of the above
31) In Python, the break and continue statements, together are called ___ statement.
A) Jump B) goto C) compound D) None of the mentioned above
32) Amongst which of the following is / are the key functions used for
file handling in Python? [ ]
A) open() and close() B) read() and write() C) append() D) All of the mentioned above
36) Amongst which of the following is / are the method used to unpickling data from a binary
file? [ ]
A) load() B) set() method C) dump() method D) None of the mentioned above
38) Which mode is used too read text data from a file [ ]
a) wb b) r c) rb d) read