Python — MCQ প্রশ্ন
অনার্স CSE/ICT — BSc প্রশ্নব্যাংক · Python। এই অধ্যায়ে মোট 10টি প্রশ্ন আছে। নিচে প্রথম 10টি প্রশ্ন ও অপশন দেওয়া হলো; সঠিক উত্তর সার্ভারে যাচাই হয়।
এই অধ্যায়ে সব প্রশ্নে অনুশীলন করুন
To read the entire remaining contents of the file as a string from a file object infile, we use ____________
- infile.readall()
- infile.read()
- infile.readlines()
- infile.read(all)
উত্তর যাচাই করতে প্র্যাকটিসে যান।
To access value in tuple, use the ________ bracket for slicing along with the index.
- square
- round
- not necessary
- triangle
উত্তর যাচাই করতে প্র্যাকটিসে যান।
What is a variable defined inside a function referred to as?
- static variable
- global variable
- local variable
- automatic variable
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Which of the following is mathematical function?
- power
- sqrt
- add
- sub
উত্তর যাচাই করতে প্র্যাকটিসে যান।
What is the output for the following code: languages = ["java", "c++", "python"] for x in languages : if x == "c++": continue print(x)
- java
- java python
- java c++ python
- c++ python
উত্তর যাচাই করতে প্র্যাকটিসে যান।
How many types of geometry manager classes?
- three
- two
- four
- one
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Which geometry manager organizes widgets in blocks before placing them in the parent widget.
- position()
- grid()
- pack()
- place()
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Through Which Geometry method we can organizes widgets in a table-like structure in the parent widget.
- position()
- grid()
- pack()
- place()
উত্তর যাচাই করতে প্র্যাকটিসে যান।
_____variable is shared by all instances of a class
- class
- instance
- gloabal
- local
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Which one of these is floor division
- /
- //
- %
- none
উত্তর যাচাই করতে প্র্যাকটিসে যান।