StudyPilot
关于博客价格常见问题联系隐私条款

© 2026 StudyPilot. 保留所有权利。

题库CSSE1001/7030CSSE1001/7030 Week 7 每周题库 · Exceptions, Scope & Intro to OOP 异常、作用域与面向对象入门

CSSE1001/7030 Week 7 每周题库 · Exceptions, Scope & Intro to OOP 异常、作用域与面向对象入门

Week 7 精选练习:异常处理、变量作用域与类的基本结构。Curated practice on exceptions, variable scope and class fundamentals.

0题目
0已练习
0%你的正确率
~0 分钟预计时间
Scope of Variable 变量的作用域

What is output after calling the function f1?

Scope of Variable 变量的作用域

What is the value of the global variable a after the following code is executed?

Scope of Variable 变量的作用域

What error (if any) will the following code produce when executed by Python?

Scope of Variable 变量的作用域

What is the value of x after the following code is run?x = 1 def foo(y) -> int: global x x = x + y return foo(x) foo(x)

Scope of Variable 变量的作用域

What is the value of `y` after only the following code is run? `def foo(y) -> str: global y; return 2*y` `y = 'drake'` `foo(y); foo(y)`

你的进度

0%0 / 40

已练 0 / 40 · 正确率 0%

升级解锁
StudyPilot
题库价格日历
登录