Exam 6: Image Processing: Nested for Loops, Functions As Parameters, Namespaces, Lists of Lists

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

When a function is invoked, a new namespace known as the function namespace is created corresponding to the function itself.

(True/False)
4.8/5
(27)

Resolution is typically expressed as a number of:

(Multiple Choice)
4.9/5
(36)

Case Study 1: >>> p = Pixel(200, 100, 150) >>> p (200, 100, 150) >>> p.getRed() 1. ?????? >>> p.setBlue(20) >>> p 2. ?????? >>> -Refer to the session in the accompanying Case Study 1. What is printed on line 1?

(Multiple Choice)
4.7/5
(39)

Which of the following is a grayscale color?

(Multiple Choice)
4.8/5
(35)

What image object is used to create an image from a file?

(Multiple Choice)
4.9/5
(37)

Match each definition with its term. -Created within a function.

(Multiple Choice)
4.8/5
(35)

How can you discover the names of the objects in the built-in namespace?

(Essay)
4.7/5
(31)

Explain how to create a negative image at the pixel level.

(Essay)
4.8/5
(44)

In Python, all the names defined in a program, whether for data or for functions, are organized into namespaces.

(True/False)
4.8/5
(38)

Case Study 2: >>> def squareIt(n): return n * n >>> squareIt(3) 9 >>> squareIt(squareIt(3)) 1. ?????? >>> squareIt <function squareIt at 0x0000022740D68E18> >>> z = squareIt >>> z(3) 9 >>> z 2. ?????? -Refer to the session in the accompanying case study. What is printed on line 2?

(Multiple Choice)
4.8/5
(33)

Explain how the different Python namespaces are organized with respect to one another.

(Essay)
4.8/5
(33)

What module contains objects that allow us to construct and manipulate pixels?

(Multiple Choice)
4.9/5
(36)

What statement constructs a window that is 600 pixels wide and 400 pixels high?

(Multiple Choice)
4.7/5
(42)
Showing 21 - 33 of 33
close modal

Filters

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