Lệnh nào dùng để nhận biết kiểu dữ liệu của biến trong python?

B18.3-Tin10

Quiz
•
Instructional Technology
•
12th Grade
•
Hard
TRUC Ng
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
type().
int().
size().
abs().
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Viết chương trình nhập vào 4 số và tính tổng của chúng. Các dòng lệnh số mấy bị sai?
a = int(input(“Nhập số a”))
b = float(input(“Nhập số b”))
c = int(input(“Nhập số c”))
d = input(“Nhập số d”)
print(“Tổng là: ”, a+b+c+d)
Dòng 1, 2.
Dòng 2, 4.
Dòng 3, 5.
Dòng 4.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong các lệnh sau những lệnh nào sẽ báo lỗi?
int("12+45").
float(123.56).
float("123,5.5").
Câu lệnh A và C sẽ báo lỗi.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đưa dữ liệu ra màn hình dùng thủ tục nào?
print().
input().
type().
abs().
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Muốn nhập vào 2 số nguyên a, b mỗi số trên 1 dòng trong Python ta dùng lệnh gì?
a=int(input()) b=int(input()).
a=float(input()) b=float(input()).
a,b=map(int,input().split()).
a,b=map(float,input().split()).
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đâu không phải là kiểu dữ liệu cơ bản trong python?
int.
float.
list.
string.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lênh nào sau đây không báo lỗi?
1) float(4)
2) int(“1+3”)
3) int(“3”)
4) float(“1+2+3”)
1
2
3
4
Create a free account and access millions of resources
Similar Resources on Quizizz
5 questions
Game hoá

Quiz
•
9th - 12th Grade
10 questions
B18.1-Tin10

Quiz
•
12th Grade
11 questions
Python - Data Types

Quiz
•
12th Grade - University
10 questions
B26.2-Tin10

Quiz
•
12th Grade
14 questions
Diagnóstico_programación_básica

Quiz
•
9th - 12th Grade
10 questions
KHỞI ĐỘNG

Quiz
•
12th Grade
10 questions
B23.1-Tin10

Quiz
•
12th Grade
10 questions
tin 12 bài 3: gth microsoft access

Quiz
•
12th Grade
Popular Resources on Quizizz
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade