1/11
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is the proper function to call to print to the screen?
console.log
What keyword do you need to use to define a variable in JavaScript?
let
To ask the user of the program for a number, which function should you use?
Both readLine and readInt are for numbers
What function do you need to call to ask the user of the program to enter text?
readLine
What symbol do you use to do division in JavaScript?
/ (slash)
What symbol do you use to do multiplication in JavaScript?
* (asterisks)
Can you make mathematical computations with console.log statements?
Yes, such as console.log(2+2) , would print 4 on the screen
What is the role of the driver in a pair-programming setting?
They control the mouse and keyboard
What is NOT a benefit of pair-programming?
Code takes 15% less time to write than with a solo programmer
What are the benefits of pair- programming?
Programs have fewer bugs than if written by a single programmer.
Code solutions are more creative.
Bias in programs is reduced.
Which of the following returns a random number between 1 and 10?
Randomizer.nextInt(1, 10)
how many possible values can Randomizer.nextBoolean() return?
2