Intro to Coding - Writing and Testing Code UNIT REVIEW

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

What process is used to convert numbers between the binary system and the decimal system? Enter the number in a calculator, divide by 2, and multiply by 10. Convert each binary number to a letter, then use the letter's place in the alphabet as the decimal representation ( e.g., A = 1, B = 2). Add up the digits in the binary number and place the sum behind a decimal point. Look up the number on a binary-to-decimal conversion table.

4. Look up the number on a binary-to-decimal conversion table.

Why is it important to use correct syntax? to demonstrate a sophisticated programming style to demonstrate a flexible programming style to ensure that programs will work on any computer platform to ensure that programs run properly and return expected results

4. to ensure that programs run properly and return expected results

A Python programmer is writing a function definition. What syntax should be used? def( statement ): functionNameargument1argument2argument3 def functionName( arguments ):statement1statement2statement3 def functionName( statement ):argument1argument2argument3 def( arguments ): functionNamestatement1statement2statement3

B or second option

Which is a conditional statement? If it is sunny, we can play ball. It is sunny today. It is sunny or rainy. It is sunny across the street, but not sunny here.

1. If it is sunny, we can play ball.

"Jan23" can be stored using which data type? an alphanumeric string a boolean operator characters floating point numbers

1. an alphanumeric string

What would a programmer expect to find at an online help site hosted by a software company that develops a programming language? answers to frequently asked questions about using the programming language answers to frequently asked questions about programming as a career choice help using web browsers to surf websites that host technical news help using websites that connect recruiters to technical professionals

1. answers to frequently asked questions about using the programming language

A variable that can be modified from anywhere within a program is called a global variable. local variable. specific variable. general variable.

1. global variable

In a student scheduling program, a variable HasFreePeriod is set as True or False. This variable is an example of an abstract data type. a user defined type. an array. a scalar.

2. a user defined type

Which iteration must have an expression that has a true or false value? a for loop a while loop a last variable loop a break loop

2. a while loop

Mikhail is working in an IDE and needs to test a program one step at a time to find and fix errors. What tool should he use? a compiler a source code editor a debugger a build automation tool

3. a debugger

What is the name of a coding sequence that is executed multiple times in a program? a break a pass a loop a suite

3. a loop

Which data representation system utilizes both letters and numbers? binary decimal hexadecimal octal

3. hexadecimal

A program contains the following statements: x = grade If x >_ 90 : print ("You are an A student!") What action will the program take when 89? print "You are an A student!" print "grade = 89" print nothing print "You are a B student!"

3. print nothing

A function is different from a procedure because a function does not contain a set of instructions. can have only a limited number of steps. returns a value. is mathematical.

3. returns a value


संबंधित स्टडी सेट्स

ECO 112 Introductory Microeconomics Quiz 2 Chapters 6, 10

View Set

Religion Exam 1 practice questions Chapter 1

View Set

AH1: Ch24 Mgmt of Pt c Chronic Pulmonary Disease

View Set

CMST210 - Exam One (Chapter Seven)

View Set

OCD, Body dysmorphic disorder and hoarding disorder

View Set

Nutritional Aspects of Health: Ch. 14 Homework

View Set