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

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

University

20 Qs

quiz-placeholder

Similar activities

Prep 3 Visual Basic

Prep 3 Visual Basic

9th Grade - University

15 Qs

FINQTKINTER

FINQTKINTER

University

20 Qs

Ms. Word Part 2

Ms. Word Part 2

3rd Grade - University

15 Qs

PBTGM GENAP

PBTGM GENAP

11th Grade - University

15 Qs

TKinter GUIs

TKinter GUIs

University

20 Qs

Repaso Teórico Python

Repaso Teórico Python

8th Grade - University

18 Qs

GUI Design with TKinter

GUI Design with TKinter

University

20 Qs

Tkinter Quiz

Tkinter Quiz

University

20 Qs

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

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

Assessment

Quiz

Computers

University

Hard

Created by

Phong Nguyen

Used 2+ times

FREE Resource

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()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Computers