What is the final result of the expression 4 + 5 * 3?, 27, 12, 21, 19, What is the final result of the expression 7 / 2 + 6?, 0, 9.5, 9, 0.875, Choose the print statement below that will cause an error. Assume num = 6 and name = "Isabella"., print(name + ":")\nprint(num), print(name + " wants " + "num " + "candies"), print(name + ": " + str(num)), print(name + ": " + num), Which statement below will cause an error?, ans = "hi" * 8, ans = "hi" + 9, ans = "hi" + "hi" + "hi", ans = ("a" * 4) + "b", What does the following program print? a = "hi" b = 4 c = a * b print(type(c)), A. <class 'str'>, B. <class 'int'>, C. <class 'float'>, The program crashes., Suppose you have a variable defined as: a = "4" a = "4" What is the variable type of a?, str, int, float, number, Choose the option that correctly prints out the variable(s)., x = "codehs"print(int(x)), num = 8\nprint("num"), name = "Alyx"\nage = 32\nprint(name + "is " + age), language = "Python"\nprint("I'm learning " + language), What kind of data does a float variable contain?, Whole numbers, Words, Numbers with decimal components, A float is not a Python variable type, What does the following code print? x = 3.4 y = 1 print(int(x)) print(x + y), 3.4\n4.4, 3\n4.4, 3\n4, The code causes an error, Which is the best way to get a number from the user for a mathematical equation?, num = str(input("Enter a number: ")), num = number(input("Enter a number: ")), num = input("Enter a number: "), num = int(input("Enter a number: ")), What is the final result of the expression 2**3?, 6, 8, 2, Invalid Python expression, What character do Python comments begin with?, #, %, -, ", What is the difference between a binary operator and a unary operator?, Computers can use binary operators, but not unary operators., A unary operator needs two things, while a binary operator needs one., A binary operator needs two things, while a unary operator needs one., Binary operators are for arithmetic, unary operators are for strings., On which line will Python produce an error? weight = input("How much do you weigh? ") oz_water = weight / 2 print("You should drink " + str(oz_water)) print("ounces of water every day if you weigh " + weight), Line 1, Line 2, Line 3, Line 4, In what order should these statements be executed? A) response = input("Do you like cheese? ") B) print("You have chosen " + confirm) C) print("You responded " + response) D) confirm = input("Are you sure? "), A, B, C, D, B, C, A, D, A, C, D,B, C, B, A, D, What is the output of the following program if the user enters "Florence" and "Fernandez"? first_name = input("What is your first name? ") last_name = input("What is your last name? ") whole_name = first_name + last_name print(whole_name), Fernandez Florence, Florence\nFernandez, FlorenceFernandez, Florence Fernandez, Which is a properly formed Python variable name?, user_age, uSeRaGe, user!age!, 1user_age, Which of the following is NOT a Python variable type?, int, str, float, number, Choose the correct declaration of a float variable with the value 3.14., pi = "3.14", pi = int(3.14), pi = 3.14, float pi = 3.14.
0%
Python Basics Multiple Choice Questions
공유
공유
공유
만든이
Gulnaztor
콘텐츠 편집
인쇄
퍼가기
더보기
할당
순위표
더 보기
접기
이 순위표는 현재 비공개입니다.
공유
를 클릭하여 공개할 수 있습니다.
자료 소유자가 이 순위표를 비활성화했습니다.
옵션이 자료 소유자와 다르기 때문에 이 순위표가 비활성화됩니다.
옵션 되돌리기
퀴즈
(은)는 개방형 템플릿입니다. 순위표에 올라가는 점수를 산출하지 않습니다.
로그인이 필요합니다
비주얼 스타일
글꼴
구독 필요
옵션
AI 강화: 이 활동에는 AI가 생성한 콘텐츠가 포함되어 있습니다.
더 알아보세요.
템플릿 전환하기
모두 표시
액티비티를 플레이할 때 더 많은 포맷이 나타납니다.
)
결과 열기
링크 복사
QR 코드
삭제
자동 저장된
게임을 복구할까요?