無料Python Institute PCAP-31-03試験問題と解答トレーニングを提供しています [Q62-Q79]

Share

無料Python Institute PCAP-31-03試験問題と解答トレーニングを提供しています

トップクラスPython Institute PCAP-31-03オンライン問題集


PCAP-31-03認定試験は、Pythonプログラミングの知識を実証したい人に開かれたベンダー中立認定です。この試験は、構文、データ型、制御構造など、Pythonプログラミング言語に関する候補者の理解をテストするように設計されています。また、アルゴリズム、データ構造、オブジェクト指向プログラミングなどの基本的なプログラミングの概念もカバーしています。


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

 

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

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

正解:A


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

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

正解:A、C


質問 # 64
Assuming that the following code has been executed successfully, selected the expression which evaluate to True (Select two answers) Def f (x, y); Nom, denom = x, y def g ( ) ; Return nom / denom A = f (1, 2) B = f (3, 4)

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

正解:A、C


質問 # 65
You are going to read just one character from a stream called s. Which statement would you use?

  • A. ch = s. read(l)
  • B. ch = s. input(1)
  • C. ch = input(s, 1)
  • D. ch = read(s, 1)

正解:A


質問 # 66
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.exists('key')
  • B. 'key' in diet
  • C. diet['key'] != None
  • D. 'key' in diet.keys()

正解:B、D


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

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

正解:A、D


質問 # 68
Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Select two answers) import random v1 = random. random() v2 = random. random()

  • A. v1 >= 1
  • B. random.choice([1,2,3]) >=1
  • C. len(random.sample([1,2,3],2)) > 2
  • D. v1 == v2

正解:A、B


質問 # 69
A class constructor (Select two answers)

  • A. can return a value
  • B. can be invoked directly from any of the superclasses
  • C. can be invoked directly from any of the subclasses
  • D. cannot be invoked directly from inside the class

正解:C、D


質問 # 70
A Python module named pymod, py contains a function named pyfun ( ).
Which of the following snippets will let you invoke the function? (Select two answers)

  • A. Import pymod
    Pymod. Pyfun ( )
  • B. From pymod import pyfun
    Pyfun ( )
  • C. Import pyfun from pymod
    Pyfun ( )
  • D. From pymod import '
    Pymod.pyfun ( )

正解:A、B


質問 # 71
What is the expected out of the following code of the file named zero_length_existing_file is a zero-length file located inside the working directory?

  • A. 0
  • B. an errno value corresponding to file not found
  • C. 1
  • D. 2

正解:A


質問 # 72
Executing the following snippet

will cause the dct:

  • A. to hold one key named 'pi' linked to 3.1415
  • B. to hold two key named 'pi' linked to 3.14 and 3.1415
  • C. to hold two keys named 'pi' linked to 3.14 and 3.1415 respectively
  • D. to hold two keys named 'pi' linked to 3.1415

正解:A


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

  • A. it outputs 6
  • B. it outputs 321
  • C. It outputs 123
  • D. it raises an exception

正解:A


質問 # 74
A Python module named pymod.py contains a variable named pyvar.
Which of the following snippets will let youaccess the variable? (Select twoanswers)

  • A. from pymod import pyvar = 1
  • B. from pymod import pyvar pyvar ()
  • C. import pyvar from pymod pyvar = 1
  • D. import pymod pymod.pyvar = 1

正解:C、D


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

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

正解:C、D


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

  • A. it outputs 2
  • B. it outputs 1
  • C. it outputs 3
  • D. the code is erroneous and it will not execute

正解:B


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

  • A. None
  • B. True
  • C. False
  • D. 0

正解:B


質問 # 78
If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:

  • A. except Ex1, Ex2:
  • B. except (ex1, Ex2):
  • C. except Ex1+Ex2:
  • D. except Ex1 Ex2:

正解:C


質問 # 79
......

最新(2023)Python Institute PCAP-31-03試験問題集:https://jp.fast2test.com/PCAP-31-03-premium-file.html

PCAP-31-03練習問題集で検証済みのFast2test更新された145問題あります:https://drive.google.com/open?id=1P_Y0VG8BWpXp_YOS0_ZBztipjuTa-IX6


弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

我々の働いている時間: ( GMT 0:00-15:00 )
月曜日から土曜日まで

サポート: 現在連絡 

English Deutsch 繁体中文 한국어