Kiến Thức Về Phần Mềm Đồ Họa

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Khi nhập giá trị số thực cho biến x, câu lệnh nào sau đây là đúng?

  • x = int(input(“Nhập số thực x: ”))
  • x = float(input(“Nhập số thực x: ”)) (correct)
  • x = input(“Nhập số thực x: ”)
  • x = str(input(“Nhập số thực x: ”))

Khi viết chương trình nhập vào 4 số và tính tổng của chúng, dòng lệnh nào sau đây bị sai?

  • d = float(input(“Nhập số d”))
  • d = int(input(“Nhập số d”))
  • d = str(input(“Nhập số d”))
  • d = input(“Nhập số d”)) (correct)

Câu lệnh nào sau đây sẽ báo lỗi?

  • int(“1+3”)) (correct)
  • int(“3.5”))
  • float(“1.5”)
  • float(4)

Biểu thức lôgic là biểu thức nào sau đây?

<p>Biểu thức chỉ nhận giá trị True hoặc False (A)</p> Signup and view all the answers

Khi nhập giá trị số thực cho biến x, chương trình sẽ chạy đúng nếu dùng câu lệnh nào sau đây?

<p>&gt;x = float(input(“Nhập số thực x: ”)) (D)</p> Signup and view all the answers

Flashcards are hidden until you start studying

More Like This

Software for Graphic Design
10 questions
Graphic Design Software
5 questions

Graphic Design Software

CapablePedalSteelGuitar avatar
CapablePedalSteelGuitar
Graphic Design Tools and Techniques
24 questions
Use Quizgecko on...
Browser
Browser