Quiz-1
											Q 1.
											What will be the output of the following Python code snippet? / निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
print('my_string'.isidentifier())
									- True
- False
- None
- Error
											Q 2.
											What will be the output of the following Python code? / निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('ab12'.isalnum())
									- True
- False
- None
- Error
											Q 3.
											What will be the output of the following Python code? / निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('{0:.2%}'.format(1/3))
									- 0.33
- 0.33%
- 33.33%
- 33%
											Q 4.
											What will be the output of the following Python code? / निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('{0:.2}'.format(1/3))
									- 0.333333
- 0.33
- 0.333333:.2
- Error
											Q 5.
											What will be the output of the following Python code? / निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("Hello {name1} and {name2}".format(name1='foo', name2='bin'))
									- Hello foo and bin
- Hello {name1} and {name2}
- Error
- Hello and
											Q 6.
											What will be the output of the following Python code? / निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("abcdef".find("cd"))
									- True
- 2
- 3
- None of the mentioned
											Q 7.
											What will be the output of the following Python code? / निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("xyyzxyzxzxyy".endswith("xyy"))
									- 1
- True
- 3
- 2
Q 8. What is the default value of encoding in encode()? / encode() में एन्कोडिंग का डिफ़ॉल्ट मान क्या है?
- ascii
- qwerty
- utf-8
- utf-16
											Q 9.
											What will be the output of the following Python code? / निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print('abc'.encode())
									- abc
- ‘abc’
- b’abc’
- h’abc’
											Q 10.
											What will be the output of the following Python code? / निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print("xyyzxyzxzxyy".count('yy', 1))
									- 2
- 1
- none of the mentioned
