다음을 실행한 후 각 변수에 저장된 값을 쓰시오. 수식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 Wayground
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade