Eduversity.bd — Learn with Us, Achieve Your Dreams

Python — MCQ প্রশ্ন

অনার্স CSE/ICT — BSc প্রশ্নব্যাংক · Python। এই অধ্যায়ে মোট 10টি প্রশ্ন আছে। নিচে প্রথম 10টি প্রশ্ন ও অপশন দেওয়া হলো; সঠিক উত্তর সার্ভারে যাচাই হয়।

এই অধ্যায়ে সব প্রশ্নে অনুশীলন করুন

  1. To read the entire remaining contents of the file as a string from a file object infile, we use ____________

    1. infile.readall()
    2. infile.read()
    3. infile.readlines()
    4. infile.read(all)

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  2. To access value in tuple, use the ________ bracket for slicing along with the index.

    1. square
    2. round
    3. not necessary
    4. triangle

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  3. What is a variable defined inside a function referred to as?

    1. static variable
    2. global variable
    3. local variable
    4. automatic variable

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  4. Which of the following is mathematical function?

    1. power
    2. sqrt
    3. add
    4. sub

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  5. What is the output for the following code: languages = ["java", "c++", "python"] for x in languages : if x == "c++": continue print(x)

    1. java
    2. java python
    3. java c++ python
    4. c++ python

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  6. How many types of geometry manager classes?

    1. three
    2. two
    3. four
    4. one

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  7. Which geometry manager organizes widgets in blocks before placing them in the parent widget.

    1. position()
    2. grid()
    3. pack()
    4. place()

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  8. Through Which Geometry method we can organizes widgets in a table-like structure in the parent widget.

    1. position()
    2. grid()
    3. pack()
    4. place()

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  9. _____variable is shared by all instances of a class

    1. class
    2. instance
    3. gloabal
    4. local

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  10. Which one of these is floor division

    1. /
    2. //
    3. %
    4. none

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

← আগের অধ্যায়পরের অধ্যায় →