在Python中,hex(2023)的功能是?

Python 三级真题

Quiz
•
Computers
•
7th Grade
•
Hard

小星 翟
Used 1+ times
FREE Resource
39 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
将十进制数2023转化为十六进制数
将十进制数2023转化为八进制数
将十六进制数2023转化为十进制数
将八进制数2023转化为十进制数
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列表达式的值与其他三个选项不相等的是哪一个?
(A)16
(11)8
(10)10
(1010)2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列说法错误或值为False的是?
将十进制数转化为八进制数的方法是除以8取余,逆序输出
(8)16>(8)10
(45)10=4×101+5×100
八进制数15对应的十进制数为13
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下面选项中最大的数是?
(37)8
(11111)2
(1F)16
(32)10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
关于下列代码,说法正确的是?
输入的都是数字,且b为非0整数时,执行try后面的语句
输入的有非数字时,执行exceptValueError后面的语句
输入的b为0时,执行except后面的语句
第6行代码只能出现在try-except代码块的最后,所以代码书写有误,不能运行
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下列代码的运行结果是?
@@@@@ ***** @@@@@ *****
&&&&& ***** @@@@@ *****
&&&&& ***** &&&&& *****
&&&&& @@@@@ *****
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
下面程序使用的with语句打开文件,处理结束后会?()
自动读取动物.csv文件
自动写入动物.csv文件
自动打开动物.csv文件
自动关闭动物.csv文件
Create a free account and access millions of resources
Similar Resources on Quizizz
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
43 questions
LinkIt Test - 24-25_BM4_7th

Quiz
•
7th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
14 questions
One Step Equations

Quiz
•
5th - 7th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
37 questions
7th Grade Summer Recovery Review

Quiz
•
7th Grade
18 questions
Informational Text Vocabulary

Quiz
•
7th - 8th Grade