GoConqr has a new look! Let us know what you think.

Quiz

Python programming language

Sam Gue 10 questions 5.0 (1 rating)

Take the quiz

Questions in this 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():

Information

Description
Quiz on Python programming language, created by Sam Gue on 25/05/2014.
Author
Sam Gue
Language
English
Views
60
Rating
5.0 out of 5 · 1 rating
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?