GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

PCAP

Mihai Cristian Tabarcea 141 Fragen

Quiz starten

Fragen in diesem Quiz (141)

  1. 1What will be the value of the i variable when the while e loop finishes its execution?Bild zu Frage 1
    1. A1
    2. B0
    3. C2
    4. Dthe variable becomes unavailable
  2. 2What is the expected output of the following snippet?Bild zu Frage 2
    1. A3
    2. B1
    3. C2
    4. Dthe code is erroneous
  3. 3What is true about Python class constructors? (Choose two.)
    1. Athere can be more than one constructor in a Python class
    2. Bthe constructor must return a value other than None
    3. Cthe constructor is a method named __init__
    4. Dthe constructor must have at least one parameter
  4. 4Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Choose two.)Bild zu Frage 4
    1. Aisinstance (obj_b,A)
    2. BA.VarA == 1
    3. Cobj_a is obj_aa
    4. DB.VarA == 1
  5. 5Assuming that the code below has been executed successfully, which of the expressions evaluate to True? (Choose two.)Bild zu Frage 5
    1. Alen(Class.__dict__) == 1
    2. B'data' in Class.__dict__
    3. C'var' in Class.__dict__
    4. D'data' in Object.__dict__
  6. 6A property that stores information about a given class's super-classes is named:
    1. A__upper__
    2. B__super__
    3. C__ancestors__
    4. D__bases__
  7. 7Which of the following lines of code will work flawlessly when put independently inside the add_new() method in order to make the snippet's output equal to [0, 1, 2]? (Choose two.)Bild zu Frage 7
    1. Aself.queue.append(self.get_last() + 1)
    2. Bself.queue.append(get_last() + 1)
    3. Cself.queue.append(self.queue[-1] + 1)
    4. Dqueue.append(self.get_last() + 1)
  8. 8What is the expected output of the following code?Bild zu Frage 8
    1. Aa
    2. Bc
    3. Can exception is raised
    4. Db
  9. 9What is the expected output of the following code if there is no file named non_existing_file inside the working directory?Bild zu Frage 9
    1. A1 2 4
    2. B1 2 3 4
    3. C2 4
    4. D1 3
  10. 10What is the expected output of the following code if the file named existing_text_file is a non-zero length text file located inside the working directory?Bild zu Frage 10
    1. Athe length of the first line from the file
    2. B-1
    3. Cthe number of lines contained inside the file
    4. Dthe length of the last line from the file

Informationen

Beschreibung
Quiz am PCAP, erstellt von Mihai Cristian Tabarcea am 12/01/2026.
Sprache
English
Aufrufe
0
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck