Fill in the _____
Syntax Season
Is your order correct?
Code Words
Facts about Ms. Dykhuis
100

This method from JOptionPane is used to display a simple pop-up message: JOptionPane.showMessageDialog(_____, "Message");

null

100

What is the correct syntax to show a message dialog with the text "Hello World"?

JOptionPane.showMessageDialog(null, "Hello World");

100

What lines should be swapped/moved?

1. public static void main(String[] args){

2. public class test{

3. System.out.println("Hello world");

4. }

5. }

1 and 2 should swap

100

What is Java?

A programming language

100

What is Ms. Dykhuis' first name?

Natalie

200

public static ____ main (String[] args)

void

200

What is wrong or missing in this code?

System.out.println(Hello world);

Quotes! " "

200

What lines should be swapped/moved?

1.public class test{

2.public static void main(String[] args){

3.import javax.swing.*;

4.System.out.println("This is just a test");

5.}

3 should move to the top

200

What is a variable?

A placeholder for data, a place in memory

200

How many years has Ms. Dykhuis been teaching?

2

300

_____ name = "Bob Steve"

String

300

What is wrong or missing in this code?

JOptionPane.showMessageDialog("Welcome to jeopardy");

null

300

What lines should be swapped/moved?

1. public class test{

2.public static void main(String[] args){

3.Scanner input = new Scanner(System.in);

4.System.out.println("Enter your name: ");

5.name = input.next();

6.String name;

7.}

8.}

6 should come before 5/ swap 5 and 6

300

What is an algorithm?

A set of instructions, sequence of steps, directions

300

How old is Ms. Dykhuis?

23

400

JOptionPane.show_______Dialog(null, "I want to display this text", "This is my title", 0);

Message
400

What is wrong or missing in this code?

name = JOptionPane.showInputDialog(null, "What is your name?","Enter name here" )

;

400

What lines should be swapped/moved?

1.import javax.swing.*;

2.public class test{

3.public static void main(String[] args){

4.System.out.println("Hello"+name);

5.String name = JOptionPane.showInputDialog(null, "What is your name?");

6.}

7.}

4 and 5 should swap

400

What is a String?

a sequence of characters that can be letters, numbers, symbols, or spaces between " " 

400

What state is Ms. Dykhuis originally from?

Michigan

500

vacay = (_____)JOptionPane.showInputDialog(null, "Where do you want to go?", "Vacation", -1, myPic, null, "Ex. Mexico");

String

500

What is wrong or missing in this code?

color = JOptionPane.showInputDialog(null, "Enter your favorite color");

String color;

String color should come before the input box


500

What lines should be swapped/moved?


1.public class test{

2.public static void main(String[] args){

3.String name = "Bob", job = "teacher";

4.System.out.println(name+" is a "+age+" year old +job);

5.int age = 28;

6.}

7.}

5 should be before 4

500

What is an argument?

A value that you give a command/function

500

What programming language did Ms. Dykhuis learn in college?

C++

M
e
n
u