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

Web Browser

Web Browser

University

15 Qs

MS WORD- CHAPTER 1

MS WORD- CHAPTER 1

University

20 Qs

BES 103 - Activity 5

BES 103 - Activity 5

University

20 Qs

ms powerpoint chapter 1

ms powerpoint chapter 1

University

20 Qs

Spreadsheet Quiz

Spreadsheet Quiz

6th Grade - University

20 Qs

Tkinter Quiz

Tkinter Quiz

University

20 Qs

Python Programming 17.09.2021

Python Programming 17.09.2021

University

15 Qs

Word/Word Online for Beginners

Word/Word Online for Beginners

3rd Grade - Professional Development

15 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?