This is Java Jeopardy.

Slides:



Advertisements
Similar presentations
AP Computer Science Anthony Keen. Computer 101 What happens when you turn a computer on? –BIOS tries to start a system loader –A system loader tries to.
Advertisements

Final Jeopardy Question
CSci 1130 Intro to Programming in Java
Aalborg Media Lab 21-Jun-15 Software Design Lecture 2 “ Data and Expressions”
CSci 142 Data and Expressions. 2  Topics  Strings  Primitive data types  Using variables and constants  Expressions and operator precedence  Data.
Copyright 2008 by Pearson Education 1 Building Java Programs Chapter 2 Lecture 2-1: Expressions and Variables reading:
COMP 14: Primitive Data and Objects May 24, 2000 Nick Vallidis.
String Escape Sequences
Java Primitives The Smallest Building Blocks of the Language (corresponds with Chapter 2)
Chapter 2: Basic Elements of Java J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition.
2440: 211 Interactive Web Programming Expressions & Operators.
Chapter 2 Basic Elements of Java. Chapter Objectives Become familiar with the basic components of a Java program, including methods, special symbols,
Introduction to Programming David Goldschmidt, Ph.D. Computer Science The College of Saint Rose Java Fundamentals (Comments, Variables, etc.)
CSE 131 Computer Science 1 Module 1: (basics of Java)
Java Programming: From Problem Analysis to Program Design, 4e Chapter 2 Basic Elements of Java.
Using Data Within a Program Chapter 2.  Classes  Methods  Statements  Modifiers  Identifiers.
Mathematical Calculations in Java Mrs. G. Chapman.
CHAPTER 4 GC 101 Data types. DATA TYPES  For all data, assign a name (identifier) and a data type  Data type tells compiler:  How much memory to allocate.
Copyright 2008 by Pearson Education 1 Building Java Programs Chapter 2 Lecture 2-1: Expressions and Variables reading:
Assignment An assignment statement changes the value of a variable The assignment operator is the = sign total = 55; Copyright © 2012 Pearson Education,
© 2004 Pearson Addison-Wesley. All rights reserved ComS 207: Programming I Instructor: Alexander Stoytchev
Chapter 2 topics Concept # on Java Subset Required for AP Exam print and println10. Testing of output is restricted to System.out.print and System.out.println.
Java Programming, Second Edition Chapter Two Using Data Within a Program.
Programming in Java (COP 2250) Lecture 4 Chengyong Yang Fall, 2005.
Operators and Expressions. 2 String Concatenation  The plus operator (+) is also used for arithmetic addition  The function that the + operator performs.
Copyright 2010 by Pearson Education 1 Building Java Programs Chapter 2 Lecture 2-1: Expressions and Variables reading:
1 More data types Character and String –Non-numeric variables –Examples: char orange; String something; –orange and something are variable names –Note.
1 Chapter 2: Java Fundamentals cont’d Spring Lory Al Moakar.
1 Building Java Programs Chapter 2 Lecture 2-1: Expressions and Variables reading:
Java Programming: From Problem Analysis to Program Design, Second Edition 1 Lecture 1 Objectives  Become familiar with the basic components of a Java.
1 1 Chapter 2 Elementary Programming. 2 2 Motivations In the preceding chapter, you learned how to create, compile, and run a Java program. Starting from.
1 Lecture # 2. * Introducing Programming with an Example * Identifiers, Variables, and Constants * Primitive Data Types * Byte, short, int, long, float,
Lecture 3: More Java Basics Michael Hsu CSULA. Recall From Lecture Two  Write a basic program in Java  The process of writing, compiling, and running.
© 2006 Pearson Education Chapter 2: Objects and Primitive Data Presentation slides for Java Software Solutions for AP* Computer Science A 2nd Edition by.
Copyright 2010 by Pearson Education 1 Building Java Programs Chapter 2 Lecture 2-1: Expressions and Variables reading:
© 2004 Pearson Addison-Wesley. All rights reserved August 27, 2007 Primitive Data Types ComS 207: Programming I (in Java) Iowa State University, FALL 2007.
Building Java Programs
Primitive Data Types August 28, 2006 ComS 207: Programming I (in Java)
Expressions An expression is a portion of a C++ statement that performs an evaluation of some kind Generally requires that a computation or data manipulation.
Multiple variables can be created in one declaration
Primitive Data, Variables, Loops (Maybe)
Java Programming: From Problem Analysis to Program Design, 4e
Escape Sequences What if we wanted to print the quote character?
2.1 Parts of a C++ Program.
Examples of Primitive Values
Introduction to C++ Programming
Chapter 2: Basic Elements of Java
Building Java Programs
Building Java Programs
Chapter 2: Java Fundamentals
Building Java Programs
Building Java Programs Chapter 2
elementary programming
Building Java Programs
Chapter 2: Introduction to C++.
Building Java Programs
Building Java Programs
Building Java Programs
Building Java Programs
Building Java Programs
Building Java Programs
Building Java Programs
Building Java Programs
Building Java Programs Chapter 2
Building Java Programs
Building Java Programs
Building Java Programs
Instructor: Alexander Stoytchev
Building Java Programs
Presentation transcript:

This is Java Jeopardy

1 2 3 4 To Final Jeopardy Output String Literals Data Random Java Basics Output String Literals Variables Data Random 1 2 3 4 To Final Jeopardy

What is Helloworld. (with no space between the two words)? This would be the output of the following: s.o.p. (“Hello” + “world.”); Basics 1 Back to Board

What is constant? Variables that will not change in your program should be of this type. Basics 2 Back to Board

What is %? This operator returns the remainder of a division problem. Back to Board Basics 3

What is “ , ( , {? These three symbols require a closing symbol if you want to use them without generating an error. Back to Board Basics 4

What is print? This method prints data on one continuous line. Back to Board Output1

What is logical? An error in a program that works but produces the incorrect result is this type of error? Output 2 Back to Board

What is after the string is printed? When using the println method at what point does the program return down a space. Output 3 Back to Board

What is 2? How many lines would be in our output from the following call to print? System.out.println System.out.print Back to Board Output 4

What is string concatenation? This allows us to split a character string that does not fit on one line of the program. String Literal 1 Back to Board

What is 24 and 45 concatenated: 2445? What will be the result of the following string concatenation: System.out.println (“24 and 45 concatenated:” + 24 + 45); String Literals 2 Back to Board

What is \“? This escape sequence provides a double quotation mark around a string. Back to Board String Literal 3

What is compareTo? Programmers use this to tell whether one string comes before another alphabetically. Back to Board String Literals 4

What is a variable? The name for a location in memory that is used to hold a data value. Variables 1 Back to Board

What is a boolean? This type of variable has only two values (True or False). Variable 2 Back to Board

What are constants? This type of variable is signified by the use of all upper case letters. Variable 3 Back to Board

What is an assignment statement? The following represents what kind of statement? Sides = 10 Back to Board Variable 4

What is a mathematical/arithmetic expression? This type of expression is a combination of operators and operands. Back to Board Data 1

What is 11? The solution for the following expression would be what? result = 10 + (8 / 2 )%3 Data 2 Back to Board

What is an integer? When you divide an integer by an integer your answer is this type of number. Data 3 Back to Board

What is 2.0? What would the answer be to the following formula: Int x = 30 Int y = 12 Double z = x/y Data 4 Back to Board

What is a cast? We must use this when committing a narrowing conversion. Random 1 Back to Board

What is public static void main (String[ ] args)? This line comes immediately after Public Class header. Random 2 Back to Board

What is syntax error? This type of error is noticed during compile time such as missing a semicolon. Random 3 Back to Board

What are letters, numbers, underscore, and $? Can not begin with #. A valid Java identifier (variable name) may include these four things. Which can it not begin with? Random 4 Back to Board

Final Jeopardy Category Variables make your wagers

What are the four main types of variables? Let’s see your answers. What are the four main types of variables? Begin Now.

Int Double String boolean