Ticker

6/recent/ticker-posts

Python Quiz for Beginners

 


Python For Beginners || Python || Free Certificate || Online Quiz On Python || Free Certificate Quiz

Hello everyone most welcome on my blog . Today in this post I will tell you about a new and interesting quiz competition. So let's start , This is an online quiz competition on "Python for Beginners". This quiz competition is organized by IT Department in collaboration with APSH Department, Rajkiya Engineering College Ambedkar Nagar UP. In this quiz competition anyone can participate. There is no any registration fee . There is total 20 MCQ question . There is no any negative marking and time limit. After quiz completion each participants will receive participation certificate on your email id.

After Submitting The Quiz Participants Will Receive This Type of Participation Certificate.


Here You can sell all the questions which are asked in this quiz competition


Q.1. Which of these in not a core data type? 


Lists

Dictionary

Tuples

Class


Q.2. What is the output of following program after executing a(1, 2): def add_numbers(x, y): return x - y a = add_numbers 


-1

3

1

none of the mentioned


Q.3. What is the maximum possible length of an identifier? 


31 characters

63 characters

79 characters

none of the mentioned


Q.4. Which of the following is not a keyword? 


eval

assert

nonlocal

pass


Q.5. The output of the expressions x.append(3.3) where x = [1, 'a', 2, 'b'] 


[1, 'a', 2, 'b', 3.3]

['1', 'a', '2', 'b', '3.3']

[1, a, 2, b, 3.3]

error


Q.6. what is the output: type(None) 


None Type

error

none of these


Q.7. Which of the following is the truncation division operator? 


/

%

//

|


Q.8. What will be the output of the following Python expression if X=345? print(“%06d”%X) 


345000

000345

000000345

345000000


Q.9. What will be the output of the following Python code? '%s' %((1.23,),)


‘(1.23,)’

1.23,

(,1.23)

‘1.23’


Q.10. What will be the output of the following Python statement? >>>"a"+"bc" 


a

bc

bca

abc


Q.11. To remove string “hello” from list1, we use which command? 


list1.remove(“hello”)

list1.remove(hello)

list1.removeAll(“hello”)

list1.removeOne(“hello”)


Q.12. The character Dot (that is, ‘.’) in the default mode, matches any character other than ____________ 


caret

ampersand

percentage symbol

newline


Q.13. The expression a{5} will match ______characters with the previous regular expression. 


5 or less

exactly 5

5 or more

exactly 4


Q.14.. Which of the following functions results in case insensitive matching?


re.A

re.U

re.I

re.X


Q.15. _____ represents an entity in the real world with its identity and behaviour


A method

An object

A class

An operator


Q.16. ____ is used to create an object 


class

constructor

User-defined functions

In-built functions


Q.17. What is setattr() used for?


To access the attribute of the object

To set an attribute

To check if an attribute exists or not

To delete an attribute


Q.18. Which of the following best describes polymorphism? 


Ability of a class to derive members of another class as a part of its own definition

Means of bundling instance variables and methods in order to restrict access to certain class members

Focuses on variables and passing of variables to functions

Allows for objects of different types and behaviour to be treated as the same general type


Q.19. What is the use of duck typing?


More restriction on the type values that can be passed to a given method

No restriction on the type values that can be passed to a given method

Less restriction on the type values that can be passed to a given method

Makes the program code smaller


Q.20. What is the output of: type(1.0)


int

float

function

error


For Answers of This Quiz Competition Click On The Following Video



Quiz Link: Click Here



Please Like and Subscribe My Youtube Channel (CS TECH)  For More Quizzes and Free Certification Courses Click On The Following Link


Youtube Channel Link:CS TECH

Post a Comment

0 Comments

Ad Code