PCAP-31-03試験問題集を試そう!ベストPCAP-31-03試験問題トレーニングを提供しています [Q54-Q72]

Share

PCAP-31-03試験問題集を試そう!ベストPCAP-31-03試験問題トレーニングを提供しています

実践サンプルと問題集指導には2023年最新のPCAP-31-03有効なテスト問題集


この試験はオンラインで実施され、65分以内に回答する必要のある40の多肢選択問題で構成されています。変数、演算子、データ型、制御構造、関数、モジュール、クラス、オブジェクト指向プログラミングなどのトピックをカバーしています。また、Pythonコードを効率的で読みやすく、メンテナンスしやすいものに書けるかどうかも評価されます。


PCAP-31-03試験は、Pythonプログラミングに新しく取り組み、言語の堅固な基礎を築きたい個人を対象としています。また、言語に一定の経験がある専門家が自分のスキルや知識を確認したい場合にも適しています。この試験は、背景や経験に関係なく、誰でも受験できます。試験を受ける前に、受験目的やシラバスに精通することを推奨します。また、準備資料、学習ガイド、模擬試験を活用して、自分を適切に準備し、試験に合格する可能性を高めることができます。

 

質問 # 54
What is the expected output of the following code?

  • A. 0
  • B. an exception is raised
  • C. 1
  • D. 2

正解:C


質問 # 55
Which of the equations are True? (Select two answers)

  • A. chr (chr (x)) = = x
  • B. ord (ord (x)) = = x
  • C. ord (chr (x)) = = x
  • D. chr (ord (x)) = = x

正解:C、D

解説:
Reference:
https://docs.python.org/3/library/functions.html#ord


質問 # 56
What is true about Python class constructors? (Select two answers)

  • A. super-class constructor is invoked implicitly during constructor execution
  • B. the constructor can be invoked directly under strictly defined circumstances
  • C. the constructor's first parameter identifies an object currently being created
  • D. the constructor cannot use the default values of the parameters

正解:C


質問 # 57
What would you use instead of XXX if you want to check whether a certain ' key' exists in a dictionary called diet? (Select two answers) II if XXX:
print("Key exists")

  • A. diet['key'] != None
  • B. diet.exists('key')
  • C. 'key' in diet
  • D. 'key' in diet.keys()

正解:A、D


質問 # 58
What is the expected behavior of the following code?

It will:

  • A. cause a runtime exception
  • B. print 4321
  • C. print <generator object f at (some hex digits)>
  • D. print 1234

正解:C

解説:


質問 # 59
What is the expected output of the following snippet?

  • A. False lower
  • B. False upper
  • C. True upper
  • D. True lower

正解:D


質問 # 60
What will be the value of the i variable when the while e loop finishes its execution?

  • A. the variable becomes unavailable
  • B. 0
  • C. 1
  • D. 2

正解:C

解説:


質問 # 61
Python strings can be "glued" together using the operator:

  • A. _
  • B. .
  • C. +
  • D. &

正解:C


質問 # 62
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)

  • A. obj_b.prop_a == 3
  • B. isinstance(obj_c,A)
  • C. B.VarA == 3
  • D. hasattr(obj_b, 'prop_aa')

正解:B、D


質問 # 63
A file name like this one below says mat: (select three answers)
services. cpython-36.pyc

  • A. it is the 36th version of the file
  • B. the interpreter used to generate the file is version 3.6
  • C. it has been produced by CPython
  • D. the file comes from the services . py source file

正解:B、C、D


質問 # 64
What can you deduce from the following statement? (Select two answers)
str = open('file.txt', "rt")

  • A. a newlina character translation will be performed during the reads
  • B. str is a string read in from the file named file.txt
  • C. if file. txt does not exist, it will be created
  • D. the opened file cannot be written with the use of the str variable

正解:B、D


質問 # 65
What is the expected behavior of the following code?

  • A. it outputs error
  • B. the code is erroneous and it will not execute
  • C. it outputs list assignment index out of range
  • D. it outputs <class ' IndexError' >

正解:C


質問 # 66
Assuming that the following code has been executed successfully, selected the expression which evaluate to True (Select two answers)

  • A. b ( ) == 4
  • B. a is not None
  • C. a ( ) == 4
  • D. a ! = b

正解:B、C


質問 # 67
Python's built-in function named open () tries to open a file and returns:

  • A. an integer value identifying an opened file
  • B. always None
  • C. an error code (0 means success)
  • D. a stream object

正解:D


質問 # 68
Which of the listed actions can be applied to the following tuple? (Select two answers)

  • A. tup [0]
  • B. del tup
  • C. tup [:]
  • D. tup.append (0)

正解:B、C


質問 # 69
What is the output of the following piece of code?

  • A. ant bat camel
  • B. ant'bat'camel
  • C. antbatcamel
  • D. ant"bat"camel

正解:D

解説:


質問 # 70
A compiler is a program designed to (select two answers)

  • A. execute the source code
  • B. rearrange the source code to make it clearer
  • C. check the source code in order to see if its correct
  • D. translate the source code into machine code

正解:C、D

解説:
https://www.thoughtco.com/what-is-a-compiler-958322


質問 # 71
What is true about the following snippet? (Select two answers)

  • A. the code will raise an unhandled exception
  • B. the string what a pity will be seen
  • C. the string it's nice to see you will be seen
  • D. the siring I feel fine 'will be seen

正解:B、D


質問 # 72
......

最新100%合格率保証付きの素晴らしいPCAP-31-03試験問題PDF:https://www.passtest.jp/Python-Institute/PCAP-31-03-shiken.html

PCAP-31-03有効な認定試験問題集解答学習ガイド:https://drive.google.com/open?id=1Zv6D1rOSVwIKy7WAiWgVUDi2SFaCohaT