Programming Review
What programming language are we learning? Delphi Java Python C++ Match the appropriate data type to the example data String "Programming is easy!" Integer 6 Double 3.14 Boolean True Char a, b, c, 1, 2, 3 Which of the lines of code below is correct? print ("I love computing") PRINT ("I love computing") Print "I love computing" print "I love computing") Which of the following control structures would be best to use to repeat code when you know exactly how many times you'll want to repeat a section of code? for loop conditional while loop do...while loop Which command allows you to display something on the screen? output display println What command is used to get information from the user? javax.swing.*; JOptionPane JOptionPane.showInputDialog(); showInputDialog(); Match the example code on the left with the explanation on the right myString is a Stringavg is a Doublefor (int i = 0; i <= 200; i = i + 2); avg sum / numValues for letter in myString: this code will loop through the characters in a string Will the for loop iterate? No Start value of the for loop: 0 Stop value of the for loop: 200 Shorthand form of i = i + 2 i++ A variable is a way to store information to be used later in your program True False print (Hello World)There's an error in this code! What is missing ? Brackets Quotation marks full stop Exclamation mark userName = JOptionPane.showInputDialog("please enter your name: ")What is the name of the variable in the above code? userName input "please enter your name: " What do you use at the end of an if statement to catch anything that doesn't meet any of the previous conditions? if else elif else...if