exam questions

Exam JN0-220 All Questions

View all questions & answers for the JN0-220 exam

Exam JN0-220 topic 1 question 3 discussion

Actual exam question from Juniper's JN0-220
Question #: 3
Topic #: 1
[All JN0-220 Questions]

Which statement is correct about Python variables once they are created?

  • A. A global variable can only be used by functions that are defined later
  • B. All variables in Python can be used by any function within the script
  • C. A global variable can be used by any function within the script
  • D. A global can only be used within the function that created it
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference: https://stackoverflow.com/questions/423379/using-global-variables-in-a-function

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
osmankh1
4 years, 8 months ago
"C"... global variables are accessible by all python functions in the script
upvoted 2 times
...
germyrinn
5 years, 1 month ago
C is correct.... http://net-informations.com/python/iq/global.htm
upvoted 2 times
...
sedra1
5 years, 3 months ago
should be c
upvoted 2 times
...
eahmyou
5 years, 6 months ago
should be C and A is not correct https://www.python-course.eu/python3_global_vs_local_variables.php
upvoted 2 times
...
cerzee
5 years, 8 months ago
should this be C instread?
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago