Coding U3 Quiz

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1

What is the proper function to call to print to the screen?

console.log

2

What keyword do you need to use to define a variable in JavaScript?

let

3

To ask the user of the program for a number, which function should you use?

Both readLine and readInt are for numbers

4

What function do you need to call to ask the user of the program to enter text?

readLine

5

What symbol do you use to do division in JavaScript?

/ (slash)

6

What symbol do you use to do multiplication in JavaScript?

* (asterisks)

7

Can you make mathematical computations with console.log statements?

Yes, such as console.log(2+2) , would print 4 on the screen

8

What is the role of the driver in a pair-programming setting?

They control the mouse and keyboard

9

What is NOT a benefit of pair-programming?

Code takes 15% less time to write than with a solo programmer

10

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.

11

Which of the following returns a random number between 1 and 10?

Randomizer.nextInt(1, 10)

12

how many possible values can Randomizer.nextBoolean() return?

2