Skip to content
free
K
1
2
practice
Home
Math
English
Science
Social Studies
Contact
Language
English
Español
Sign In
/
High School Electives
/
Computer Science
/
Type Conversion
Grade Level
Computer Science
HSCS.113 Type Conversion
0%
Skill Level
🔴 Hard
00:00
Progress to Next Level
25% to Medium
Easy
Medium
Hard
Mastery
100%
A permissions file stores admin_text = "0" for not admin and "1" for admin. Why is bool(admin_text) risky?
A
Both values convert to False because they are digits.
B
The conversion always throws an error on text digits.
C
Both "0" and "1" are non-empty text, so both convert to True.
D
The conversion changes "1" to the decimal 1.0.
Submit Answer