Siena College Computer Science Outreach Project

Introduction

This project shares lectures and activities with students at two-year colleges. Our goal is to help prepare students for four year colleges and to learn more about students taking Computer Science courses at two-year colleges.

Please help us by

  1. Filling out a pre-activity survey,
  2. Watching the video below, and
  3. Completing a quiz, activity and final survey in your computer science class.

Pre-activity Survey

Please complete this survey before watching the video below.

Click Here To Complete the Survey

Lecture: Java Mathematical Expressions

The 15 minute video below is a lecture in an Intro to Java Programming course at Siena College. Below are sample questions similar to the ones we might ask on a quiz or test. The video below answers all these questions as well as the ones you will be asked in your class. The code presented in the video is linked below the video.

Questions

  1. What is the output of this statement?
    System.out.println( 11 / 5 );
  2. What is the output of this statement?
    System.out.println( 17 / 3 );
  3. In Java, what does the % operator return?
  4. What is the output of this statement?
    System.out.println( 12 % 5 );
  5. In Java, how could you write this expression using one method call?
    double volume = side * side * side
  6. What is the output of this statement?
    System.out.println( Math.sqrt(25) );

Video

Resources

Quiz, Activity & Final Survey

Will be given in class.