ReviewNum1 { Hardware, Binary, Java, BlueJ, Variables, Classes, Arithmetic, Print Statements, Errors, Boolean Expressions, Conditionals, Loops, Random.

Slides:



Advertisements
Similar presentations
2.1 Program Construction In Java
Advertisements

Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
A Bridge to Your First Computer Science Course Prof. H.E. Dunsmore Computers Memory Number Systems Software Java.
Binary Representation Introduction to Computer Science and Programming I Chris Schmidt.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, Java Version, Third Edition.
©2004 Brooks/Cole Chapter 2 Variables, Values and Operations.
First project Create a JApplet with 3 textfields (2 for input and one for the answer), appropriate labels, and buttons for plus, minus and times. Your.
Arithmetic & Logic Unit Does the calculations Everything else in the computer is there to service this unit Handles integers May handle floating point.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third Edition.
Introduction to Computers and Programming Lecture 7:
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Computer ArchitectureFall 2008 © August 25, CS 447 – Computer Architecture Lecture 3 Computer Arithmetic (1)
Assembly Language for Intel-Based Computers, 5 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify.
Computer ArchitectureFall 2007 © August 29, 2007 Karem Sakallah CS 447 – Computer Architecture.
Computer Organization & Programming Chapter2 Number Representation and Logic Operations.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
© Janice Regan, CMPT 128, Jan CMPT 128: Introduction to Computing Science for Engineering Students Integer Data representation Addition and Multiplication.
CPS120: Introduction to Computer Science Lecture 8.
CSU0014 Assembly Languages Homepage: Textbook: Kip R. Irvine, Assembly Language for Intel-Based Computers,
Summer 2014 Chapter 1: Basic Concepts. Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Chapter Overview Welcome to Assembly Language.
Assembly Language for x86 Processors 7th Edition
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Computer Science 111 Fundamentals of Programming I Number Systems.
Computer Architecture
Computer Systems Organization CS 1428 Foundations of Computer Science.
Introduction to Computer Systems and the Java Programming Language.
Topic 1Topic 2Topic 3Topic 4Topic
ECEN 248 Lab 4: Multiplexer Based Arithmetic Logic Unit
PHP Logic. Review: Variables Variables: a symbol or name that stands for a value – Data types ( Similar to C++ or Java): Int, Float, Boolean, String,
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall
CSCI-100 Introduction to Computing Hardware Part I.
CMSC 150 PROGRAM EXECUTION CS 150: Wed 1 Feb 2012.
Data Representation Bits, Bytes, Binary, Hexadecimal.
Tutorial: ITI1100 Dewan Tanvir Ahmed SITE, UofO
07/12/ Data Representation Two’s Complement & Binary Arithmetic.
Digital Representations ME 4611 Binary Representation Only two states (0 and 1) Easy to implement electronically %0= (0) 10 %1= (1) 10 %10= (2) 10 %11=
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
Computer Science I CSCI Summer 2009 David E. Goldschmidt, Ph.D.
1 COMS 161 Introduction to Computing Title: Computing Basics Date: September 8, 2004 Lecture Number: 7.
Chapter Two Hardware Basics: Inside the Box ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
CS 125 Lecture 2 Martin van Bommel. Hardware vs Software Hardware - physical components you can see and touch –e.g. processor, keyboard, disk drive Software.
WELCOME To ESC101N: Fundamentals of Computing Instructor: Ajai Jain
COMPUTER SYSTEM A computer system is define as combination of components designed to process data and store files. A computer system consists of four.
09/03/20161 Information Representation Two’s Complement & Binary Arithmetic.
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
09/06/ Data Representation ASCII, Binary Denary Conversion, Integer & Boolean data types.
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
~How PC Parts Work~ (30 MARKS). List 4 External components you can see on the PC in front of you and describe the basic function of each one. 1) DVD Drive.
Midterm preview.
CIS3931 – Intro to JAVA Lecture Note Set 2 17-May-05.
Chapter 4 – Fundamental Data Types
Microprocessor Systems Design I
CSCI 161: Introduction to Programming
William Stallings Computer Organization and Architecture 7th Edition
Invitation to Computer Science, Java Version, Third Edition
ECEG-3202 Computer Architecture and Organization
Understand the interaction between computer hardware and software
Unit 3: Variables in Java
Networks & I/O Devices.
Presentation transcript:

ReviewNum1 { Hardware, Binary, Java, BlueJ, Variables, Classes, Arithmetic, Print Statements, Errors, Boolean Expressions, Conditionals, Loops, Random Numbers, Scanner Input }

Rules: 30 second time limit. You must cycle through team players. Done once you put pen down with cap on. You may ask your team for help. You may look at the notes at any time. Disqualified if you copy an answer. Disqualified= -2 Wrong Answer = -1 No Answer = 0 Correct Answer= +1 First Correct = +2

Ready?

Write the output of the following code: System.out.print(“Review”); System.out.println(“Day”);

What is the base-10 representation of this unsigned binary number? 1101

Write a while loop that would print this output:

In 3-bit unsigned, what is the largest possible value we can represent?

What is the base-10 representation of this binary number in sign and magnitude? 1000

What hardware component reads CDs, DVDs, and Blurays?

How do we write the Java logical operator “AND”?

What binary complement system requires that you flip all of the bits and then add one to map negative numbers?

Write the output of the following code: int x = 20; while (x <= 100) { x = x + 5; }System.out.print(x);

What binary complement system requires that you flip all of the bits to map negative numbers?

Write the output of the following code: double y = 13.7; System.out.print(y < );

Fill in a value for X to make the expression TRUE int x = _____; if ( ( x > 5 ) && ( x != 6 ) ) {…

If you are missing a close curly brace “}” somewhere in your code, what error will you get?

How do we write the Java relational operator “equal to”?

What is the name of this Java arithmetic operator? %

What is the base-10 representation of this binary number in sign and magnitude? 1100

When you plug a USB drive into your computer, what part is it being plugged into?

What symbols do we write in code to start writing a comment?

What hardware component is the main printed circuit board in your computer?

What is the base-10 representation of this unsigned binary number? 0110

Write a while loop that would print this output:

How do we write the Java relational operator “not equal to”?

What hardware component performs all of the arithmetic for your computer?

Fill in the missing code to get user input from this scanner and store it into the integer x. Scanner scan = new Scanner(System.in); int x = ______________________

What Java variable type stores decimal numbers?

What is the line of code that will import the user input scanner in Java?

List all possible random numbers that could be stored in the integer myRand. int myRand = rand.nextInt(4);

What hardware component stores permanent data without containing any moving parts?

How many bytes are in one kilobyte? Hint: 2 10

In 4-bit unsigned, what is the largest possible value we can represent?

Write the output of the following code: System.out.println(“Test”); System.out.print(“Friday”);

Fill in a value for Y to make the expression FALSE int y = _____; if ( ( y 6 ) ) {…

How do we write the Java logical operator “OR”?

Write the output of the following code: System.out.println(“Study”); System.out.print(“Your”); System.out.println(“Notes”);

Fill in the missing code to get a random number from 0 to 999 from this generator and store it into the integer x. Random rand = new Random(); int x = ______________________

Write the output of the following code: int y = 100; while (y >= 0) { y = y – 100; System.out.print(y); System.out.print(y);}

In 4-bit using Two’s Complement, what is the smallest possible value we can represent?

What is the best cooling system for your CPU?

Fill in the missing code to complete the initialization of the scanner. Scanner scan = new Scanner(______);

What hardware component stores permanent data on a spinning disk?

What is the result of this unsigned binary addition? = ____

What do we call it when a binary addition produces a result that passes the greatest possible representation that a number of bits could store?

What two things do you need to install on your computer to start programming in Java?

What is the result of this unsigned binary addition? = ____

What is the base-10 representation of this binary number in sign and magnitude? 0111

Before executing any code, the code must first be transformed into 0’s and 1’s, which is also known as?

Write the output of the following code: System.out.print(“Fun”); System.out.println(“ ”); System.out.print(“Day”);

What hardware component stores data quickly but temporarily for loading programs and data?

What is the result of this unsigned binary addition? = ____

List FOUR output devices from a computer.

If you wanted to have many monitors plugged into your computer, you would need multiple of this component.

List FOUR input devices to a computer.

What hardware component changes AC electricity into DC for your other components?

What does JDK stand for?

Write the output of the following code: int x = 5; while (x > 0) { x = x – 1; }System.out.print(x);

Write the output of the following code: String player = “Bob”; System.out.println(“player”); System.out.println(“Bob”); System.out.print(player);

What is the base-10 representation of this unsigned binary number? 1011

What is the base-10 representation of this binary number in sign and magnitude? 1011

What is the line of code that will import the random number generator in Java?

What does PCB stand for in computer hardware?

What does IDE stand for?

What binary compliment system do almost all computers and programming languages use?

Write the output of the following code: int x = 7; System.out.print(x != 7);

What binary compliment system requires an end-around carry for additions to produce the correct result?

What is your computer science teacher’s name?