Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.

Slides:



Advertisements
Similar presentations
Instructions To use this template:
Advertisements

This is Java Jeopardy.
1.A computer game is an example of A.system software; B.a compiler; C.application software; D.hardware; E.none of the above. 2.JVM stands for: A.Java Virtual.
08/2012Tanya Mishra1 EASYC for VEX Cortex Llano Estacado RoboRaiders FRC Team 1817.
Programming Languages and Paradigms The C Programming Language.
 2005 Pearson Education, Inc. All rights reserved Introduction.
1 Chapter 2 Introduction to Java Applications Introduction Java application programming Display ____________________ Obtain information from the.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Adrian Ilie COMP 14 Introduction to Programming Adrian Ilie July 5, 2005.
03 Data types1June Data types CE : Fundamental Programming Techniques.
Declaring Variables You must first declare a variable before you can use it! Declaring involves: – Establishing the variable’s spot in memory – Specifying.
CMT Programming Software Applications
Java An introduction. Example 1 public class Example1 { public static void main (String [] args) { System.out.println (“This is the first example”); int.
COMP 14 Introduction to Programming Miguel A. Otaduy May 20, 2004.
Chapter 5: Control Structures II (Repetition)
Control Structures II. Why is Repetition Needed? There are many situations in which the same statements need to be executed several times. Example: Formulas.
Chapter 4: Control Structures II
Warm-Up: April 21 Write a loop (type of your choosing) that prints every 3 rd number between 10 and 50.
CH1 – A 1 st Program Using C#. Program Set of instructions which tell a computer what to do. Machine Language Basic language computers use to control.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Chapter 2: Basic Elements of Java J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition.
Goals of Course Introduction to the programming language C Learn how to program Learn ‘good’ programming practices.
By Nicholas Policelli An Introduction to Java. Basic Program Structure public class ClassName { public static void main(String[] args) { program statements.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Introduction to Programming David Goldschmidt, Ph.D. Computer Science The College of Saint Rose Java Fundamentals (Comments, Variables, etc.)
Project 1 Due Date: September 25 th Quiz 4 is due September 28 th Quiz 5 is due October2th 1.
Java means Coffee Java Coffee Beans The name “JAVA” was taken from a cup of coffee.
Netprog: Java Intro1 Crash Course in Java. Netprog: Java Intro2 Why Java? Network Programming in Java is very different than in C/C++ –much more language.
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.
 Pearson Education, Inc. All rights reserved Introduction to Java Applications.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
An Introduction to Java – Part 1 Dylan Boltz. What is Java?  An object-oriented programming language  Developed and released by Sun in 1995  Designed.
Chapter 5: Control Structures II J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design,
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Chapter 4: Control Structures II
Chapter 5: Control Structures II
© 2004 Pearson Addison-Wesley. All rights reserved ComS 207: Programming I Instructor: Alexander Stoytchev
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
CONTROL STATEMENTS LOOPS. WHY IS REPETITION NEEDED?  There are many situations in which the same statements need to be executed several times.  Example:
By Mr. Muhammad Pervez Akhtar
CSCI 1226 FALL 2015 MIDTERM #1 REVIEWS.  Types of computers:  Personal computers  Embedded systems  Servers  Hardware:  I/O devices: mice, keyboards,
An Introduction to Java – Part 1 Erin Hamalainen CS 265 Sec 001 October 20, 2010.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Java Programming: From Problem Analysis to Program Design, 4e Chapter 5 Control Structures II: Repetition.
Java Programming: From Problem Analysis to Program Design, Second Edition 1 Lecture 1 Objectives  Become familiar with the basic components of a Java.
Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you.
Instructions To use this template:
Instructions To use this template:
Test 2 Review Outline.
Chapter 4 Assignment Statement
Selenium WebDriver Web Test Tool Training
Java Programming: From Problem Analysis to Program Design, 4e
An Introduction to Java – Part I
An Introduction to Java – Part I, language basics
Chapter 2: Basic Elements of Java
Chap 1 Chap 2 Chap 3 Chap 5 Surprise Me
C Programming Getting started Variables Basic C operators Conditionals
Instructor: Alexander Stoytchev
Presentation transcript:

Instructions To use this template: –for each slide write the correct answer on the orange bar first –choose which option (A,B,C or D) and make sure you write the letter on the orange bar in place of the question mark –Now drag the orange bar on top of the correct option so it sits exactly over the top - now when you click through the onscreen animation, the correct answer will appear to be illuminated –View the next slide to see how it should look

$1,000,000 Example of how it looks when complete, click on-screen show to view the animations B - correct answer A - answer C - answer D - answer B - correct answer

Who wants to be a Millionaire? Hosted by Ms. Alexander

Rules Divided into two teams (red and black) A person from each team signs up for a question amount in advance Students who sign up for 2 questions must allow at least 5 people in between their turns Both teams will answer a question for each point value (but the questions will be different)

Point Values 1 - $ $ $ $1, $2, $4, $8, $16, $32, $64, $125, $250, $500, $1,000,000

Lifelines 50/50 Phone a friend Poll the team

$100 Which of these is NOT a programming language taught this school year? B - Jeroo A - Java C - Perl D - Alice C - Perl

$100 Jeroos most closely resembled what kind of real-life animal? B – Wallaby/Kangaroo A - Penguin C - Ostrich D - Koala B – Wallaby/Kangaroo

$200 Which of these packages is associated with class Scanner? B – java.util.* A – javax.swing.* C – java.lang.Math.* D – console.nextInt() B – java.util.*

$200 Which of these methods is associated with class String? B – max() A – nextInt() C – random() D – length()

$500 Which of these is a reserved word in Java? B - INT A - int C - Char D - CHAR A - int

$500 A loop that executes endlessly is called ________? B – indefinite A – long C – update D – infinite

$1,000 Which of these is a data type for whole numbers? B - short A - double C - float D - boolean B - short

$1,000 What does floor(67.994) return? B – 68.0 A - 68 C - 67 D – 67.0 C - 67

$2,000 Which of the following is NOT a legal conditional statement? B – y >= x A – z == 21 C – x*4 < z D – z = y+2*xD - z = y+2*x

$2000 Which of these is a legal Java identifier? B – 2May A – STOP! C – First Exam D – RS6S6

$4,000 A _________ while loop uses a Boolean variable to control the loop. B - flag-controlled A - DO C – sentinel-controlled D – counter-controlled B – flag-controlled

$4,000 Which of the following statements declares a variable? B – y = 25 + x; A – int x = 54; C - Boolean flag; D – radius = console.nextInt() C – Boolean flag;

$8,000 Which of the following is an update statement? B – x++; A – x = y + 5; C – x = 15; D – x-y = 6; B – x++;

$8,000 In Java, what symbol is used to access class methods associated with objects? B - asterisk A - dot C - ampersand D - parenthesis A - dot

$16,000 Which of the following is the Java symbol for the newline escape sequence? B - /n A - / C - \n D - \ C - \n

$16,000 How would you call the following method header? Public static int average(int a, int b, int c); B – int ans=average(4,5,6) A – average(4,5,6) C – int ans=avg(4,5,6) D – double ans=avg(4.5,5.0,6.5) B - int ans=average(4,5,6)

$32,000 The value of 22 % 7 is? B - 1 A - 3 C – D – 22/7 B - 1

$32,000 Which of these languages is programmed in 0’s and 1’s? B – assembly language A – machine code C - Java D – high-level language A – machine code

$64,000 Given str=“Summer break!”, which of the following returns 5? B – str.indexOf(e); A – str.compareTo(“STOP”); C – str.indexOf(r); D – str.length(); C – str.indexOf(r);

$64,000 Which of these is the best method header for printing a random message a user-chosen number of times? B – int randMes(String mess) A – String randMes(int x) C – void randMes( ) D - void randMes(int x)D – void randMes(int x)

$125,000 What is the job of the compiler? B - where you write your code A – high-level  bytecode C - debugger D – helps you save your files A – high-level  bytecode

$125,000 What is the + symbol called when referencing Strings? B – plus sign A - pound C - concatenate D - combiner C - concatenate

$250,000 What is the output of the following loop? for (int i=0; i<5; i++) { System.out.print(“*”); } B - * * * * * A – * * * * C - ***** D - ****** C - *****

$250,000 The syntax to use the method compareTo() is: B – compareTo(str1, str2) A – str1.compareTo(str2) C – str1.compareTo.str2 D – (str1)compareTo.str2 A – str1.compareTo(str2)

$500,000 In the following code, what is the final value of ‘s’? int i=0; int s=0; for (i=0; i<5; i++) { s = 2 * s + i; System.out.print(s + “ “); }

$500,000 What is the difference between arguments and parameters?

$1,000,000 Write a class definition for class circle, which contains an instance variable for radius and methods for area (pi*r 2 ) and volume (4/3*pi*r 3 )

$1,000,000 Write a class definition for class rectangle, which contains an instance variable for length and width and methods for area (L*W) and perimeter (2*L + 2*W)