Answered You can buy a ready-made answer or pick a professional tutor to order an original one.

QUESTION

A data type in which the values are made up of components, or elements, that are themselves values is known as an object data type.Select one:TrueFalseQuestion 2Not yet answeredMarked out of 1.00Flag

A data type in which the values are made up of components, or elements, that are themselves values is known as an object data type.

Select one:

True

False

Question 2

Not yet answered

Marked out of 1.00

Flag question

Question text

Given any real numbers a and b, exactly one of the following relations holds: a < b, a > b, or a = b. Thus when you can establish that two of the relations are false, you can assume the remaining one is true.

This principle is known as:

Select one:

a. trichotomy

b. abstraction

c. the distributive property

d. the transitive property

Question 3

Not yet answered

Marked out of 1.00

Flag question

Question text

Given the following code what will the output be?

def find(strng, ch):index = 0while index < len(strng):if strng[index] == ch:return indexindex += 1return -1

print (find("the doctor is in", '*'))

Select one:

a. -1

b. 0

c. 12

d. 13

Question 4

Not yet answered

Marked out of 1.00

Flag question

Question text

Given the following code, what will the output be?

import string

index = "Ability is a poor man's wealth".find("w")print(index)

Select one:

a. 24

b. 0

c. 23

d. -1

Question 5

Not yet answered

Marked out of 1.00

Flag question

Question text

: A parameter written in a function header with an assignment to a default value which it will receive if no corresponding argument is given for it in the function call is called an optional parameter.

Select one:

True

False

Question 6

Not yet answered

Marked out of 1.00

Flag question

Question text

What output will the following code produce?

print ("%s %d %f" % (5, 5, 5))

Select one:

a. 5 5 5.000000

b. 5 5 5

c. 5 5.000000

d. 0 5 5.0

Question 7

Not yet answered

Marked out of 1.00

Flag question

Question text

: To create a new object that has the same value as an existing object is know as creating an alias.

Select one:

True

False

Question 8

Not yet answered

Marked out of 1.00

Flag question

Question text

What output will the following code produce?

mylist = [ [2,4,1], [1,2,3], [2,3,5] ]a=0b=0total = 0while a <= 2:while b < 2:total += mylist[a][b]b += 1a += 1b = 0  print (total)

Select one:

a. 14

b. 23

c. 0

d. 13

Question 9

Not yet answered

Marked out of 1.00

Flag question

Question text

: The following code:

for fruit in ["banana", "apple", "quince"]:print (fruit)  will produce the following output:

banana apple quince

Select one:

True

False

Question 10

Not yet answered

Marked out of 1.00

Flag question

Question text

Given the following code, what will the output be?

mylist = ["now", "four", "is", "score", "the", "and seven", "time", "years", "for"]a=0while a < 7:print (mylist[a],)a += 2

Select one:

a. now is the time

b. now is the time for

c. for score and seven years

d. now four is score the and seven time years for

Question 11

Not yet answered

Marked out of 1.00

Flag question

Question text

The output of the following code will be:

fruit = "banana"letter = fruit[1]print (letter)

Select one:

a. b

b. a

c. n

d. banana

Question 12

Not yet answered

Marked out of 1.00

Flag question

Question text

A variable that has a data type of "str" cannot be a compound data type.

Select one:

True

False

Question 13

Not yet answered

Marked out of 1.00

Flag question

Question text

Traversal can only be accomplished with the "while" loop.

Select one:

True

False

Question 14

Not yet answered

Marked out of 1.00

Flag question

Question text

Strings are easily changed with string slices.

Select one:

True

False

Question 15

Not yet answered

Marked out of 1.00

Flag question

Question text

The elements of a list are immutable.

Select one:

True

False

Show more
profjossey
profjossey
  • @
  • 11 orders completed
ANSWER

Tutor has posted answer for $10.00. See answer's preview

$10.00

* ****** **** **** ** which ************ made ** ************ ********** **** are ************************* ** Collection **** type2 * ********** * ***** ***** **** returns *** ***** ** *** character **** ** ****** ** ****** parameter ** ****** passed as first ********* ** ** ** *** ***** ***** ******* through entire array it **** ****** *** * ***** above **** ******* the index of ********* passed ** *** function ** *** ******* * ***** a * 5 ************ string ******* and ****** * FalseMultiple ********* ********** ********* ** ******************* ******* ***** as to ****** * newobjecthaving **** ***** asexistingobjectisknownas ******* 14In *** ***** ******* ****** is * 2-dimensional ********* a iterates through **** *** * ******** ******* columns *** b runs **** **** * since ***** ******** the ***** ** *** sum ** first * ******* ** each ******** * mylist[0][0]+mylist[0][1]+mylist[1][0]+mylist[1][1]+mylist[2][0]+mylist[2][1] ************ * 149 * ******** ****** ******** ***** ********** ******* ** ******* ** a *** ****** * *** is *** ****** ** **** **** the value of * is *********** by * *********** * will ** ******* strings ** those ********* are printed\11 ****** * *** **** ******* ***** from *** ***** ** index * ** * ** * ** ********* a ******* ***** ***** are ********* ** ******* ***** areknownas ******** **** types13 a True14 * ****** * *************** the **** are ******* **** can ** *******

or Buy custom answer
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question