Exam 3: Variables, Functions, Math, and Strings

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

String ___________________ is used to join two strings together.

Free
(Short Answer)
4.8/5
(34)
Correct Answer:
Verified

concatenation

Which of the following functions could be used to input the user's first name?

Free
(Multiple Choice)
4.9/5
(39)
Correct Answer:
Verified

D

The ___________________ function is used to input a numeric value from the user.

Free
(Short Answer)
4.7/5
(46)
Correct Answer:
Verified

ask user for a number

Which of the following belongs to a specific object?

(Multiple Choice)
4.9/5
(32)

A string is a sequence of characters and is used to store text.

(True/False)
4.8/5
(33)

String addition is used to join two strings together.

(True/False)
4.9/5
(34)

When a local variable is declared, which of the following can be set?

(Multiple Choice)
4.8/5
(38)

A(n) ___________________ variable holds an argument that is passed to a method.

(Short Answer)
4.8/5
(38)

Which of the following variable types should be used to store someone's age?

(Multiple Choice)
4.9/5
(38)

A class-level variable belongs to the world.

(True/False)
4.7/5
(36)

Given that the variable hours has a value of 10, the following expression would evaluate to what value? hours / 5 + 2

(Short Answer)
4.9/5
(27)

Which of the following categories of variables are available in Alice?

(Multiple Choice)
4.8/5
(42)

The ___________________ functions return values indicating an object's proximity to another object.

(Short Answer)
5.0/5
(37)

The ___________________ function is used to input a Boolean value from the user.

(Short Answer)
4.7/5
(38)

Which of the following belongs to a specific method?

(Multiple Choice)
4.7/5
(40)

Each object in an Alice world has a set of primitive functions.

(True/False)
4.9/5
(39)

A function is not considered to be a method.

(True/False)
4.8/5
(38)

A(n) ___________________ variable can hold one of two values: true or false.

(Short Answer)
4.9/5
(44)

Which category of primitive functions returns values indicating an object's distance or nearness to another object?

(Multiple Choice)
4.8/5
(34)

A parameter is a storage location that is represented by a name.

(True/False)
4.9/5
(33)
Showing 1 - 20 of 46
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)