Computing Logic M01

¡Supera tus tareas y exámenes ahora con Quizwiz!

What is the value of the following expression: (36 % 4) + (12 / (3 * 2) ) ?

2

What is the value of the following expression: 22 % 5?

2

What is the value of the variable PayDay after the following statements have been executed: Set Hours = 5 Set PayDay = 30 Set PayDay = Hours * 6

30

What is the value of the following expression: 40 / 4 + 6 * 4 - 2 ?

32

Which of the following is not an integer?

8.0

Which of the following statements is not true?

A Boolean variable can hold any integer value.

A Boolean variable can have which of the following values:

Any of these are possible values for a Boolean variable

In the statement Set Temperature = 32 , the value of 32 has been __________ to the variable Temperature.

Assigned

A __________ variable can only have one of two possible values—true or false.

Boolean

What are the variables in the following program segment? Write "How many candy bars do you want to buy?" Input CandyBars Set Price = 2 Set Cost = CandyBars * Price Write "You need to pay" + Cost

CandyBars, Price, and Cost are the variables

A sequence of characters is a(n) __________ __________

Character string

Many programming languages include a string operation called __________.

Concatenation

Which of the following would you use to store a telephone number?

Declare PhoneNumber As String

The statement Declare FreezingPoint As Float will declare a variable named________ as a(n)______ type.

FreezingPoint Float

If String1 = "Ice" and String2 = "cream" , then the statement Set Yummy = String1 + String2 will result in Yummy having the value of __________.

Icecream

When a variable is first assigned a value, it is said to be __________.

Initialized

The operation in a computer program that transmits data from an outside source to the program is:

Input

CandyBars, Price, and Cost are the variables

Irrational

The __________ operator returns the remainder after dividing one number by another.

Modulus

Complete the following statement to declare an integer variable named Money: Declare ________

Money as Integer

Which of the following is not an acceptable variable name?

My Friend

Data sent by a program to the screen, a printer, or a file is __________.

Output

A way to develop a program before actually writing the code in a specific programming language is to use a general form, written in natural English, called __________.

Pseudocode

What is the output of the following statements, given that the variable Num1 = 3 and the variable Num2 = 5? Write "The sum of" + Num1 + "and" + Num2 + "is 8."

The sum of3and5is 8.

In the statement Set Number = 93 , Number is a(n) __________.

Variable

Which is the first step in the program development cycle?

analyze the problem


Conjuntos de estudio relacionados

Fair Credit Reporting Act (FCRA)/Fair and Accurate Credit Transactions Act (FACTA)

View Set

TMS NTI (New Testament Introduction) Dr. Osborne Final Exam

View Set

AZ-900 Practice Exam Revamped Lets see if this works

View Set

9th Grade Honors Biology Unit 1 Characteristics of life

View Set

Google Analytics Academy: Beginners - Assessment 2

View Set