Foundations-of-Programming-Python 試験問題を無料オンラインアクセス

試験コード:Foundations-of-Programming-Python
試験名称:Foundations of Programming (Python) - E010 JIV1
認定資格:WGU
無料問題数:62
更新日:2026-10-15
評価
100%

問題 1

How does Jupyter Notebook function as a development environment?

問題 2

Fix the missing return statement in this function that should return whether a number is even.
def is_even(number):
if number % 2 == 0:
True
else:
False

問題 3

Complete the function update_grade(grades, student, new_grade) that takes a grades dictionary, a student name, and a new grade, then updates that student ' s grade and returns the dictionary.
For example, update_grade({ " Alice " : 85, " Bob " : 90}, " Alice " , 95) should return { " Alice " : 95, " Bob
" : 90}.

問題 4

Complete the function add_item(numeric_list, new_number) that takes a list of numbers and a new number, and returns a new list that appends the new number to the end of the list.
For example, add_item([1, 2, 3], 4) should return [1, 2, 3, 4] .

問題 5

Fix the indexing error in this function that should return the last character of a string.
def get_last_character(text):
return text[len(text)]

コメントを追加

あなたのメールアドレスが公開されることはありません。個人情報に関する内容は隠されます *

insert code
画面にある文字を入力してください。