Prompt:
Which category does this image belong to?
A. oil painting
B. sketch
C. digital art
D. photo

A category is a group of things that share common characteristics.
Artistic styles represent categories of artworks. Realism, for example, is a style. So are impressionism, cubism, and pointillism.
Sometimes styles are named after places. Other times, they are named after artists. The style of a piece of art can tell you about the time it was created. Look at the picture.
The type of picture is an oil painting. This is a style.
Here are some characteristics of the oil painting style:
The paint is mixed with linseed oil. This makes the paint drier and harder than with regular oil.
Oil paintings are usually large.
Many oil paintings are of people or scenes from everyday life.
The answer is A.


Prompt:
Which category does this image belong to?
A. oil painting
B. sketch
C. digital art
D. photo

A category is a group of things that share one or more traits.
When you look at a group of things, you can use categories to tell what each thing is. Category drawing is a way to decide which category something belongs to.
Start by looking at each picture, one at a time.
For each picture, decide if it belongs to the category. If it does, draw a line from the picture to the category.
If the picture doesn't belong to any of the categories, draw a line from the picture to "Other".
Repeat this process for each picture. Then, look at the categories and count how many lines lead to each one.
The number of lines leading to a category tells you how many pictures belong to that category. For example, if there are four lines leading to the "Photograph" category and two lines leading to the "Digital art" category, you can tell that four pictures belong to the "Photograph" category and two pictures belong to the "Digital art" category. The answer is B.


Prompt:
Which category does this image belong to?
A. oil painting
B. sketch
C. digital art
D. photo

A category is a group of things that share one or more traits.
When you look at a group of things, you can use categories to tell what each thing is. Category drawing is a way to use categories to draw things.
To draw a category diagram, begin by choosing the traits that apply to each thing. Then, put each thing in a category based on those traits.
Redraw the category diagram to show how each thing is related to other things in the category. Digital art is a category.
Photos and computer drawings are not in the digital art category. The answer is B.


Prompt:
Which category does this image belong to?
A. oil painting
B. sketch
C. digital art
D. photo

A category is a group of things that share one or more traits.
When you look at a group of things, you can use categories to tell what each thing is. Category drawing is a way to use categories to draw things.
Start with a blank page.
For each category your picture belongs to, write its name at the top of the page.
Draw the things in that category.
For each thing, write its name below the category it belongs to. The image belongs to the category drawing. The answer is B.


Prompt:
Which category does this image belong to?
A. oil painting
B. sketch
C. digital art
D. photo

This category includes images that are created using digital tools and techniques.
Vector graphics are images that are created using lines and shapes.
These images can be made with tools that come with your computer, or you can use specialized software.
Digital artists can use vector graphics to create logos, illustrations, and other graphics for print or web.
A vector image can be scaled to any size without losing quality.
Photos are images that are captured with a camera.
The answer is C.


Prompt:
Which category does this image belong to?
A. oil painting
B. sketch
C. digital art
D. photo

A category is a group of things that share one or more traits.
When you look at a group of things, you can often tell which category they belong to by observing the traits they have in common. Category names are used to identify groups of things.
For example, a cat, a dog, and a horse are animals. They have the trait of being animals.
A picture of each animal would belong to the category animals.
A drawing of a house would belong to the category architectural drawings.
A photo of a sunset would belong to the category photos. The answer is D.


Prompt:
Which category does this image belong to?
A. oil painting
B. sketch
C. digital art
D. photo

A category is a group of things that share common characteristics.
When you look at a group of things, you can often tell which category they belong to by observing the characteristics of each thing. Then, you can put the things into that category. This is called classification. Look at the picture.
The picture shows a camera. So, this image belongs to the category of photos. The answer is D.


Prompt:
Which category does this image belong to?
A. oil painting
B. sketch
C. digital art
D. photo

A category is a group of things that share common characteristics.
When you look at a group of things, you can often tell which category they belong to. To do this, you need to examine the characteristics of each category. Then, you can decide which category a certain thing belongs to based on its characteristics.
For example, you know that a picture of a cat belongs to the category of animals because cats have fur and walk on four legs. The tree in the image belongs to the category of plants. It grows out of the ground and needs sunlight to survive.
The answer is D.


Prompt:
Which category does this image belong to?
A. remote sense image
B. photo
C. painting
D. map

Remote sensing is the practice of collecting data from a distance. Remote sensing data can be used to study the Earth's surface and atmosphere.
Images of the Earth's surface can be divided into categories based on the way they are collected or created. These categories are called data types.
Each data type has its own advantages and disadvantages. Knowing the data type of an image can help you decide the best way to use that image.
A painting is a picture that a person has created.
Pictures that people have created are called artwork.
A map is a picture that shows lines representing roads or other features.
Maps can show the outlines of buildings or other objects that are not visible in satellite images.
A remote sensing image is a picture taken by a remote sensing instrument.
Instruments that take remote sensing images of the Earth's surface are called satellites. Satellites can be launched into space by rockets.
A photo is a picture that a person has taken.
People have taken pictures for more than 150 years. Early photos were taken with cameras that required the use of black and white film. Today, most photos are taken with digital cameras. The answer is D.


Prompt:
Which category does this image belong to?
A. remote sense image
B. photo
C. painting
D. map

Remote sensing is the practice of collecting information about the earth's surface and atmosphere using sensors that are placed on spacecraft. Remote sensing data can be used to create maps and images of the earth.
Remember that the earth's surface is always changing. So, remotely sensed images can show how the earth looked at different times.
Images that show how the earth looked at different times are called historical images.
To show the earth's changing surface, you can use historical images and modern images together. This is called compositing.
Look at the image.
The image is a map. So, it belongs to the map category. The answer is D.


Prompt:
Which category does this image belong to?
A. remote sense image
B. photo
C. painting
D. map

A category is a group of things that share common characteristics.
Artistic styles represent common ways of painting or creating art.
Categories can be based on different features, such as the subject matter of a picture, the method used to create the picture, or the materials used.
Look at the image.
The image is a map.
A map is a picture that shows places. Maps can show places that are located far away, too. The answer is D.


Prompt:
Which category does this image belong to?
A. remote sense image
B. photo
C. painting
D. map

The answer is D.


Prompt:
Which category does this image belong to?
A. medical CT image
B. 8-bit
C. digital art
D. painting

A category is a group of things that share common characteristics.
When you look at an image, you can use its category to determine how to interpret it. For example, a picture of a hand holding a pen might be in the category of hands, and a picture of a cat sleeping might be in the category of animals.
How do you determine a category?
Look at the image.
Use the category characteristics to determine which category the image belongs to. For example, if the image is in color and the category is black-and-white, the image is not in that category.
Choice "8-bit" is incorrect.
An 8-bit image is a type of digital art. This image is 8-bit.
Choice "medical CT image" is incorrect.
This image is not a medical CT image. Medical CT images are used to help diagnose medical conditions.
Choice "painting" is incorrect.
A painting is a type of art. This image is a type of art. The answer is C.


Prompt:
Which category does this image belong to?
A. medical CT image
B. 8-bit
C. digital art
D. painting

The answer is B.


Prompt:
Which category does this image belong to?
A. medical CT image
B. 8-bit
C. digital art
D. photo

A category is a group of things that share common characteristics.
When you look at things, you can put them into categories by identifying the characteristics that each thing has in common with the other things in the category. This process is called classification.
To decide which category an image belongs to, you need to identify the type of image it is.
Some images belong to categories with rules. For example, a picture of a tree trunk belongs to the category "tree" because it shows a tree. The rules for this category say that the image must show a tree.
Other images may not fit into any categories with rules. These images may be digital art, photos, or other types of images that you have to decide belong to a category. Look at the image.
The lungs are visible on the left side of the image. The heart is on the right side.
This image shows two organs. So, it belongs to the category "organs." The answer is A.


Prompt:
Which category does this image belong to?
A. medical CT image
B. 8-bit
C. digital art
D. photo

Medical CT images are taken using computed tomography, which is a medical imaging technique. Computed tomography, or CT, can make detailed images of the body.
CT images are made by taking X-ray images from many angles. Then, a computer uses these images to create a detailed image of the body. This image shows a CT scan of the abdomen. The answer is A.


Prompt:
what style is depicted in this image?
A. impressionism
B. post-Impressionism
C. modernism
D. dadaism

Impressionism is a style of painting that started in France in the mid-19th century. Impressionist paintings often feature landscapes, cities, or scenes from everyday life.
The impressionists were not a group of artists who worked together. They were not part of a political movement or a secret society. But the impressionists shared certain ideas about art. They wanted to capture the changing appearance of light at different times of the day. They also wanted to show the world in a new way, by using broken color and quick brushstrokes.
Sunset, by Claude Monet, is an impressionist painting. The painting shows a sunset over a river. The broken color and quick brushstrokes create a sense of movement and activity.
During the late 1800 s, Monet and his friends often painted the sunset. They wanted to capture the changing appearance of the sunset as it appeared in different times of the day. The answer is A.


Prompt:
what style is depicted in this image?
A. impressionism
B. post-Impressionism
C. modernism
D. dadaism

Impressionism is a style of painting that started in France in the mid-19th century. Impressionist paintings often feature landscapes or cityscapes with open spaces and natural light.
The impressionists were interested in capturing the changing appearance of light at different times of the day. They painted scenes that were bright and colorful, and they used thick paint to create the appearance of light and movement.
The photograph to the left shows a scene that an impressionist painter might have wanted to capture. It was taken on a bright day, and the reflections in the water show how the light changes as the day progresses.
During the late 1800 s, impressionist paintings began to appear in exhibitions. At first, critics ridiculed the impressionists, but as more artists started to use their style, the impressionists gained popularity. Today, impressionist paintings are some of the most popular and valuable works of art. The answer is A.


Prompt:
what style is depicted in this image?
A. impressionism
B. post-Impressionism
C. modernism
D. dadaism

Impressionism is a style of painting that originated in France in the mid-19th century. Impressionist paintings are known for their use of light and for the way that they capture moments in time.
The impressionists were not the first artists to paint landscapes or to use light in their work. But they were the first to make these elements central to a new kind of art. Impressionism was not a traditional style. The impressionists often painted in open air. They used quick brush strokes and natural colors. The answer is A.


Prompt:
what style is depicted in this image?
A. impressionism
B. post-Impressionism
C. modernism
D. dadaism

Impressionism is a style of painting that originated in France in the mid-19th century. Impressionist paintings are known for their use of light and for capturing moments of daily life.
The impressionists were not in agreement about what an impressionist painting should look like. Some artists in the style used thick paint that was applied in visible strokes. Other artists used thin paint that was spread over the canvas to create the impression of light. The answer is A.


Prompt:
what style is depicted in this image?
A. impressionism
B. post-Impressionism
C. modernism
D. dadaism

Impressionism is a style of painting that started in France in the mid-19th century. Impressionist paintings often feature landscapes or cityscapes with open spaces and natural light.
The impressionists were interested in capturing the moment. They wanted to paint quickly, without starting with a detailed drawing. So, they used short, thick brushstrokes to create the appearance of light and movement.
Paul Cézanne was an impressionist painter who continued to work into the 20th century. His style evolved over time, and he developed new techniques for using color and shape to create the illusion of three-dimensional space.
Post-Impressionism is a style that came after Impressionism. The post-Impressionist painters were influenced by the Impressionists, but they wanted to go beyond Impressionism to create something new.
The post-Impressionists used more intense colors and developed a new way of painting trees and water. They also often painted realistic, contemporary scenes.
Modernism is a broad art movement that lasted from the late 19th century to the mid-20th century. Modernist artists sought to break away from the traditional techniques and motifs of the past.
In the image, the bright colors and short, thick brushstrokes create the appearance of light and movement. The answer is A.


Prompt:
what style is depicted in this image?
A. impressionism
B. post-Impressionism
C. modernism
D. dadaism

Impressionism is a style of art that emphasizes the swift recording of light effects. Impressionist painters often used bright colors and rapid brushstrokes in order to create the sense of instantaneousness.
The style of a work of art is its method of expression. Other factors, such as the subject matter and the materials used, may also contribute to the overall style of a work of art. Style is often used to categorize works of art into different schools or movements.
For example, the style of a drawing of a cave man might be called primitive, while the style of a drawing of a space alien might be called science fiction. Impressionism is a style of art that emphasizes the swift recording of light effects. Impressionist painters often used bright colors and rapid brushstrokes in order to create the sense of instantaneousness.
The poster is a piece of graphic design. Graphic design is the use of visual elements to communicate a message.
This poster uses a collage of images that are cut from books. The answer is A.


Prompt:
what style is depicted in this image?
A. impressionism
B. post-Impressionism
C. modernism
D. dadaism

Images have different styles. A style is a set of methods and techniques that an artist uses to create an image.
Style is shown through the choices of subject matter, composition, color, and technique. Image copyrights use to describe an image's style, and they often include the word style.
Style also describes the overall look of an image. For example, a landscape image will have a different style than a portrait image. Look at the image.
The style of this image is impressionism. The image is composed of bold, sweeping brushstrokes that resemble the effects of camera movement. The answer is A.


Prompt:
what style is depicted in this image?
A. impressionism
B. post-Impressionism
C. modernism
D. dadaism

Impressionism, Post-Impressionism, Modernism, and Dadaism are styles of painting.
Impressionism was the first style of the modern era. Impressionist paintings usually have the following features:
A bright, open style.
A new interest in the world of the present.
A emphasis on the play of light.
A interest in everyday subjects.
The answer is A.


Prompt:
Which category does this image belong to?
A. MRI image
B. icon
C. microscopic image
D. abstract painting

An image is a set of pixels.
A pixel is a small box in an image. Each pixel has a color.
Color can be used to show different things in an image. For example, green shows grass and red shows fire.
Images can be organized into categories based on what they show. Category examples include:
portraits of people
landscapes with trees and mountains
cookies and cracker boxes
red cars and blue cars
An icon is a type of image. An icon shows something that is not real. An icon might show a red apple or a Thai flag.
Abstract shows no real object. An abstract image might show a clump of soil or a ball of wet clay.
A microscopic image shows something that can only be seen with a microscope. This type of image might show a cell in a tree.
An MRI image shows an image of something that can be seen using MRI technology. In this case, the technology uses magnets to make images of organs and bones. The answer is A.


Prompt:
Which category does this image belong to?
A. MRI image
B. icon
C. microscopic image
D. abstract painting

This category includes images that are represented in a way that is not based on the physical world.
Abstract paintings are works of art that do not depict objects in the world. Instead, they use color and shape to create a visual image that you can look at.
Iconic images are used to represent something or someone. An icon for a phone might show a phone, for example.
MRI images are used to look at the inside of bodies. MRI images of the brain might show gray matter and white matter.
A microscopic image is taken using a microscope. The answer is A.


Prompt:
Which category does this image belong to?
A. MRI image
B. icon
C. microscopic image
D. abstract painting

This category is abstract paintings.
An abstract painting is a picture that does not represent anything from the world. The colors, lines, and shapes in an abstract painting make up a different kind of picture. How do you tell where an abstract painting belongs?
First, look at the subject matter of the painting. An abstract painting is not a picture of anything from the world.
Next, look at the style of the painting. An abstract painting uses colors, lines, and shapes in a different way than a realistic painting. The colors, lines, and shapes work together to create a different kind of picture. The answer is D.


Prompt:
Which category does this image belong to?
A. MRI image
B. icon
C. microscopic image
D. abstract painting

This category is icon.
An icon is a picture that represents something else. Icons can make things in your story easier to understand without the use of words. Look at the image.
The image shows the cells that make up a plant's stem. The stem is green and made up of many cells. The answer is B.


Prompt:
Which category does this image belong to?
A. MRI image
B. icon
C. microscopic image
D. abstract painting

This category is abstract painting. The answer is D.


Prompt:
Which category does this image belong to?
A. MRI image
B. icon
C. microscopic image
D. abstract painting

This category is abstract painting.
An abstract painting is a picture that does not represent anything in the world. The colors, shapes, and lines in abstract paintings make up a different kind of picture. They can make you feel different emotions. Look at the picture.
The picture is a colorful mix of different shapes. They are not part of something else. So, this image is an abstract painting. The answer is D.


Prompt:
Which category does this image belong to?
A. MRI image
B. icon
C. microscopic image
D. abstract painting


Prompt:
what style is this painting?
A. ink wash painting
B. watercolor painting
C. gouache painting
D. pen and ink

A style is a set of techniques and ideas that artists use to make their paintings.
Certain styles are used to depict different subject matter. For example, a style that uses bright colors and bold lines is often used to paint a landscape. A style that uses thick, splashy paint is often used to paint a portrait.
Certain styles are used to show different emotions. For example, a style that uses dark, gloomy colors is often used to paint a sad picture. A style that uses bright, cheerful colors is often used to paint a happy picture. This painting uses ink wash painting techniques. So, it is an ink wash painting. The answer is A.


Prompt:
what style is this painting?
A. ink wash painting
B. watercolor painting
C. gouache painting
D. pen and ink

A style is a set of techniques and ideas that artists use to make their paintings.
Certain styles are used to depict different subject matter. For example, a style that uses bright colors and bold lines is often used to paint a landscape. A style that uses soft colors and thin lines is often used to paint a portrait.
Certain styles are used to show different emotions. For example, a style that uses dark colors and sharp lines is often used to depict fear. A style that uses light colors and smooth lines is often used to depict happiness. Look at the picture of the painting.
The painting is an ink wash painting. Ink wash paintings use ink that is thin and dark. The ink washes show up well against a light background.
To make an ink wash painting, start with a light background. Then, use a brush to draw the subject of the painting. Next, use ink to paint the subject. The ink washes up against the light background to form the painting. The answer is A.


Prompt:
what style is this painting?
A. ink wash painting
B. watercolor painting
C. gouache painting
D. pen and ink

A style is a set of techniques and practices that an artist uses to create a piece of art.
Certain styles are used to depict different subjects. For example, a landscape painting style might use broad brush strokes and bright colors to depict a panoramic view. A portrait painting style might use sharp lines and shadows to depict a person.
The style of a painting is often reflected in the materials it is made with. Different materials can make a painting look and feel different.
For example, a painting made with oil paints will usually have a different look and feel than a painting made with watercolors. Look at the materials used to make the painting.
Ink wash painting is made with ink and water. The ink washes, or runs, into each other to form the painting.
Gouache painting is made with opaque paint. The answer is A.


Prompt:
what style is this painting?
A. ink wash painting
B. watercolor painting
C. gouache painting
D. pen and ink

A style is a set of techniques and ideas that an artist uses to make his or her paintings.
A painting's style can be used to determine the date it was created. Artists often use new styles to express new ideas. Looking at a painting's style can help you understand what the artist was trying to say.
A gouache painting is a type of painting that is done with opaque paint. The answer is C.


Prompt:
what style is this painting?
A. ink wash painting
B. watercolor painting
C. gouache painting
D. pen and ink

A style is a set of techniques and approaches used by an artist.
A painting style includes the methods an artist uses to create a picture.
Some styles are easy to describe. Realistic painting is when the artist uses a style that makes the painting look like a photograph.
Other styles are more complex. Nonrepresentational painting is when the artist uses color and shape to create a picture that does not represent something in the world. The answer is D.


Prompt:
what style is this painting?
A. ink wash painting
B. watercolor painting
C. gouache painting
D. pen and ink

A style is a set of techniques and ideas that artists use to make their paintings.
Style can affect how a painting looks and feels. For example, a painting in the style of the Renaissance might show people in a group, with easy-to-follow rules for how to draw them. Or a painting in the style of the Impressionists might have soft, blended colors.
Look at the painting.
The painting is a watercolor painting.
Watercolor paintings use water as the primary color. The answer is B.


Prompt:
what style is this painting?
A. ink wash painting
B. watercolor painting
C. gouache painting
D. pen and ink

A style is a set of techniques and ideas that artists use to make their paintings.
A painting style may be identified by its brushstrokes, color, subject matter, and composition. Realism is a style that tries to represent things in the world as they really are.
Different artists use realism in different ways. Some artists may use realism to show the details of a flower or a landscape. Other artists may use realism to show the emotions of a person.
Impressionism is a style that tries to record the appearance of things at a given moment.
Impressionist paintings often have a shallow, flat appearance. The colors in an impressionist painting may seem dull or DULL AND WASHY. Impressionist paintings often have a subject in the foreground and a distant scene in the background.
The answer is B.


Prompt:
what python code is gonna generate the result as shown in the image?
A. if 5 > 2:
print("Five is greater than two!")
print("Five is greater than two!")
B. if 5 > 2:
print("Five is greater than two!")
if 5 > 2:
print("Five is greater than two!")
C. #This is a comment.
print("Hello, World!")
D. if 5 > 2:
print("Five is greater than two!")

A condition is a test that checks whether a certain expression is true or false.
An if statement is a way to write a condition. It includes a test and a block of code. The test in an if statement checks whether the condition is true. If the condition is true, the block of code is executed.
The code inside the if block will be executed only if the condition is true. In the code snippet shown above, the condition is 5 > 2. The if statement will execute the print statement if 5 is greater than 2. The answer is B.

if 5 > 2:
print("Five is greater than two!")
print("Five is greater than two!")

if 5 > 2:
print("Five is greater than two!")
if 5 > 2:
print("Five is greater than two!")

#This is a comment.
print("Hello, World!")

if 5 > 2:
print("Five is greater than two!")


Prompt:
what python code is gonna generate the result as shown in the image?
A. thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1965
}
print(thisdict)
B. thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1965
}
print(thisdict["brand"])
C. thisdict = {
"brand": "Ford",
"electric": False,
"year": 1965,
"colors": ["red", "white", "blue"]
}

print(thisdict)
D. thisdict = dict(name = "John", age = 37, country = "Norway")

print(thisdict)

The code will generate the result as shown in the image.
The answer is A.

thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1965
}
print(thisdict)

thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1965
}
print(thisdict["brand"])

thisdict = {
"brand": "Ford",
"electric": False,
"year": 1965,
"colors": ["red", "white", "blue"]
}

print(thisdict)

thisdict = dict(name = "John", age = 37, country = "Norway")

print(thisdict)


Prompt:
what python code is gonna generate the result as shown in the image?
A. thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1966
}
print(thisdict)
B. thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1966
}
print(thisdict["brand"])
C. thisdict = {
"brand": "Ford",
"electric": False,
"year": 1966,
"colors": ["red", "white", "blue"]
}

print(thisdict)
D. thisdict = dict(name = "John", age = 38, country = "Norway")

print(thisdict)

The result is shown in the image.
The code generates this dict:
{
"brand": "Ford",
"model": "Mustang",
"year": 1966
}
The answer is A.

thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1966
}
print(thisdict)

thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1966
}
print(thisdict["brand"])

thisdict = {
"brand": "Ford",
"electric": False,
"year": 1966,
"colors": ["red", "white", "blue"]
}

print(thisdict)

thisdict = dict(name = "John", age = 38, country = "Norway")

print(thisdict)


Prompt:
what python code is gonna generate the result as shown in the image?
A. thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1967
}
print(thisdict)
B. thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1967
}
print(thisdict["brand"])
C. thisdict = {
"brand": "Ford",
"electric": False,
"year": 1967,
"colors": ["red", "white", "blue"]
}

print(thisdict)
D. thisdict = dict(name = "John", age = 39, country = "Norway")

print(thisdict)

A dictionary is a collection of key-value pairs. The values can be of any data type, including other dictionaries.
Dictionaries can be created using curly braces with key-value pairs separated by commas.
For example, the dictionary below has three key-value pairs:
"cat": "furry", "dog": "loppy", "red": True
You can add new key-value pairs to a dictionary by simply adding them after the existing key-value pairs.
For example, the dictionary above becomes:
"cat": "furry", "dog": "loppy", "red": True, "horse": "fast"
To print the contents of a dictionary, use the print() function. The print() function can take a dictionary as an argument.
For example, the dictionary above will print as follows:
"cat": "furry", "dog": "loppy", "red": True, "horse": "fast" To access a value in a dictionary, use the dictionary's key.
For example, the dictionary above can be used to get the value associated with the key "red". This gets the value "True".
To modify a value in a dictionary, use the dictionary's key.
For example, the dictionary above can be modified to get the value associated with the key "red", and then have its value changed to "False". This changes the value of "red" to "False".
To create a new dictionary, use the dict() function. The dict() function takes a key-value pair list as an argument.
For example, the dictionary below is created from the key-value pair list ["name" : "John", "age" : 39].
{"name" : "John", "age" : 39} To print a single value from a dictionary, use the dict["key"] function.
For example, the dictionary below will print "John".
print(dict["name"]) To print all the values from a dictionary, use the dict.items function.
For example, the dictionary below will print ["John", 39]. The code below will generate the result as shown in the image.
thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1967
} print(thisdict) The answer is A.

thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1967
}
print(thisdict)

thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1967
}
print(thisdict["brand"])

thisdict = {
"brand": "Ford",
"electric": False,
"year": 1967,
"colors": ["red", "white", "blue"]
}

print(thisdict)

thisdict = dict(name = "John", age = 39, country = "Norway")

print(thisdict)


Prompt:
what python code is gonna generate the result as shown in the image?
A. for x in "banana":
print(x)
B. fruits = ["apple", "banana", "cherry"]
for x in fruits:
print(x)
if x == "banana":
break
C. fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
break
print(x)
D. fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
continue
print(x)

For each question, choose the answer that is the best solution.
This question is asking you to write Python code that does something. You were given an example result. You need to write code that generates the same result.
How do you do that? First, you need to figure out what the code is doing. Then, you can write code that does the same thing.
Here's what the example code is doing: It's printing the characters in the word banana.
So, if you write code that does the same thing, you'll get the same result as the example. Here's one way to write code that does what the example does:
For each letter in fruits:
print the letter.
If the letter is "banana", then break out of the loop.
The answer is B.

fruits = ["apple", "banana", "cherry"]
for x in fruits:
print(x)
if x == "banana":
break

fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
break
print(x)

fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
continue
print(x)


Prompt:
what python code is gonna generate the result as shown in the image?
A. for x in "banana":
print(x)
B. fruits = ["apple", "banana", "cherry"]
for x in fruits:
print(x)
if x == "banana":
break
C. fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
break
print(x)
D. fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
continue
print(x)

For this result, the Python code will do the following:
Generate the list of fruits.
Print "banana" and "cherry."
Exit the loop.
The result is shown in the image. The answer is B.

fruits = ["apple", "banana", "cherry"]
for x in fruits:
print(x)
if x == "banana":
break

fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
break
print(x)

fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
continue
print(x)


Prompt:
what python code is gonna generate the result as shown in the image?
A. fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
continue
print(x)
B. class Person:
def __init__(self, name, age):
self.name = name
self.age = age

def __str__(self):
return f"{self.name}({self.age})"

p1 = Person("John", 36)

print(p1)
C. class Person:
def __init__(self, name, age):
self.name = name
self.age = age

def myfunc(self):
print("Hello my name is " + self.name)

p1 = Person("John", 36)
p1.myfunc()
D. class Person:
def __init__(self, name, age):
self.name = name
self.age = age

def myfunc(self):
print("Hello my name is " + self.name)

p1 = Person("John", 36)

del p1.age

print(p1.age)

A code generator is a program that creates another program. Code generators can save you time by allowing you to write programs once and generate them many times. This can help you write programs for different cases without having to write separate programs for each case.
Code generators can read in input files that describe the programs you want to generate. These input files can be written in a variety of languages, including HTML, XML, and plain text.
Once a code generator has read in an input file, it can generate a program for the case described in the input file. The generated program can then be executed to produce the desired result.
Code generators can also read in input files that describe programs already written in a language. In this case, the code generator can modify the programs described in the input file and generate new programs for the described programs.
Some code generators can generate programs in a variety of languages. Other code generators generate programs in only one language.
Some code generators use recursion, or repeating a code block, to generate programs. Recursive code blocks can be difficult to follow, because you can't see what the code block does until it has finished running.
To make recursive code easier to follow, you can add comments to the code. Comments can explain what the recursive code block does. You can also use alternative versions of the code block that do not use recursion.
For example, instead of using recursion to generate a program, you can use a loop. The loop can read in input files and generate programs for each case.
Here is an example of a code generator that uses a loop to generate a program:
input_file = open("input_file.txt", "r")
for line in input_file:
output_file = open("output_file.txt", "w")
print(line.strip())
output_file.write("Generated program")
The code above reads in input files and generates a program for each line in the input files. The program generated for each line is written to an output file. The code above also writes a message to the output file that tells you what the program does. In this case, the program generates a string containing the words "Generated program." The answer is A.

fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
continue
print(x)

class Person:
def __init__(self, name, age):
self.name = name
self.age = age

def __str__(self):
return f"{self.name}({self.age})"

p1 = Person("John", 36)

print(p1)

class Person:
def __init__(self, name, age):
self.name = name
self.age = age

def myfunc(self):
print("Hello my name is " + self.name)

p1 = Person("John", 36)
p1.myfunc()

class Person:
def __init__(self, name, age):
self.name = name
self.age = age

def myfunc(self):
print("Hello my name is " + self.name)

p1 = Person("John", 36)

del p1.age

print(p1.age)


Prompt:
what python code is gonna generate the result as shown in the image?
A. fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
continue
print(x)
B. class Person:
def __init__(self, name, age):
self.name = name
self.age = age

def __str__(self):
return f"{self.name}({self.age})"

p1 = Person("John", 36)

print(p3)
C. class Person:
def __init__(self, name, age):
self.name = name
self.age = age

def myfunc(self):
print("Hello my name is " + self.name)

p1 = Person("John", 36)
p3.myfunc()
D. class Person:
def __init__(self, name, age):
self.name = name
self.age = age

def myfunc(self):
print("Hello my name is " + self.name)

p1 = Person("John", 36)

del p1.age

print(p3.age)

A graphic design portfolio is a collection of your best work. When you apply to design programs, you will showcase your strongest designs to impress the admissions board.
In a graphic design portfolio, each design should be accompanied by a description of your creative process. This helps the admissions board understand your design choices and how you arrived at them.
When you write your designer statement, make sure to include the following:
A brief overview of your design process: How did you come up with your design ideas? What techniques and tools did you use to create your designs?
A discussion of your design choices: Why did you choose certain design elements? How did you decide on the color, font, and other design elements in your portfolio pieces?
An explanation of your creative inspiration: Where do you get your design ideas? Do you draw inspiration from nature, culture, or something else?
By including these elements in your designer statement, you can show the admissions board that you are a thoughtful, creative designer. The answer is A.

fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
continue
print(x)

class Person:
def __init__(self, name, age):
self.name = name
self.age = age

def __str__(self):
return f"{self.name}({self.age})"

p1 = Person("John", 36)

print(p3)

class Person:
def __init__(self, name, age):
self.name = name
self.age = age

def myfunc(self):
print("Hello my name is " + self.name)

p1 = Person("John", 36)
p3.myfunc()

class Person:
def __init__(self, name, age):
self.name = name
self.age = age

def myfunc(self):
print("Hello my name is " + self.name)

p1 = Person("John", 36)

del p1.age

print(p3.age)


Prompt:
what code would generate this webpage in the browser?
A. <!DOCTYPE html>

JavaScript Functions

Call a function which performs a calculation and returns the result:

B. <!DOCTYPE html>

JavaScript Functions

Invoke (call) a function that converts from Fahrenheit to Celsius:

C. <!DOCTYPE html>

JavaScript Functions

Invoke (call) a function to convert from Fahrenheit to Celsius:

D. <!DOCTYPE html>

JavaScript Functions

Using a function as a variable:

A.

This is a webpage. It is generated by the code in the script tag. The code inside the script tag is executed by the browser.

The code invokes the myFunction function. This function is called a constructor because it creates a new object. In this case, the object is returned.

The returned object is then assigned to the x variable.

The innerHTML property of the document.getElementById("demo") object is then set to the value of the x variable.

So, the code in the script tag generates the webpage. The answer is A.

<!DOCTYPE html>

JavaScript Functions

Call a function which performs a calculation and returns the result:

<!DOCTYPE html>

JavaScript Functions

Invoke (call) a function that converts from Fahrenheit to Celsius:

<!DOCTYPE html>

JavaScript Functions

Invoke (call) a function to convert from Fahrenheit to Celsius:

<!DOCTYPE html>

JavaScript Functions

Using a function as a variable:


Prompt:
what code would generate this webpage in the browser?
A. <!DOCTYPE html>

JavaScript Objects

B. <!DOCTYPE html>

JavaScript Objects

There are two different ways to access an object property.

You can use person.property or person["property"].

C. <!DOCTYPE html>

JavaScript Objects

An object method is a function definition, stored as a property value.

D. <!DOCTYPE html>

JavaScript Objects

If you access an object method without (), it will return the function definition:

A.

This is the code that would generate this webpage in the browser.

B.

This is not the code that would generate this webpage in the browser.
C.

This is not the code that would generate this webpage in the browser.
D.

This is the code that would generate this webpage in the browser. The answer is A.

<!DOCTYPE html>

JavaScript Objects

There are two different ways to access an object property.

You can use person.property or person["property"].

<!DOCTYPE html>

JavaScript Objects

An object method is a function definition, stored as a property value.

<!DOCTYPE html>

JavaScript Objects

If you access an object method without (), it will return the function definition:


Prompt:
what code would generate this webpage in the browser?
A. <!DOCTYPE html>

JavaScript Objects

B. <!DOCTYPE html>

JavaScript Objects

There are two different ways to access an object property.

You can use person.property or person["property"].

C. <!DOCTYPE html>

JavaScript Objects

An object method is a function definition, stored as a property value.

D. <!DOCTYPE html>

JavaScript Objects

If you access an object method without (), it will return the function definition:

A.

This is the code that would generate this webpage in the browser.

B.

This is not the code that would generate this webpage in the browser.

C.

This is not the code that would generate this webpage in the browser.

D.

This is the code that would generate this webpage in the browser. The answer is A.

<!DOCTYPE html>

JavaScript Objects

There are two different ways to access an object property.

You can use person.property or person["property"].

<!DOCTYPE html>

JavaScript Objects

An object method is a function definition, stored as a property value.

<!DOCTYPE html>

JavaScript Objects

If you access an object method without (), it will return the function definition:


Prompt:
Which Python code can generate the content of the image?
A. def list_to_dictionary(keys, values):
return dict(zip(keys, values))
list1 = [0, 2, 3]
list2 = ['one', 'two', 'three']
print(list_to_dictionary(list1, list2))
B. def list_to_dictionary(keys, values):
return dict(zip(keys, values))
list1 = [1, 4, 3]
list2 = ['one', 'two', 'three']
print(list_to_dictionary(list1, list2))
C. def list_to_dictionary(keys, values):
return dict(zip(keys, values))
list1 = [1, 2, 4]
list2 = ['one', 'two', 'three']
print(list_to_dictionary(list1, list2))
D. def list_to_dictionary(keys, values):
return dict(zip(keys, values))
list1 = [1, 2, 3]
list2 = ['one', 'two', 'three']
print(list_to_dictionary(list1, list2))

def list_to_dictionary(keys, values):
return dict(zip(keys, values))
list1 = [0, 2, 3]
list2 = ['one', 'two', 'three']
print(list_to_dictionary(list1, list2)) The answer is B.

def list_to_dictionary(keys, values):
return dict(zip(keys, values))
list1 = [0, 2, 3]
list2 = ['one', 'two', 'three']
print(list_to_dictionary(list1, list2))

def list_to_dictionary(keys, values):
return dict(zip(keys, values))
list1 = [1, 4, 3]
list2 = ['one', 'two', 'three']
print(list_to_dictionary(list1, list2))

def list_to_dictionary(keys, values):
return dict(zip(keys, values))
list1 = [1, 2, 4]
list2 = ['one', 'two', 'three']
print(list_to_dictionary(list1, list2))

def list_to_dictionary(keys, values):
return dict(zip(keys, values))
list1 = [1, 2, 3]
list2 = ['one', 'two', 'three']
print(list_to_dictionary(list1, list2))


Prompt:
Which Python code can generate the content of the image?
A. a, b = 1,1
try:
print(a/b)
except ZeroDivisionError:
print("Can not divide by zero")
finally:
print("Executing finally block")
B. a, b = 1,0
try:
print(a/b)
except ZeroDivisionError:
print("Can not divide by zero")
finally:
print("Executing finally block")
C. a, b = 1,0
try:
print(a/b)
except ZeroDivisionError:
print("Can not divide by zero")
finally:
print("block")
D. a, b = 1,2
try:
print(a/b)
except ZeroDivisionError:
print("Can not divide by zero")
finally:
print("Executing finally block")

A code block is a group of lines containing Python instructions. A code block does not need to start with the word "def" or "class," but it should end with a semicolon.
The first line of a code block is the line where the instructions start. This line should not end with a semicolon. The rest of the lines in the code block end with semicolons.
Here is a code block that contains instructions for adding two numbers:
Trying to divide by zero will raise a ZeroDivisionError. The finally block will always be executed. It will execute whether an exception is thrown or not. The answer is D.

a, b = 1,1
try:
print(a/b)
except ZeroDivisionError:
print("Can not divide by zero")
finally:
print("Executing finally block")

a, b = 1,0
try:
print(a/b)
except ZeroDivisionError:
print("Can not divide by zero")
finally:
print("Executing finally block")

a, b = 1,0
try:
print(a/b)
except ZeroDivisionError:
print("Can not divide by zero")
finally:
print("block")

a, b = 1,2
try:
print(a/b)
except ZeroDivisionError:
print("Can not divide by zero")
finally:
print("Executing finally block")


Prompt:
Which Python code can generate the content of the image?
A. list = ["Hello", "world", "Ok", "Bye!"]
combined_string = " ".join(list)
print(combined_string)
B. list = ["Hello", "world", "Ok"]
combined_string = " ".join(list)
print(combined_string)
C. list = ["Hello", "world", "Bye!"]
combined_string = " ".join(list)
print(combined_string)
D. list = ["world", "Ok", "Bye!"]
combined_string = " ".join(list)
print(combined_string)

The content of the image is "Ok Bye!".
The Python code can generate this content by joining the list "Ok" and "Bye!" with a space. The answer is D.

list = ["Hello", "world", "Ok", "Bye!"]
combined_string = " ".join(list)
print(combined_string)

list = ["Hello", "world", "Ok"]
combined_string = " ".join(list)
print(combined_string)

list = ["Hello", "world", "Bye!"]
combined_string = " ".join(list)
print(combined_string)

list = ["world", "Ok", "Bye!"]
combined_string = " ".join(list)
print(combined_string)


Prompt:
Which Python code can generate the content of the image?
A. from collections import Counter
result = Counter('Canada')
print(result)
B. from collections import Counter
result = Counter('strawberry')
print(result)
C. from collections import Counter
result = Counter('banana')
print(result)
D. from collections import Counter
result = Counter('apple')
print(result)

You can use the Python `Counter` class to count the occurrences of items in a set.
The `Counter` class is a subclass of the `dict` class. This means that you can use counter objects as dictionaries.
The `Counter` class also provides some additional methods for working with counters. For example, you can use the `most_common` method to get the items that appear most frequently in a counter.
Here is an example of using the `Counter` class to count the occurrences of items in a set:
>>> from collections import Counter
>>> words = 'banana'
>>> counter = Counter(words)
>>> print(counter)
Counter({'b': 1, 'a': 1})
>>>
>>> words = 'apple'
>>> counter = Counter(words)
>>> print(counter)
Counter({'p': 1})
>>>
>>> words = 'strawberry'
>>> counter = Counter(words)
>>> print(counter)
Counter({'r': 1, 'w': 1, 's': 1})
>>>
>>> words = 'Canada'
>>> counter = Counter(words)
>>> print(counter)
Counter({'a': 1, 'n': 1, 'd': 1})
>>> The output of the `Counter` object contains two items: 'a' and 'n'. These are the most common items in the set. The answer is A.

from collections import Counter
result = Counter('Canada')
print(result)

from collections import Counter
result = Counter('strawberry')
print(result)

from collections import Counter
result = Counter('banana')
print(result)

from collections import Counter
result = Counter('apple')
print(result)


Prompt:
Which Python code can generate the content of the image?
A. count = 0
while (count < 10):
print 'The count is:', count
count = count + 1

print "Good bye!"
B. count = 0
while (count < 9):
print 'The count is:', count
count = count + 1

print "Good bye!"
C. count = 1
while (count < 9):
print 'The count is:', count
count = count + 1

print "Good bye!"
D. count = 0
while (count < 9):
print 'The count is:', count
count = count + 2

print "Good bye!"

To generate the content of the image, the Python code must do the following:
Generate the numbers 1 to 10.
Print the numbers in order.
Say "Good bye!"
The code does these things in the following way:
It initializes a variable called count to 0.
It enters a loop that will run as long as count is less than 10.
The loop prints the value of count.
Count is increased by 1 in each iteration of the loop.
When the loop finishes, the code prints "Good bye!" and exits. The answer is B.

count = 0
while (count < 10):
print 'The count is:', count
count = count + 1

print "Good bye!"

count = 0
while (count < 9):
print 'The count is:', count
count = count + 1

print "Good bye!"

count = 1
while (count < 9):
print 'The count is:', count
count = count + 1

print "Good bye!"

count = 0
while (count < 9):
print 'The count is:', count
count = count + 2

print "Good bye!"


Prompt:
Which Python code can generate the content of the image?
A. count = 1
while count < 5:
print count, " is less than 5"
count = count + 1
else:
print count, " is not less than 5"
B. count = 0
while count < 5:
print count, " is less than 5"
count = count + 1
else:
print count, " is not less than 5"
C. count = 0
while count < 5:
print count, " is less than 5"
count = count + 1
else:
print count, " is not less than 6"
D. count = 0
while count < 5:
print count, " is less than 5"
count = count + 2
else:
print count, " is not less than 5"

Each line of code in the image generates one word in the output. The words in the output are "is less than 5," "is not less than 5," and "is less than 5."
To generate the content of the image, copy the code from the image and paste it into a new Python file. Then, save the file. The answer is A.

count = 1
while count < 5:
print count, " is less than 5"
count = count + 1
else:
print count, " is not less than 5"

count = 0
while count < 5:
print count, " is less than 5"
count = count + 1
else:
print count, " is not less than 5"

count = 0
while count < 5:
print count, " is less than 5"
count = count + 1
else:
print count, " is not less than 6"

count = 0
while count < 5:
print count, " is less than 5"
count = count + 2
else:
print count, " is not less than 5"


Prompt:
Which Python code can generate the content of the image?
A. list = []
list.append('Google')
list.append('Runoob')
print list
B. list = []
list.append(’Baidu')
list.append('Runoob')
print list
C. list = []
list.append(’Microsoft')
list.append('Runoob')
print list
D. list = []
list.append('Runoob')
list.append('Google')
print list

This is a Python code. It contains instructions that a computer can understand and execute.
An indentation shows that a line is inside a block. The answer is D.

list = []
list.append('Google')
list.append('Runoob')
print list

list = []
list.append(’Baidu')
list.append('Runoob')
print list

list = []
list.append(’Microsoft')
list.append('Runoob')
print list

list = []
list.append('Runoob')
list.append('Google')
print list


Prompt:
Which Python code can generate the content of the image?
A. list1 = ['physics', 'chemistry', 1997, 2000]
print list1
del list1[3]
print "After deleting value at index 2 : "
print list1
B. list1 = ['physics', 'chemistry', 1998, 2000]
print list1
del list1[2]
print "After deleting value at index 2 : "
print list1
C. list1 = ['physics', 'chemistry', 1997, 2000]
print list1
del list1[2]
print "After deleting value at index 2 : "
print list1
D. list1 = ['physics', 'chemistry', 1997, 2000]
print list1
del list1[4]
print "After deleting value at index 2 : "
print list1

Each cell in the table contains a different value.
The values in the Physical Sciences column are numbers. The values in the Chemistry column are numbers or names.
The value at index 0 in the list1 array is the element physics. The value at index 2 is the element chemistry.
So, list1 contains the elements physics and chemistry.
The value at index 2 in the list1 array is chemistry.
So, list1 does not contain the element chemistry.
The value at index 0 in the list1 array is physics.
So, list1 contains the element physics.
The value at index 2 in the list1 array is india.
So, list1 does not contain the element india.
The value at index 0 in the list1 array is physics.
The value at index 2 in the list1 array is india.
So, list1 contains the elements physics and india.
The answer is A.

list1 = ['physics', 'chemistry', 1997, 2000]
print list1
del list1[3]
print "After deleting value at index 2 : "
print list1

list1 = ['physics', 'chemistry', 1998, 2000]
print list1
del list1[2]
print "After deleting value at index 2 : "
print list1

list1 = ['physics', 'chemistry', 1997, 2000]
print list1
del list1[2]
print "After deleting value at index 2 : "
print list1

list1 = ['physics', 'chemistry', 1997, 2000]
print list1
del list1[4]
print "After deleting value at index 2 : "
print list1


Prompt:
Which Python code can generate the content of the image?
A. tup1 = ('physics', 'chemistry', 1997, 2000)
tup2 = (1, 2, 3, 4, 5, 6, 7 )
print "tup1[0]: ", tup1[0]
print "tup2[1:5]: ", tup2[1:5]
B. tup1 = ('physics', 'chemistry', 1997, 2000)
tup2 = (1, 2, 3, 4, 5, 6, 7 )
print "tup1[0]: ", tup1[0]
print "tup2[1:5]: ", tup2[2:5]
C. tup1 = ('physics', 'chemistry', 1990, 2000)
tup2 = (1, 2, 3, 4, 5, 6, 7 )
print "tup1[0]: ", tup1[0]
print "tup2[1:5]: ", tup2[1:5]
D. tup1 = ('physics', 'chemistry', 1990, 2000)
tup2 = (1, 2, 3, 4, 5, 6, 7 )
print "tup1[0]: ", tup1[0]
print "tup2[2:5]: ", tup2[1:5]

The code can be written in Python.
 tup1 = ('physics', 'chemistry', 1997, 2000)
tup2 = (1, 2, 3, 4, 5, 6, 7 )
print "tup1[0]: ", tup1[0]
print "tup2[1:5]: ", tup2[1:5]
 The answer is B.


Prompt:
Which Python code can generate the content of the image?
A. counter = 100
miles = 1001.0
name = "John"
print counter
print miles
print name
B. counter = 100
miles = 1000.0
name = "Gary"
print counter
print miles
print name
C. counter = 100
miles = 1000.0
name = "John"
print counter
print miles
print name
D. counter = 110
miles = 1000.0
name = "John"
print counter
print miles
print name

The content of the image is generated by the following Python code.
counter = 100
miles = 1000.0
name = "John"
print counter
print miles
print name
The answer is D.

counter = 100
miles = 1001.0
name = "John"
print counter
print miles
print name

counter = 100
miles = 1000.0
name = "Gary"
print counter
print miles
print name

counter = 100
miles = 1000.0
name = "John"
print counter
print miles
print name

counter = 110
miles = 1000.0
name = "John"
print counter
print miles
print name


Prompt:
Which Python code can generate the content of the image?
A. print str
print str[0]
print str[2:5]
print str[2:]
print str * 2
print str + "TEST"
B. print str
print str[1]
print str[2:5]
print str[2:]
print str * 2
print str + "TEST"
C. print str
print str[0]
print str[1:5]
print str[2:]
print str * 2
print str + "TEST"
D. print str
print str[0]
print str[2:5]
print str[3:]
print str * 2
print str + "TEST"

print str
print str[0]
print str[1:5]
print str[2:]
print str * 2
print str + "TEST"
The content of the image is Hello World. The answer is B.

print str
print str[0]
print str[2:5]
print str[2:]
print str * 2
print str + "TEST"

print str
print str[1]
print str[2:5]
print str[2:]
print str * 2
print str + "TEST"

print str
print str[0]
print str[1:5]
print str[2:]
print str * 2
print str + "TEST"

print str
print str[0]
print str[2:5]
print str[3:]
print str * 2
print str + "TEST"


Prompt:
Which Python code can generate the content of the image?
A. list = [ 'runoob', 786 , 2.23, 'john', 70.2 ]
tinylist = [123, 'john']
print list
print list[1]
print list[1:3]
print list[2:]
print tinylist * 2
print list + tinylist
B. list = [ 'runoob', 786 , 2.23, 'john', 70.2 ]
tinylist = [124, 'john']
print list
print list[0]
print list[1:3]
print list[2:]
print tinylist * 2
print list + tinylist
C. list = [ 'runoob', 787 , 2.23, 'john', 70.2 ]
tinylist = [123, 'john']
print list
print list[0]
print list[1:3]
print list[2:]
print tinylist * 2
print list + tinylist
D. list = [ 'runoob', 786 , 2.23, 'john', 70.2 ]
tinylist = [123, 'john']
print list
print list[0]
print list[1:3]
print list[2:]
print tinylist * 2
print list + tinylist

A Python list is a collection of items. Lists can contain items of different types, including other lists.
The square bracket notation is used to access and modify items in a list. The notation tells Python to get or set the item at the index specified.
For example, the list [1, 2, 3] has an item at the index 0, and an item at the index 1. To access these items, you can use the square bracket notation.
To modify a list, you can use the square bracket notation to add, remove, or replace items. For example, the list [1, 2, 3] can be modified in the following ways:
To add an item, use the square bracket notation to insert the item at the beginning or end of the list.
To remove an item, use the square bracket notation to remove the item at the beginning or end of the list.
To replace an item, use the square bracket notation to replace the item at the beginning or end of the list with a new item. The answer is A.

list = [ 'runoob', 786 , 2.23, 'john', 70.2 ]
tinylist = [123, 'john']
print list
print list[1]
print list[1:3]
print list[2:]
print tinylist * 2
print list + tinylist

list = [ 'runoob', 786 , 2.23, 'john', 70.2 ]
tinylist = [124, 'john']
print list
print list[0]
print list[1:3]
print list[2:]
print tinylist * 2
print list + tinylist

list = [ 'runoob', 787 , 2.23, 'john', 70.2 ]
tinylist = [123, 'john']
print list
print list[0]
print list[1:3]
print list[2:]
print tinylist * 2
print list + tinylist

list = [ 'runoob', 786 , 2.23, 'john', 70.2 ]
tinylist = [123, 'john']
print list
print list[0]
print list[1:3]
print list[2:]
print tinylist * 2
print list + tinylist


Prompt:
Which Python code can generate the content of the image?
A. dict = {}
dict['one'] = "This is one"
dict[2] = "This is two"
tinydict = {'name': 'runoob','code':6734, 'dept': 'sales'}
print dict['one']
print dict[2]
print tinydict
print tinydict.keys()
print tinydict.values()
B. dict = {}
dict['one'] = "This is TWO"
dict[2] = "This is two"
tinydict = {'name': 'runoob','code':6734, 'dept': 'sales'}
print dict['one']
print dict[2]
print tinydict
print tinydict.keys()
print tinydict.values()
C. dict = {}
dict['one'] = "This is one"
dict[2] = "This is two"
tinydict = {'name': 'runoob','code':6735, 'dept': 'sales'}
print dict['one']
print dict[2]
print tinydict
print tinydict.keys()
print tinydict.values()
D. dict = {}
dict['one'] = "This is one"
dict[2] = "This is two"
tinydict = {'name': 'runoob','code':6734, 'dept': 'cost'}
print dict['one']
print dict[2]
print tinydict
print tinydict.keys()
print tinydict.values()

A dictionary is a collection of key-value pairs. You can use a dictionary to store data in a structured way.
You can use the dict class to create a new dictionary.
To add items to a dictionary, use the dict.update method.
To remove items from a dictionary, use the dict.pop method.
To access the value associated with a key, use the dict[key] method.
To add a key-value pair to a dictionary, use the dict[key] = value method.
To update the value associated with a key, use the dict[key] = value method.
To delete a key-value pair from a dictionary, use the dict.pop(key) method.
Use the print function to display the contents of a dictionary. The answer is B.

dict = {}
dict['one'] = "This is one"
dict[2] = "This is two"
tinydict = {'name': 'runoob','code':6734, 'dept': 'sales'}
print dict['one']
print dict[2]
print tinydict
print tinydict.keys()
print tinydict.values()

dict = {}
dict['one'] = "This is TWO"
dict[2] = "This is two"
tinydict = {'name': 'runoob','code':6734, 'dept': 'sales'}
print dict['one']
print dict[2]
print tinydict
print tinydict.keys()
print tinydict.values()

dict = {}
dict['one'] = "This is one"
dict[2] = "This is two"
tinydict = {'name': 'runoob','code':6735, 'dept': 'sales'}
print dict['one']
print dict[2]
print tinydict
print tinydict.keys()
print tinydict.values()

dict = {}
dict['one'] = "This is one"
dict[2] = "This is two"
tinydict = {'name': 'runoob','code':6734, 'dept': 'cost'}
print dict['one']
print dict[2]
print tinydict
print tinydict.keys()
print tinydict.values()


Prompt:
Which Python code can generate the content of the image?
A. import re
print(re.match('www', 'www.runoob.com').span())
print(re.match('com', 'www.runoob.com'))
B. import re
print(re.match('www', 'www.runoob.com').span())
print(re.match('cn', 'www.runoob.com'))
C. import re
print(re.match('http', 'www.runoob.com').span())
print(re.match('com', 'www.runoob.com'))
D. import re
print(re.match('www', 'www.runoob.com'))
print(re.match('com', 'www.runoob.com'))

The content of the image is a web page from the website runoob.com. You can use Python to generate the content of this page by matching URLs and then printing the content of those pages.
Here is some Python code that will do this:
import re

Look at the image. It contains two URLs:
www.runoob.com
com

The first URL matches the string www.runoob.com. The second URL matches the string com.
So, the content of the page with the URL www.runoob.com is:
Look at the HTML code of this page. You can see that it contains the text Runoob Com. So, the content of this page is:
The content of the page with the URL com is:
The answer is B.

import re
print(re.match('www', 'www.runoob.com').span())
print(re.match('com', 'www.runoob.com'))

import re
print(re.match('www', 'www.runoob.com').span())
print(re.match('cn', 'www.runoob.com'))

import re
print(re.match('http', 'www.runoob.com').span())
print(re.match('com', 'www.runoob.com'))

import re
print(re.match('www', 'www.runoob.com'))
print(re.match('com', 'www.runoob.com'))


Prompt:
Which Python code can generate the content of the image?
A. import re

line = "Cats are smarter than dogs"

matchObj = re.match( r'(.*) are (.*?) .*', line, re.M|re.I)

if matchObj:
print "matchObj.group() : ", matchObj.group()
print "matchObj.group(1) : ", matchObj.group(1)
print "matchObj.group(2) : ", matchObj.group(2)
else:
print "No match"
B. import re

line = "Cats are smarter than dogs"

matchObj = re.match( r'(.*) are (.*?) .*', line, re.M|re.I)

if matchObj:
print "matchObj.group() : ", matchObj.group()
print "matchObj.group(1) : ", matchObj.group(1)
print "matchObj.group(2) : ", matchObj.group(2)
else:
print "No match!!"
C. import re

line = "Cats are smarter than pigs"

matchObj = re.match( r'(.*) are (.*?) .*', line, re.M|re.I)

if matchObj:
print "matchObj.group() : ", matchObj.group()
print "matchObj.group(1) : ", matchObj.group(1)
print "matchObj.group(2) : ", matchObj.group(2)
else:
print "No match!!"
D. import re

line = "Cats are smarter than pigs"

matchObj = re.match( r'(.*) are (.*?) .*', line, re.M|re.I)

if matchObj:
print "matchObj.group() : ", matchObj.group()
print "matchObj.group(1) : ", matchObj.group(1)
print "matchObj.group(2) : ", matchObj.group(3)
else:
print "No match!!"

import re
line = "Cats are smarter than pigs"
matchObj = re.match( r'(.*) are (.*?) .*', line, re.M|re.I)
if matchObj:
print "matchObj.group() : ", matchObj.group()
print "matchObj.group(1) : ", matchObj.group(1)
print "matchObj.group(2) : ", matchObj.group(2)
else:
print "No match!!" The answer is D.

import re

line = "Cats are smarter than dogs"

matchObj = re.match( r'(.*) are (.*?) .*', line, re.M|re.I)

if matchObj:
print "matchObj.group() : ", matchObj.group()
print "matchObj.group(1) : ", matchObj.group(1)
print "matchObj.group(2) : ", matchObj.group(2)
else:
print "No match"

import re

line = "Cats are smarter than dogs"

matchObj = re.match( r'(.*) are (.*?) .*', line, re.M|re.I)

if matchObj:
print "matchObj.group() : ", matchObj.group()
print "matchObj.group(1) : ", matchObj.group(1)
print "matchObj.group(2) : ", matchObj.group(2)
else:
print "No match!!"

import re

line = "Cats are smarter than pigs"

matchObj = re.match( r'(.*) are (.*?) .*', line, re.M|re.I)

if matchObj:
print "matchObj.group() : ", matchObj.group()
print "matchObj.group(1) : ", matchObj.group(1)
print "matchObj.group(2) : ", matchObj.group(2)
else:
print "No match!!"

import re

line = "Cats are smarter than pigs"

matchObj = re.match( r'(.*) are (.*?) .*', line, re.M|re.I)

if matchObj:
print "matchObj.group() : ", matchObj.group()
print "matchObj.group(1) : ", matchObj.group(1)
print "matchObj.group(2) : ", matchObj.group(3)
else:
print "No match!!"


Prompt:
Which Python code can generate the content of the image?
A. import re
def double(matched):
value = int(matched.group('value'))
return str(value * 2)
s = 'A23G4HFD567'
print(re.sub('(?P<value>\d+)', double, s))
B. import re
def double(matched):
value = int(matched.group('value'))
return str(value * 3)
s = 'A23G4HFD567'
print(re.sub('(?P<value>\d+)', double, s))
C. import re
def double(matched):
value = int(matched.group('value'))
return str(value * 2)
s = 'A23G4HFD568'
print(re.sub('(?P<value>\d+)', double, s))
D. import re
def double(matched):
value = int(matched.group('value'))
return str(value * 2)
s = 'B23G4HFD567'
print(re.sub('(?P<value>\d+)', double, s))

import re
def double(matched):
value = int(matched.group('value'))
return str(value * 2)
s = 'A23G4HFD567'
print(re.sub('(?P<value>\d+)', double, s)) The answer is A.

import re
def double(matched):
value = int(matched.group('value'))
return str(value * 2)
s = 'A23G4HFD567'
print(re.sub('(?P<value>\d+)', double, s))

import re
def double(matched):
value = int(matched.group('value'))
return str(value * 3)
s = 'A23G4HFD567'
print(re.sub('(?P<value>\d+)', double, s))

import re
def double(matched):
value = int(matched.group('value'))
return str(value * 2)
s = 'A23G4HFD568'
print(re.sub('(?P<value>\d+)', double, s))

import re
def double(matched):
value = int(matched.group('value'))
return str(value * 2)
s = 'B23G4HFD567'
print(re.sub('(?P<value>\d+)', double, s))


Prompt:
Which Python code can generate the content of the image?
A. import re
result = re.findall(r'(\w+)=(\d+)', 'set width=20 and height=10')
print(result)
B. import re
result = re.findall(r'(\w+)=(\d+)', 'set width=30 and height=10')
print(result)
C. import re
result = re.findall(r'(\w+)=(\d+)', 'set width=20 and height=15')
print(result)
D. import re
result = re.match(r'(\w+)=(\d+)', 'set width=20 and height=10')
print(result)

There are two ways to generate the content of the image:
1. import re
result = re.findall(r'(\w+)=(\d+)', 'set width=20 and height=10')
print(result)
2. import re
result = re.findall(r'(\w+)=(\d+)', 'set width=30 and height=10')
print(result)
The first line of code imports the re module.
The second line of code uses the findall method to find all of the matches for the pattern '(\w+)=(\d+)' in the string 'set width=20 and height=10'. The pattern matches any sequence of one or more word characters followed by an equal sign and any sequence of digits. The word characters are captured as a group and stored in the result variable.
The third line of code prints the result.
The second line of code imports the re module.
The third line of code uses the findall method to find all of the matches for the pattern '(\w+)=(\d+)' in the string 'set width=20 and height=10'. The pattern matches any sequence of one or more word characters followed by an equal sign and any sequence of digits. The word characters are captured as a group and stored in the result variable.
The fourth line of code prints the result.
The first line of code imports the re module.
The second line of code uses the match method to check if the pattern '(\w+)=(\d+)' matches the string 'set width=20 and height=10'. The match method returns a match object if the pattern matches the string. Otherwise, it returns None.
The third line of code prints the result of the match. The answer is A.

import re
result = re.findall(r'(\w+)=(\d+)', 'set width=20 and height=10')
print(result)

import re
result = re.findall(r'(\w+)=(\d+)', 'set width=30 and height=10')
print(result)

import re
result = re.findall(r'(\w+)=(\d+)', 'set width=20 and height=15')
print(result)

import re
result = re.match(r'(\w+)=(\d+)', 'set width=20 and height=10')
print(result)


Prompt:
Which Python code can generate the content of the image?
A. import math
content = dir(math)
print content
B. import re
content = dir(math)
print content
C. import numpy
content = dir(math)
print content
D. import math
content = locals(math)
print content

The Python `locals` built-in function returns a dictionary containing local variables and attributes. The local variables are those defined within a function. The attributes are those defined in the global scope.
The `dir` built-in function returns a list of all the attributes in the current scope. The attributes in the global scope are at the beginning of the list. The attributes defined within a function are further down the list.
To print the value of an attribute, use the `print` function. For example:
>>> x = 5
>>> y = 10
>>> print x
5
>>> print y
10 The Python `math` module contains functions for mathematical operations. The module is not imported in this code. So, the `math` module is not included in the output. The answer is D.

import math
content = dir(math)
print content

import re
content = dir(math)
print content

import numpy
content = dir(math)
print content

import math
content = locals(math)
print content


Prompt:
Which Python code can generate the content of the image?
A. flag = False
name = 'lumen'
if name == 'python':
flag = True
print 'welcome boss'
else:
print name
B. flag = False
name = 'luren'
if name == 'python':
flag = True
print 'welcome boss'
else:
print 'nothing'
C. flag = False
name = 'lemon'
if name == 'python':
flag = True
print 'welcome boss'
else:
print name
D. flag = False
name = 'luren'
if name == 'python':
flag = True
print 'welcome boss'
else:
print name

This is a code snippet. It is a piece of Python code that can be executed in your web browser's console.
The code starts with a flag variable that is set to False. Then, the name variable is assigned the value 'lumen'.
The if statement checks if the name variable is equal to 'python'. Since it is, the flag variable is set to True.
The print statement below the if statement prints the string 'welcome boss'.
If the if statement doesn't match, the else block is executed. The print statement below the else block prints the value of the name variable.
The output of this code will be the string 'welcome boss'. The answer is A.

flag = False
name = 'lumen'
if name == 'python':
flag = True
print 'welcome boss'
else:
print name

flag = False
name = 'luren'
if name == 'python':
flag = True
print 'welcome boss'
else:
print 'nothing'

flag = False
name = 'lemon'
if name == 'python':
flag = True
print 'welcome boss'
else:
print name

flag = False
name = 'luren'
if name == 'python':
flag = True
print 'welcome boss'
else:
print name


Prompt:
Which Python code can generate the content of the image?
A. print "My name is %s and weight is %d kg!" % ('Zara', 21)
B. print "My name is %s and weight is %d kg!" % ('Zara', 11)
C. print "My name is %s and weight is %d g!" % ('Zara', 21)
D. print "My name is %s and weight is %d kg!" % ('Laura', 21)

You can use the % operator to format strings in Python.
The % operator can be used in two ways:
To replace placeholders in a string with actual values.
To calculate a string based on values.
Placeholders are identified by the percentage sign followed by a label. The label can be a string or a variable.
To replace placeholders with actual values, use the % operator followed by the label.
The second argument to the % operator is the actual value to be inserted.
Use the first argument to the % operator to identify the label. If no label is specified, the % operator will replace all placeholders in the string.
To calculate a string based on values, use the % operator followed by a calculation.
The second argument to the % operator is the calculation.
Use the first argument to the % operator to identify the value to be inserted in the calculation. This value can be a variable or a string.
The result of the calculation is inserted in the string. If the calculation results in an error, the string is not formatted. To generate the content of the image, use the % operator to format a string with placeholders.
The first argument to the % operator is the label.
The second argument to the % operator is the actual value to be inserted.
Use the print function to display the formatted string.
The answer is A.

print "My name is %s and weight is %d kg!" % ('Zara', 21)

print "My name is %s and weight is %d kg!" % ('Zara', 11)

print "My name is %s and weight is %d g!" % ('Zara', 21)

print "My name is %s and weight is %d kg!" % ('Laura', 21)


Prompt:
Which Python code can generate the content of the image?
A. def printinfo( name, age = 35 ):
print "Name: ", name
print "Age ", age
return
printinfo( age=50, name="miki" )
printinfo( name="miki" )
B. def printinfo( name, age = 35 ):
print "Name: ", name
print "Age ", age
return
printinfo( age=52, name="miki" )
printinfo( name="miki" )
C. def printinfo( name, age = 33 ):
print "Name: ", name
print "Age ", age
return
printinfo( age=52, name="miki" )
printinfo( name="miki" )
D. def printinfo( name, age = 30 ):
print "Name: ", name
print "Age ", age
return
printinfo( age=50, name="miki" )
printinfo( name="miki" )

D. def printinfo( name, age = 30 ):
print "Name: ", name
print "Age ", age
return
printinfo( age=50, name="miki" )
printinfo( name="miki" ) The answer is D.

def printinfo( name, age = 35 ):
print "Name: ", name
print "Age ", age
return
printinfo( age=50, name="miki" )
printinfo( name="miki" )

def printinfo( name, age = 35 ):
print "Name: ", name
print "Age ", age
return
printinfo( age=52, name="miki" )
printinfo( name="miki" )

def printinfo( name, age = 33 ):
print "Name: ", name
print "Age ", age
return
printinfo( age=52, name="miki" )
printinfo( name="miki" )

def printinfo( name, age = 30 ):
print "Name: ", name
print "Age ", age
return
printinfo( age=50, name="miki" )
printinfo( name="miki" )


Prompt:
Which Python code can generate the content of the image?
A. n = 6
string = "Hello!"
print(string * n)
B. n = 5
string = "Hello!"
print(string * n)
C. n = 7
string = "Hello!"
print(string * n)
D. n = 2
string = "Hello!"
print(string * n)

The code can be generated by hand.
First, create a string with the content of the image.
Then, use the * operator to multiply the string by the value of n.
The result is the code that can generate the content of the image. The answer is B.

n = 6
string = "Hello!"
print(string * n)

n = 5
string = "Hello!"
print(string * n)

n = 7
string = "Hello!"
print(string * n)

n = 2
string = "Hello!"
print(string * n)


Prompt:
Which Python code can generate the content of the image?
A. def get_vowels(string):
return [vowel for vowel in string if vowel in 'aeiou']
print("Vowels are:", get_vowels('This is some random string'))
B. def get_vowels(string):
return [vowel for vowel in string if vowel in 'weiou']
print("Vowels are:", get_vowels('This is some random string'))
C. def get_vowels(string):
return [vowel for vowel in string if vowel in 'aeiou']
print("Vowels are:", get_vowels('This is a string'))
D. def get_vowels(string):
return [vowel for vowel in string if vowel in 'aeiou']
print("Vowels are:", get_vowels('string'))

A function is a block of code that can be called from other code. When a function is called, the code in the function is executed.
Defining a function
To define a function, use the def keyword. The function name is included in the function definition.
The function body is the code that is executed when the function is called. The function body can include input variables and output variables.
Calling a function
To call a function, use the function name. The function name can be included in a statement or an expression.
Using a function result
After a function is called, you can use the function result. The function result can be used in a statement or an expression. The answer is A.

def get_vowels(string):
return [vowel for vowel in string if vowel in 'aeiou']
print("Vowels are:", get_vowels('This is some random string'))

def get_vowels(string):
return [vowel for vowel in string if vowel in 'weiou']
print("Vowels are:", get_vowels('This is some random string'))

def get_vowels(string):
return [vowel for vowel in string if vowel in 'aeiou']
print("Vowels are:", get_vowels('This is a string'))

def get_vowels(string):
return [vowel for vowel in string if vowel in 'aeiou']
print("Vowels are:", get_vowels('string'))


Prompt:
What's the function of the demonstrated object?
A. Cut vegetables
B. stir
C. Water purification
D. Boiling water

Functions are used by objects. Look at the object.
Think about how it is used.
Then, decide if the object's function is A, B, C, or D.
Boiling water is the function of a pot.
Stirring a potato is not a function of a pot.
Neither is cutting a potato. The answer is A.


Prompt:
What's the function of the demonstrated object?
A. Cut vegetables
B. stir
C. Water purification
D. Boiling water

Function is a word that describes what something does.
For example, a hammer has the function of hitting things. A flashlight has the function of giving light.
How do you determine the function of an object?
Look at the object.
Think about what it's doing.
The function of an object tells you what it's doing. Boiling water has the function of heating liquid to a high temperature.
A different function is needed for each object. No object has all the functions.
A stir can be used to mix things together.
The function of a stir is to mix things together.
A cutter can be used to cut things into pieces.
The function of a cutter is to cut things into pieces.
A boiler can heat liquid to make steam.
The function of a boiler is to heat liquid to make steam. The answer is C.


Prompt:
What's the function of the demonstrated object?
A. Cut vegetables
B. stir
C. Water purification
D. Boiling water

Functions are used by objects. Look at the object.
The object is a teapot.
The teapot's function is to pour water. The answer is B.


Prompt:
What's the function of the demonstrated object?
A. Write
B. compute
C. binding
D. copy

Functions are used to describe what an object does.
An object can have more than one function. Look at the picture of the object.
The object is a writing instrument. It can write.
The function of an object is to do something. Look at the picture of the object.
The object has a tip that can write. It can write on paper.
The function of the object is write. The answer is A.


Prompt:
What's the function of the demonstrated object?
A. Write
B. compute
C. binding
D. copy

Functions are what objects do. Functions carry out tasks.
Look at the picture of the object.
The function of the demonstrated object is write.
Write objects make marks on a surface. Look at the answer choice A.


Prompt:
What's the function of the demonstrated object?
A. Draw
B. cut
C. deposit
D. refrigeration

Functions are used to describe what an object does.
There are six functions:
draw,
cut,
deposit,
refrigeration, and
roll.
Look at the picture of the object.
The object is used to draw. The answer is A.


Prompt:
What's the function of the demonstrated object?
A. Draw
B. cut
C. deposit
D. refrigeration

Functions are used to describe the purpose of an object.
For example, a hammer has the function of hitting nails. A chair has the function of providing a seat.
To describe the function of an object, include the word function after the object. The function comes after the object in the sentence.
The function of an object is to help you do something. Look at the picture of the object.
The function of the deposit box is to store valuable items. The answer is C.


Prompt:
What's the function of the demonstrated object?
A. hit
B. Tighten tightly
C. adjust
D. Clamping

Functions are used to describe what an object does.
The function of a object is to achieve a goal.
Look at the picture of the object.
The object is a hammer.
A hammer hits. The hammer in the picture is shown hitting a nail.
The function of the hammer is to hit. The answer is A.


Prompt:
What's the function of the demonstrated object?
A. hit
B. Tighten tightly
C. adjust
D. Clamping

Functions are used to describe what an object does.
The function of a object is to do something. That something is called the function of the object.
Look at the picture of the object.
The object is tightening two bolts at the same time. So, the function of the object is to tighten bolts. The answer is B.


Prompt:
What's the function of the demonstrated object?
A. hit
B. Tighten tightly
C. adjust
D. Clamping

Functions are used to describe what an object does.
The function of a object is to adjust.
Adjusting means making sure that something is right or accurate. When you adjust an object, you are changing it to make it better fit its purpose. The function of the demonstrated object is to clamp.
A clamp is a tool that squeezes things together. The answer is D.


Prompt:
What's the function of the demonstrated object?
A. Separatist
B. Clamping
C. drill
D. incise

Tools are made for a function. A function is a job.
Every tool has a purpose. It can tear, cut, break, or move something.
Look at the picture of the object.
The object can be used as a drill. It can make holes in wood.
The function of the object is drill. The answer is C.


Prompt:
What's the function of the demonstrated object?
A. Separatist
B. Clamping
C. drill
D. incise

Tools are used to make things. People have been making tools for thousands of years.
There are many different types of tools. Here are some common types:
A wedge is a tool that helps you separate two things.
A hammer is a tool that hits things.
A screwdriver is a tool that helps you turn screws.
A saw is a tool that helps you cut things.
A clamp is a tool that holds things in place.
A drill is a tool that spins a hole in things.
An incise is a tool that cuts a shallow hole in things. The function of the demonstrated object is to clamp.
Clamping keeps things closed or in place. The answer is B.


Prompt:
What's the function of the demonstrated object?
A. excavate
B. transport
C. weld
D. Measure the level

Functions are used by objects. Look at the object.
The function of an object is to do something.
Here are some examples of functions:
A tape measure may have the function of measuring length.
A hammer may have the function of breaking things.
A mailer may have the function of sending things through the mail.
A chair may have the function of allowing someone to sit. The demonstrated object has the function of excavate.
Excavate means to remove soil, gravel, or other material from a hole. The answer is A.


Prompt:
What's the function of the demonstrated object?
A. excavate
B. transport
C. weld
D. Measure the level

Functions are used by objects. Look at the object.
Think about what the object is used for.
The function of an object is to achieve a goal.
For example, a tape measure is used to measure length. So, a tape measure has the function of measuring length.
Examples of functions:
A hammer has the function of breaking things.
A mirror has the function of reflecting light.
A power tool has the function of powering up. The function of a wheelbarrow is to transport objects. The answer is B.


Prompt:
What's the function of the demonstrated object?
A. excavate
B. transport
C. weld
D. Measure the level

Look at the object.
The object is a welding machine.
A welding machine welds two pieces of metal together. So, the function of the demonstrated object is to weld. The answer is C.


Prompt:
What's the function of the demonstrated object?
A. Cut the grass
B. Measure the temperature
C. burnish
D. Brushing

Objects have many different functions. A function is a job that an object must do.
Look at the picture of the object.
The object is a thermometer.
Thermometers measure temperature. So, the function of the object is to measure temperature. The answer is B.


Prompt:
What's the function of the demonstrated object?
A. Cut the grass
B. Measure the temperature
C. burnish
D. Brushing

The function of an object is what it does.
The shape of an object tells you how it works. Look at the picture of the object.
The object is a burnisher. It makes something shine.
A burnisher can make your shoes shine or your car's mirrors shine. The answer is C.


Prompt:
What's the function of the demonstrated object?
A. clean
B. measurement
C. Bulldozing
D. Cutting platform

An object's function tells you what the object does.
Look at the demonstrated object.
The object is a meterstick with a length of 7 meters.
The function of an object is to perform a task. That task might be using the object, or it might be keeping the object for future use.
Measurement tools have functions. Upon using a measurement tool, you can tell what the tool is for by looking at its design.
For example, a tape measure has a length display and a ruler has marks spaced 2 centimeters apart. These functions tell you that the tape measure is for measuring length and that the ruler is for reading distances. Bulldozing is a function that an object can have. It involves moving dirt or debris out of the way.
The function of a bulldozer is to bulldoze.
Cutting a platform is a function that a tool can have. It involves changing a shape of a platform.
The function of a knife is to cut. The answer is B.


Prompt:
What's the function of the demonstrated object?
A. clean
B. measurement
C. Bulldozing
D. Cutting platform

Look at the object.
The object is a bulldozer. A bulldozer's function is bulldozing. The answer is C.


Prompt:
What's the function of the demonstrated object?
A. clean
B. measurement
C. Bulldozing
D. Cutting platform

Functions are used to describe what an object does.
Objects can have more than one function. A object can be used to perform multiple functions. Measurement is the function demonstrated by the object.
Platform cutting is a function of the object. The object can cut a platform into a specific shape.
Cleaning is a function that the object can perform. But the object is not used to clean.
Bulldozing is a function that cannot be performed by this object. The answer is D.


Prompt:
What's the function of the demonstrated object?
A. Cooking
B. Cook soup
C. Fry
D. steam

Functions are used to describe what an object does.
When you write a function for an object, you are telling someone else how to use the object. Writing functions for objects is important because it lets other people know how to use the object.
Look at the picture of the wok.
The wok is a cooking tool. So, the function of the wok is cooking.
Now look at each choice.
Fry is not what the wok does.
Steam is not what the wok does.
Cook soup is what the wok does. The answer is A.


Prompt:
What's the function of the demonstrated object?
A. Cooking
B. Cook soup
C. Fry
D. steam

Functions are used to describe what an object does.
For each object, try to figure out its function.
Then, compare the function of the object to the demonstrated function.
The function of an object is to do something.
If you can tell what the object is doing, then its function is to do that thing. In the video, the object is cooking.
The function of the demonstrated object is to cook. The answer is A.


Prompt:
What's the function of the demonstrated object?
A. Cooking
B. Cook soup
C. Fry
D. steam

Functions are used to describe what an object does.
How do you describe the function of an object?
First, identify the object's shape. Then, describe the role the object plays in a scenario.
Imagine an object in the shape of a triangle. The function of this object is to cover a roof.
Imagine this object is made of metal. In this case, the function of the object is to protect the roof from rain and snow.
Now look at the picture of the object. The function of the demonstrated object is cooking.
The demonstrated object is a frying pan. When you cook in a frying pan, the food gets hot. The frying pan's function is to cook food. The answer is A.


Prompt:
What's the function of the demonstrated object?
A. grill
B. filtration
C. flavouring
D. Pick-up

An object's function tells you what the object is used for. Look at the picture of the object.
The demonstrated object is a grill. A grill is used to cook food by sending heat and air to it. The answer is A.


Prompt:
What's the function of the demonstrated object?
A. grill
B. filtration
C. flavouring
D. Pick-up

An object's function tells you what the object is used for. Look at the picture of the object.
The demonstrated object is a set of three cups and a funnel. The function of this object is filtration. The answer is B.


Prompt:
What's the function of the demonstrated object?
A. grill
B. filtration
C. flavouring
D. Pick-up

An object's function tells you what the object is used for. Look at the demonstrated object.
The function of the demonstrated object is flavouring. The object is made of salt, pepper, and spices. These flavourings add flavour to food. The answer is C.


Prompt:
What's the function of the demonstrated object?
A. grill
B. filtration
C. flavouring
D. Pick-up

The function of an object is what it does.
Look at the object.
Think about how it looks or feels.
What does the object do? The grill has a barbecue flavour. The grill can be used to give food a barbecue flavour.
The function of the grill is to flavour food. The answer is C.


Prompt:
What's the function of the demonstrated object?
A. baking
B. heating
C. flavouring
D. Pick-up

An object's function tells you what it does. Look at the demonstrated object.
The function of this object is baking. This object is a microwave oven. The answer is A.


Prompt:
What's the function of the demonstrated object?
A. gluing
B. Receive
C. Stationery
D. record

Functions are used to describe what an object does.
For example, a hammer receives nails and hits them. So, a hammer's function is to receive nails and hit them.
Look at the picture of the object.
The object is a stack of notebook paper. Notebook paper's function is to record information. The answer is D.


Prompt:
What's the function of the demonstrated object?
A. Recognize the direction
B. Look into the distance
C. Observe the interstellar
D. Military defense

The function of a object is what it does. Look at the picture of the object.
The compass rose shows that north is at the top of the compass. The interstellar is at the top of the compass, too. This tells you that the object is for observing the interstellar. The answer is C.


Prompt:
What's the function of the demonstrated object?
A. Recognize the direction
B. Look into the distance
C. Observe the interstellar
D. Military defense

Military defense.
This object is a military scope. It helps a soldier observe the interstellar and recognize the direction. The answer is D.


Prompt:
What's the function of the demonstrated object?
A. Recognize the direction
B. Look into the distance
C. Observe the interstellar
D. Military defense

Look at the object.
The object is a military tank. A military tank's function is military defense. The answer is D.


Prompt:
What does this sign mean?
A. Smoking is prohibited here.
B. Something is on sale.
C. No photography allowed
D. Take care of your speed.

A sign is a message that is meant to tell you something.
Signs can tell you how to do something or what not to do. They can also tell you about a place or an activity.
Look at the sign.
The sign tells you that smoking is prohibited here. It says "No smoking." The answer is A.


Prompt:
What does this sign mean?
A. Smoking is prohibited here.
B. Something is on sale.
C. No photography allowed
D. Take care of your speed.

A sign is a message that is meant to tell you something.
Signs can tell you how to do something or what not to do. They can also tell you about a place or an activity.
Look at the sign.
The sign says, "No photography allowed." It means you cannot take pictures here. The answer is C.


Prompt:
What is the most likely purpose of this poster?
A. To celebrate New Year.
B. To celebrate someone's birthday.
C. To celebrate Christmas.
D. To celebrate National Day.

To celebrate Christmas.
Christmas is shown by the poster's image of Santa Claus coming to a house with a Christmas tree. The answer is C.


Prompt:
Which two teams will take part in this game?
A. Team A and Team B.
B. Team A and Team C.
C. Team B and Team C.
D. Team A and Team D.

Green Bay and Minnesota will take part in this game. The answer is A.


Prompt:
What is the most likely purpose of this poster?
A. To advertise for a store.
B. To find qualified candidates for the open positions.
C. To show the loudspeaker.
D. To ask for help.

The purpose of a poster is to get you to do something. Posters show you information that you need to know. They use size, color, and simplicity to make their important information stand out.
When you can tell what a poster is trying to do, it is easy to write a compelling headline. The headline should tell you the most important information about the poster. This poster is trying to find qualified candidates for the open positions.
The purpose of this poster is to find qualified candidates for the open positions. The answer is B.

To find qualified candidates for the open positions.


Prompt:
Which operation of fractions is represented by this formula?
A. Add
B. Subtract
C. Multiply
D. Devide

An operation of fractions is a calculation that involves fractions.
When you write a fraction, it represents a part of something. For example, if you have a pie and you eat a piece of it, the piece you ate is represented by the fraction 1/6.
Fractions can be added, subtracted, multiplied, or divided. To do one of these operations with fractions, first compare the top numbers of the fractions. The fraction with the larger top number is the greater fraction.
For example, the fraction 5/6 is greater than the fraction 4/6. To add fractions, add the numbers on the top. For example, 5/6 + 4/6 = 9/6. To subtract fractions, subtract the numbers on the top. For example, 5/6 - 4/6 = 1/6. To multiply fractions, multiply the top numbers. For example, 5/6 x 4/6 = 20/36. To divide fractions, divide the top numbers. For example, 5/6 / 4/6 = 5/12.
The formula represents a multiplication operation. The top numbers of the fractions are being multiplied.
The operation of multiplying fractions is represented by the formula adbc.
To see why, imagine that you are given the formula adbc. You know that a is 3 and b is 5. To find the value of c, you multiply the top numbers, which gives you 3 x 5 = 15. So, c is 15.
To find the value of the whole fraction, you add the number 15 to both sides of the equation. This gives you adbc = 3/15. The operation of multiplying fractions is represented by the formula adbc.
The formula represents a subtraction operation. The top numbers of the fractions are being subtracted.
The operation of subtracting fractions is represented by the formula ad - bc.
To see why, imagine that you are given the formula ad - bc. You know that a is 3 and b is 5. To find the value of c, you subtract the top numbers, which gives you 3 - 5 = -2. So, c is -2.
To find the value of the whole fraction, you add the number 2 to both sides of the equation. This gives you ad - bc = 3/5. The operation of subtracting fractions is represented by the formula ad - bc.
The formula represents a division operation. The top numbers of the fractions are being divided.
The operation of dividing fractions is represented by the formula ad / bc.
To see why, imagine that you are given the formula ad / bc. You know that a is 3 and b is 5. To find the value of c, you divide the top numbers, which gives you 3 / 5 = 1/2. So, c is 1/2.
To find the value of the whole fraction, you multiply the top numbers, which gives you 3 x 5 = 15. So, the whole fraction is 3/15. The operation of dividing fractions is represented by the formula ad / bc. The answer is A.


Prompt:
Which operation of fractions is represented by this formula?
A. Add
B. Subtract
C. Multiply
D. Devide

An operation of fractions is a calculation that involves fractions.
Fractions can be added, subtracted, multiplied, or divided. The operation that a fractional formula represents can be determined by looking at the formula.
If the formula adds or subtracts fractions, then the operation is Add or Subtract.
If the formula multiplies or divides fractions, then the operation is Multiply or Devide. The formula represents a divide operation. You can tell because the term in the numerator is greater than the term in the denominator. The answer is D.