1) Who developed Python language? a) Zim Den b) Guido van Rossum c) NieneStom d) Wick van Rossum 2) Which one of the below operator will perform floor division? a) // b) / c) % d) /% 3) Which character is used in Python to make a single line comment?1. a) a) /*...*/ b) a) # c) b) // d) ! 4) What is the output of the following code :print 9//2 a) 4.5 b) 4.0 c) 4 d) Error 5) (in and not in) belongs to which operator group? a) Bitwise Operators b) Membership Operators c) Identity Operators d) Logical Operators 6) What is the output of “hello”+1+2+3 ? a) hello123 b) hello c) Error d) hello6 7) Which of the following will give "Simon" as output? If str1="John,Simon,Aryan" a) print(str1[-7:-12]) b) bprint(str1[-11:-7]) c) print(str1[-11:-6]) d) print(str1[-7:-11]) 8) What will following Python code return? str1="Stack of books" print(len(str1)) a) 13 b) 14 c) 15 d) 16 9) Which of the following functions do you use to write data in the binary format? a) write b) output c) dump d) send 10) csv stands for a) common separated value  b) Connection separated Value c) Comma separated value d) Content separated Value 11) What does the <readlines()> method returns? a) str b) a list of lines c) list of single characters d) list of integers 12) The operators that check if two values are located on the same part of the memory is called_______ a) Bitwise Operators b) Membership Operators c) Logical Operators d) Identity Operators 13) Which of the following control statement is NOT supported in python? a) if b) switch c) while d) for 14) Which quotes are generally used for represent the multiline string in python? a) single quotes b) double quotes c) multi quotes d) triple quotes 15) Which of the following python module contains the  function that is used to return the current working directory? a) sys b) math c) os d) random

Papan Peringkat

Gaya visual

Pilihan

Berganti templat

Pulihkan simpan otomatis: ?