Menu

Objective Type Questions & Answers


Python Programming -Unit-4 Objective Type Questions



1. How do you create a window?

A . window = newWindow()

B . window = Window()

C . window = Frame()

D . window = Tk()

Answer


2. How do you create an event loop?

A . window.loop()

B . window.main()

C . window.mainloop()

D . window.eventloop()

Answer


3. To create a label under parent window, use _______.

A . label = Label(text = "Welcome to Python")

B . label = Label(window, text = "Welcome to Python")

C . label = Label(text = "Welcome to Python", fg = " red")

D . label = Label(text = "Welcome to Python", fg = " red", bg = "white")

Answer


4. To create a button under parent window with command processButton, use _______.

A . Button(text = "OK", fg = "red", command = processButton)

B . Button(window, text = "OK", fg = "red")

C . Button(window, text = "OK", fg = "red")

D . Button(window, text = "OK", command = processButton)

Answer


5. How do you create a GUI component for displaying multiple-lines of text?

A . use Label

B . Use Button

C . Use Text

D . Use Message

Answer


6. How do you draw a red line from 100, 100 to 400, 500?

A . canvas.create_line(100, 100, 100, 500, fill = "red")

B . canvas.create_line(100, 100, 400, 100, fill = "Red")

C . canvas.create_line(100, 100, 400, 500, fill = "red")

D . canvas.create_line(100, 100, 400, 500, filled = "red")

Answer


7. _______ is not a geometry managers in Tkinter.

A . pack

B . flow

C . grid

D . place

Answer


8. To place a button in a specified row and column in its parent container, use ________.

A . pack manager

B . grid manager

C . place manager

D . flow manager

Answer


9. Which option do you use to put the components in a container using the pack manager in the same row?

A . component.pack(LEFT)

B . component.pack(side = LEFT)

C . component.pack(side = "LEFT")

D . component.pack("LEFT")

Answer


10. The side option of the pack manager may not be _____________.

A . LEFT

B . RIGHT

C . BOTTOM

D . MIDDLE

Answer


11. Using a grid manager, you can use the option _________ to place a component in multiple rows and columns.

A . row

B . column

C . rowspan

D . colspan

Answer


12. You cannot display an image in ______________.

A . a label

B . a button

C . a check button

D . Entry

Answer


13. To create a menu in a window, use __________

A . menubar = Menu(window)

B . menubar = MenBar(window)

C . menubar = Menu()

D . menubar = MenBar()

Answer


14. You cannot display an image in ______________.

A . a label

B . a button

C . a check button

D . Entry

Answer




Relevant Materials :

Python Programming -Unit-1 Objective Type Questions - [ Python Programming ]

Python Programming -Unit-2 Objective Type Questions - [ Python Programming ]

Python Programming -Unit-3 Objective Type Questions - [ Python Programming ]

Python Programming -Unit-4 Objective Type Questions - [ Python Programming ]

Python Programming -Unit-5 Objective Type Questions - [ Python Programming ]


Similar Materials :

R - Programming MCQs - Unit-1 - [ R-Programming ]

R - Programming MCQs - Unit-2 - [ R-Programming ]

R - Programming MCQs - Unit-3 - [ R-Programming ]

R - Programming MCQs - Unit-4 - [ R-Programming ]

R - Programming MCQs - Unit-5 - [ R-Programming ]

Formal Languages and Automata Theory (FLAT) MCQs - Unit-1 - [ FLAT ]

Formal Languages and Automata Theory (FLAT) MCQs - Unit-2 - [ FLAT ]

Formal Languages and Automata Theory (FLAT) MCQs - Unit-3 - [ FLAT ]

Formal Languages and Automata Theory (FLAT) MCQs - Unit-4 - [ FLAT ]

Formal Languages and Automata Theory (FLAT) MCQs - Unit-5 - [ FLAT ]

PPS MCQs - Unit-1 - [ PPS ]

PPS MCQs - Unit-2 - [ PPS ]

PPS MCQs - Unit-3 - [ PPS ]

PPS MCQs - Unit-4 - [ PPS ]

PPS MCQs - Unit-5 - [ PPS ]

Object Oriented Programming through Java MCQs - Unit-1 - [ OOP_JAVA ]

Object Oriented Programming through Java MCQs - Unit-2 - [ OOP_JAVA ]

Object Oriented Programming through Java MCQs - Unit-3 - [ OOP_JAVA ]

Object Oriented Programming through Java MCQs - Unit-4 - [ OOP_JAVA ]

Object Oriented Programming through Java MCQs - Unit-5 - [ OOP_JAVA ]

Design and Analysis of Algorithms MCQs - Unit-1 - [ DAA ]

Design and Analysis of Algorithms MCQs - Unit-2 - [ DAA ]

Design and Analysis of Algorithms MCQs - Unit-3 - [ DAA ]

Design and Analysis of Algorithms MCQs - Unit-4 - [ DAA ]

Design and Analysis of Algorithms MCQs - Unit-5 - [ DAA ]

Software Engineering MCQs - Unit-1 - [ SE ]

Software Engineering MCQs - Unit-2 - [ SE ]

Software Engineering MCQs - Unit-3 - [ SE ]

Software Engineering MCQs - Unit-4 - [ SE ]

Software Engineering MCQs - Unit-5 - [ SE ]

Data Mining MCQs - Unit-1 - [ DM ]

Data Mining MCQs - Unit-2 - [ DM ]

Data Mining MCQs - Unit-3 - [ DM ]

Data Mining MCQs - Unit-4 - [ DM ]

Data Mining MCQs - Unit-5 - [ DM ]

Computer Organization and Architecture (COA) Objective Question Bank-Unit-1 - [ COA ]

Computer Organization and Architecture (COA) Objective Question Bank-Unit-2 - [ COA ]

Computer Organization and Architecture (COA) Objective Question Bank-Unit-3 - [ COA ]

Computer Organization and Architecture (COA) Objective Question Bank-Unit-4 - [ COA ]

Computer Organization and Architecture (COA) Objective Question Bank-Unit-5 - [ COA ]

Data Structures Objective Type Question Bank-Unit-1 - [ DS ]

Data Structures Objective Type Question Bank-Unit-2 - [ DS ]

Data Structures Objective Type Question Bank-Unit-3 - [ DS ]

Data Structures Objective Type Question Bank-Unit-4 - [ DS ]

Data Structures Objective Type Question Bank-Unit-5 - [ DS ]

Database Management System Objective Type Question Bank-Unit-1 - [ DBMS ]

Database Management System Objective Type Question Bank-Unit-2 - [ DBMS ]

Database Management System Objective Type Question Bank-Unit-3 - [ DBMS ]

Database Management System Objective Type Question Bank-Unit-4 - [ DBMS ]

Database Management System Objective Type Question Bank-Unit-5 - [ DBMS ]