Filters
Question type

Study Flashcards

What symbol is used to mark the beginning and end of a string?


A) a slash (/)
B) an asterisk (*)
C) a quote mark (")
D) a comma (,)

Correct Answer

verifed

verified

What is the output of the following print statement? Print 'I\'m ready to begin'


A) Im ready to begin
B) I\'m ready to begin
C) I'm ready to begin
D) 'I\'m ready to begin'

Correct Answer

verifed

verified

To use Python's turtle graphics,you must include which of the following statements in your program?


A) import turtle_module
B) import turtle_graphics
C) import turtle
D) import Turtle

Correct Answer

verifed

verified

The __________ function reads a piece of data that has been entered at the keyboard and returns that piece of data,as a string,back to the program.


A) input()
B) output()
C) eval_input()
D) str_input()

Correct Answer

verifed

verified

Python allows programmers to break a statement into multiple lines.

Correct Answer

verifed

verified

The __________ specifier is a special set of characters that specify how a value should be formatted.

Correct Answer

verifed

verified

What is the informal language,used by programmers use to create models of programs,that has no syntax rules and is not meant to be compiled or executed?


A) flowchart
B) algorithm
C) source code
D) pseudocode

Correct Answer

verifed

verified

After the execution of the following statement,the variable sold will reference the numeric literal value as (n) __________ data type. Sold = 256.752


A) int
B) float
C) str
D) currency

Correct Answer

verifed

verified

Since a named constant is just a variable,it can change any time during a program's execution.

Correct Answer

verifed

verified

When using the camelCase naming convention,the first word of the variable name is written in lowercase and the first characters of all subsequent words are written in uppercase.

Correct Answer

verifed

verified

According to the behavior of integer division,when an integer is divided by an integer,the result will be a float.

Correct Answer

verifed

verified

The Python turtle is initially positioned in the __________ of a graphics window and it first appears,by default,to be heading __________.


A) center, up
B) top left corner, east
C) bottom left corner, down
D) center, east

Correct Answer

verifed

verified

A(n)__________ character is a special character that is preceded with a backslash (\),appearing inside a string literal.

Correct Answer

verifed

verified

When applying the .3f formatting specifier to the number 76.15854,the result is __________.

Correct Answer

verifed

verified

In Python,print statements written on separate lines do not necessarily output on separate lines.

Correct Answer

verifed

verified

Python formats all floating-point numbers to two decimal places when outputting with the print statement.

Correct Answer

verifed

verified

The __________ built-in function is used to read a number that has been typed on the keyboard.


A) input()
B) read()
C) get()
D) keyboard()

Correct Answer

verifed

verified

___________ are notes of explanation that document lines or sections of a program.

Correct Answer

verifed

verified

A __________ is a name that represents a value the cannot be changed during a program's execution.

Correct Answer

verifed

verified

When the + operator is used with two strings,it performs string __________.

Correct Answer

verifed

verified

Showing 21 - 40 of 40

Related Exams

Show Answer