Clicker Questions

Week1

Opinion 1:

Opinion polls are not graded. There is no right or wrong answer

What kind of clicker do you have?

  1. iClicker Plus
  2. iClicker 2
  3. The kind that is in transit to me
  4. I don't have one yet
  5. I manufactured one from discarded construction materials found on campus

Question Opinion 2:

This might normally be a question, but see the previous poll

The correct git sequence for submitting your changes to github.swarthmore.edu is

  1. commit, push
  2. add, commit, push
  3. commit, add, push
  4. add, status, push
  5. status, commit, status, push, add, status

Question Opinion 3:

Consider the following code snippet:
bool x,y;
x = getValue(); //may return true or false
y = (x == false);

The last line can be simplified as:

  1. y = x;     //identity 
  2. y = true;  //tautology 
  3. y = false; //contradiction 
  4. y = !x;    //negation 
  5. depends on the value of x

Question Opinion 4:

Consider the following code snippet:
int n;
cout << "Enter an integer: ";
cin >> n;
cout << "You typed: " << n << endl;
If the user types 3.7 at the prompt, the program will output:
  1. You typed: 3.7
  2. You typed: 4
  3. You typed: 3
  4. The program will crash