Logo
search
menuicon
thubnail
Forest
Sequencing

6학년 파이썬 기초

조아현
51
1
Added Question (20/ 20)
Allow incorrect answer
Hide answer
public quiz

Question 1

Multiple Choice

파이썬에서 문자열의 길이를 확인하는 함수는 무엇인가요?

  • len()
  • length()
  • size()
  • count()

Question 2

Multiple Choice

파이썬에서 주석을 작성할 때 사용하는 기호는 무엇인가요?

  • //
  • #
  • /*
  • <!--

Question 3

Multiple Choice

다음 중 파이썬의 예약어가 아닌 것은 무엇인가요?

  • while
  • if
  • def
  • print

Question 4

Multiple Choice

파이썬에서 리스트에 새로운 요소를 추가하는 메서드는 무엇인가요?

  • add()
  • append()
  • insert()
  • extend()

Question 5

Multiple Choice

다음 중 파이썬의 데이터 타입이 아닌 것은 무엇인가요?

  • int
  • str
  • bool
  • fraction

Question 6

Multiple Choice

파이썬에서 'Hello, World!'를 출력하는 코드는 무엇인가요?

  • echo 'Hello, World!'
  • print('Hello, World!')
  • printf('Hello, World!')
  • cout << 'Hello, World!'

Question 7

Multiple Choice

변수에 숫자 10을 할당하는 코드는 무엇인가요?

  • x == 10
  • x = 10
  • x := 10
  • x equals 10

Question 8

Multiple Choice

파이썬에서 반복문을 작성할 때 사용하는 키워드는 무엇인가요?

  • repeat
  • loop
  • for
  • iterate

Question 9

Multiple Choice

파이썬에서 함수의 정의를 시작하는 키워드는 무엇인가요?

  • func
  • def
  • function
  • define

Question 10

Multiple Choice

파이썬에서 조건문을 작성할 때 사용하는 키워드는 무엇인가요?

  • if
  • when
  • select
  • choose

Question 11

Multiple Choice

리스트 [1, 2, 3]에서 첫 번째 요소를 접근하는 코드는 무엇인가요?

  • list[0]
  • list[1]
  • list(first)
  • list[-1]

Question 12

Multiple Choice

파이썬에서 문자열 'Python'의 첫 두 글자를 추출하는 코드는 무엇인가요?

  • 'Python'[1:3]
  • 'Python'[:2]
  • 'Python'[0:2]
  • 'Python'[-2:]

Question 13

Multiple Choice

파이썬에서 딕셔너리의 키-값 쌍을 추가하는 방법은 무엇인가요?

  • dict.add(key, value)
  • dict[key] = value
  • dict.insert(key, value)
  • dict.append(key, value)

Question 14

Multiple Choice

파이썬에서 튜플은 어떻게 정의되나요?

  • [1, 2, 3]
  • {1, 2, 3}
  • (1, 2, 3)
  • <1, 2, 3>

Question 15

Multiple Choice

파이썬에서 'not' 연산자의 역할은 무엇인가요?

  • 논리적 참
  • 논리적 거짓
  • 논리적 부정
  • 논리적 합

Question 16

Multiple Choice

파이썬에서 'continue' 키워드의 역할은 무엇인가요?

  • 반복문을 종료
  • 반복문의 현재 반복을 건너뜀
  • 반복문을 다시 시작
  • 반복문을 일시 중지

Question 17

Multiple Choice

파이썬에서 'range(5)'는 무엇을 반환하나요?

  • [0, 1, 2, 3, 4]
  • [1, 2, 3, 4, 5]
  • [5, 4, 3, 2, 1]
  • [1, 2, 3, 4]

Question 18

Multiple Choice

파이썬에서 파일을 열 때 사용하는 함수는 무엇인가요?

  • open()
  • file()
  • read()
  • write()

Question 19

Multiple Choice

파이썬에서 'is' 연산자는 무엇을 비교하나요?

  • 변수 이름
  • 메모리 주소
  • 데이터 타입

Question 20

Multiple Choice

파이썬에서 클래스의 인스턴스를 생성하는 키워드는 무엇인가요?

  • init
  • self
  • class
  • new
Share to Google Classroom