Search Header Logo

Siêu Nhân Lập Trình Web HP3

Authored by Phong Nguyen

Computers

University

Used 2+ times

Siêu Nhân Lập Trình Web HP3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Thư viện nào trong Python được sử dụng để tạo giao diện đồ họa?

tkinter

flask

kivy

pyqt5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Tkinter là gì trong ngôn ngữ lập trình Python?

Tkinter là một hệ điều hành phổ biến

Tkinter là thư viện GUI (Graphical User Interface) trong ngôn ngữ lập trình Python.

Tkinter là một loại virus máy tính

Tkinter là một loại thức ăn truyền thống của người Việt

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để tạo một cửa sổ đơn giản trong Tkinter?

root = Tk() root.mainloop()

from tkinter import * root = Tk() root.mainloop()

import tkinter as tk # Tạo một instance của lớp Tk root = tk.Tk() # Thêm các thành phần vào cửa sổ # Hiển thị cửa sổ root.mainloop()

import tkinter as tk root = tk.Tk() root.mainloop()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp để import Tkinter trong Python là gì?

import Tkinter

import tkinter

import tk

from tkinter import *

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để thêm một nút vào giao diện Tkinter, chúng ta sử dụng phương thức nào?

ButtonAddition()

ButtonAdd()

Button()

AddButton()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để thiết lập kích thước cửa sổ trong Tkinter?

window.geometry('widthxheight')

window.scale('widthxheight')

window.dimensions('widthxheight')

window.size('widthxheight')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Tkinter, làm thế nào để thêm một nhãn (label) vào cửa sổ?

window_label.grid(row=0, column=0)

window_label.place(x=0, y=0)

window_label = Label(window, text='Hello, World!')

window_label = Label(window, text='Hello, World!') window_label.pack()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?