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

Quiz

Python programming language

Sam Gue 10 Fragen 5,0 (1 Bewertung)

Quiz starten

Fragen in diesem Quiz (10)

  1. 1Variables: How do you form a variable?
    1. Avariable_name = ("variable_content")
    2. Bvariable_name = ["variable_content"]
    3. Cvariable_name = {"variable_content"}
    4. Dvariable_name = "variable_content"
  2. 2If statements: What follows an if statement?
    1. AA colon :
    2. BAn equals =
    3. CA semi-colon ;
  3. 3If statements: what are the other statements?
    1. AElseif and Else
    2. BElif and Else
  4. 4Loops: How do you form a while loop?
    1. Awhile 'X' then:
    2. Bwhile 'X':
  5. 5Loops: What will this 'for loop' do?: for i in range(5):
    1. Arepeat the number five forever
    2. Brepeat something five times
    3. Crepeat five things, five times
  6. 6String indexing: print(word[3]), what will happen?
    1. Ait will print word three times
    2. Bit will print the third letter in word
    3. Cit will print the third item in the list: word
    4. Dit will print the fourth letter in word
  7. 7Lists: how do you add something to a list?
    1. Alist_name.add(value)
    2. Blist_name.input(value)
    3. Cappend(value).list_name
    4. Dlist_name.append(value)
  8. 8Functions: How do you form a user defined function?
    1. Adefine function_name():
      return X
    2. Bdef function_name():
      return X
  9. 9Text Files: How do you open and close a reading text file?
    1. Afile_name.open("X.txt", "r")
    2. Bfile_name.open("X.txt", "r+")
    3. Cfile_name.open("X.txt", "w")
    4. Dfile_name.open("X.txt", "a")
  10. 10Procedures: What does a procedure lack as opposed to a User Defined Function
    1. Areturn X
    2. Bdef procedure_name():

Informationen

Beschreibung
Quiz am Python programming language, erstellt von Sam Gue am 25/05/2014.
Autor
Sam Gue
Sprache
English
Aufrufe
60
Schlagwörter
a level
Bewertung
5,0 von 5 · 1 Bewertung
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck