Sail E0 Webinar

MCQs

Total Questions : 54 | Page 5 of 6 pages
Question 41. What is the use of duck typing?
  1.    Less restriction on the type values that can be passed to a given method
  2.    Makes the program code smaller
  3.    More restriction on the type values that can be passed to a given method
  4.    No restriction on the type values that can be passed to a given method
 Discuss Question
Answer: Option A. -> Less restriction on the type values that can be passed to a given method
Question 42. Essential thing to create a window screen using tkinter python
  1.    call tk() function
  2.    create a button
  3.    All of the mentioned
  4.    To define a geometry
 Discuss Question
Answer: Option A. -> call tk() function
Question 43. Which of the following statements is true?
  1.    A subclass method can be overridden by the superclass
  2.    Overriding isn’t possible in Python
  3.    A private method in a superclass can be overridden
  4.    A non-private method in a superclass can be overridden
 Discuss Question
Answer: Option D. -> A non-private method in a superclass can be overridden
Question 44. Config() in python Tkinter are used for
  1.    destroy the widget
  2.    change property of the widget
  3.    configure the widget
  4.    place the widget
 Discuss Question
Answer: Option B. -> change property of the widget
Question 45. Correct way to draw a line in canvas tkinter
  1.    None of the mentioned
  2.    line()
  3.    create_line(canvas)
  4.    canvas.create_line()
 Discuss Question
Answer: Option D. -> canvas.create_line()
Question 46. How we import a tkinter in python program ?
  1.    All of the mentioned
  2.    import tkinter as t
  3.    from tkinter import *
  4.    import tkinter
 Discuss Question
Answer: Option A. -> All of the mentioned
Question 47. How we install tkinter in system ?
  1.    pip install tkinter
  2.    tkinter install
  3.    pip install python
  4.    tkinter pip install
 Discuss Question
Answer: Option A. -> pip install tkinter
Question 48. In Python GUI programming, the method that leaves an impression of a turtle shape at the current location
  1.    All of the mentioned
  2.    shape()
  3.    position()
  4.    stamp()
 Discuss Question
Answer: Option D. -> stamp()
Question 49. Which are Server Socket Methods provided by Python?
  1.    s.listen()
  2.    s.accept()
  3.    s.bind()
  4.    All of the mentioned
 Discuss Question
Answer: Option D. -> All of the mentioned
Question 50. In which of the following field, we can put our Button?
  1.    All of the mentioned
  2.    Frame
  3.    Window
  4.    Label
 Discuss Question
Answer: Option A. -> All of the mentioned

Latest Videos

Latest Test Papers