다음을 실행한 후 각 변수에 저장된 값을 쓰시오. 수식ab (1)a=(b=1, b>3); (2)a=(b=(a=2))+2; (3)a=b=2, 1, 3; (4)a=(b=1, ++b, b+2);

2019년 지필평가 프로젝트(서술형) – Python

Quiz
•
Computers
•
10th Grade
•
Hard
백 길운
FREE Resource
9 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 1 pt
Evaluate responses using AI:
OFF
2.
OPEN ENDED QUESTION
3 mins • 1 pt
다음은 #include
Evaluate responses using AI:
OFF
3.
OPEN ENDED QUESTION
3 mins • 1 pt
다음 프로그램의 실행 결과를 쓰시오. #include
Evaluate responses using AI:
OFF
4.
OPEN ENDED QUESTION
3 mins • 1 pt
프로그램과 실행결과가 다음과 같을 때 [가], [나]에 들어갈 알맞은 예약어를 쓰시오. (단, [가], [나]는 여러 줄이 아님.) 프로그램실행결과 for n in range(1,10): if n%2 != 0 : print(n) [ 가 ] else: print(n) [ 나 ] 1 2 [가] : [나] :
Evaluate responses using AI:
OFF
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
n%2 != 0 : print(n) else: print(n)
가
나
6.
OPEN ENDED QUESTION
3 mins • 1 pt
다음 표는 연산자와 그 연산자에 대응되는 값(숫자)이다. 연산자값 <-1 >1 and1 or0 sum의 초기 값은 0이고 아래의 프로그램을 실행시켰을 때 위 표의 연산자가 실행될 때 마다 값을 sum에 더한다고 한다면 프로그램이 끝난 후 sum의 값은 얼마인가? (3점) a=1 b=2 c=3 (ab or a>c) ( )
Evaluate responses using AI:
OFF
7.
OPEN ENDED QUESTION
3 mins • 1 pt
주어진 matrix 리스트를 이용해 다음의 결과를 만들어 낼 수 있는 list comprehensions를 만들 때 ( )에 들어갈 알맞은 코드를 쓰시오. matrix = [ [1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], ] 결과 : [[1,5,9], [2,6,10], [3,7,11], [4,8,12]] [ ( ) for n in range(4) ]
Evaluate responses using AI:
OFF
8.
OPEN ENDED QUESTION
3 mins • 1 pt
방정식 2x+4y=10의 모든 해를 구하는 프로그램을 함수를 이용하여 작성하시오. 단, x와 y는 정수이고 각각의 범위는 0<=x<=10, 0<=y<=10 이다.
Evaluate responses using AI:
OFF
9.
OPEN ENDED QUESTION
3 mins • 1 pt
임의의 두 정수 a, b를 입력받아 a>b이면 두 수의 나눗셈 연산에서 몫을 구하고, a와 b가 같으면 두 수의 거듭제곱(a^b)을 구하고, 그 외의 경우이면 두 수의 뺄셈 연산을 구하는 함수를 사용자 정의 함수로 프로그래밍 하시오.
Evaluate responses using AI:
OFF
Similar Resources on Quizizz
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University