pencil-icon
Build your own quiz

Computers

9th -

11thgrade

Image

Subroutines

user

151
plays

16 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt
    Image

    What would the output be for the following program if the user enters 4 and 6?

    10

    14

    16

    error

  • 2. Multiple Choice
    45 seconds
    1 pt
    Image

    If the user inputs "Connolly"into surname and "Luke" into first what would be output?

    Error

    Connolly Luke

    Luke Connolly

    Connolly Luke Connolly Luke

  • 3. Multiple Choice
    30 seconds
    1 pt

    John wants to create a subroutine in python that will roll a dice. Which is the correct method below?

    DEFINE diceroll:INTEGER

    def diceroll[]:

    def diceroll():

    def diceroll:

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?