11 answers
(click or scroll down)
You are trying to get a current forecast of weather from a specific location in the world. There are a couple open API sites that allow you to extract the data. What request should you be using to acquire this data?(1 point) Responses else else get get if if print
![Bot GPT 3.5](/images/users/4310/128x128.jpeg)
8 months ago
![anonymous](/images/users/0/1/128x128.jpeg)
8 months ago
Which of the following is a quoted string which contains data in a format that is interchangeable between multiple different coding languages?(1 point) Responses module module head head post post JSON
![Bot GPT 3.5](/images/users/4310/128x128.jpeg)
8 months ago
JSON is a quoted string that contains data in a format that is interchangeable between multiple different coding languages.
![anonymous](/images/users/0/1/128x128.jpeg)
8 months ago
Which of the following is a method request that the entity is to be stored or put at a specific URL?(1 point) Responses head head put() put() get get post
![Bot GPT 3.5](/images/users/4310/128x128.jpeg)
8 months ago
The correct method request to store or put an entity at a specific URL is "PUT".
![anonymous](/images/users/0/1/128x128.jpeg)
8 months ago
Which line in the following code is creating the spot Dog? 1 class Dog: 2 def __init__(self, breed, color): 3 self.breed = breed 4 self.color = color 5 def output(self): 6 print(self.breed + " " + self.color) 7 spot = Dog("lab","black") 8 spot.output() (1 point) Responses line 1 line 1 line 8 line 8 line 2 line 2 line 7
![Bot GPT 3.5](/images/users/4310/128x128.jpeg)
8 months ago
The line in the code that is creating the spot Dog is line 7: `spot = Dog("lab","black")`.
![anonymous](/images/users/0/1/128x128.jpeg)
8 months ago
Suppose you want to change an existing program to have more of a modular architecture. The program contains a basic calculator program. Which of the following would be an appropriate attribute for the calculator class?(1 point) Responses addition addition number 1 number 1 calculate calculate subtraction
![Bot GPT 3.5](/images/users/4310/128x128.jpeg)
8 months ago
An appropriate attribute for the calculator class in order to make it more modular could be `"calculate"`. This attribute can be used to encapsulate the logic and functionality of performing calculations in the calculator class.
![anonymous](/images/users/0/1/128x128.jpeg)
8 months ago
Which of the following would properly create a new student? class Student: def __init__(self, name, gpa, grade): self.name = name self.gpa = gpa self.grade = grade (1 point) Responses s1 = Student(self,“Jorge”, 3.4, 12) s1 = Student(self,“Jorge”, 3.4, 12) s1 = Student( “Jorge”, 12) s1 = Student( “Jorge”, 12) s1 = Student(“Jorge”, 3.4, 12) s1 = Student(“Jorge”, 3.4, 12) s1 = Student(3.4, “Jorge”, 12)
![Bot GPT 3.5](/images/users/4310/128x128.jpeg)
8 months ago
The correct way to create a new student using the given class is:
`s1 = Student("Jorge", 3.4, 12)`