exam questions

Exam 98-381 All Questions

View all questions & answers for the 98-381 exam

Exam 98-381 topic 1 question 7 discussion

Actual exam question from Microsoft's 98-381
Question #: 7
Topic #: 1
[All 98-381 Questions]

DRAG DROP -
You are creating a Python script to evaluate input and check for upper and lower case.
Which four code segments should you use to develop the solution? To answer, move the appropriate code segment from the list of code segments to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
References: https://www.w3resource.com/python/python-while-loop.php

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
Shw7
3 years, 11 months ago
Working Code: name = input("Enter your name:") if name.lower() == name: print( name ," its lower") if name.upper() == name: print( name ," its Upper")
upvoted 2 times
...
codibel
4 years, 2 months ago
The print statement uses a comma between segments which works, but aren't 2 strings concatenated with a plus + symbol? I tried both and the difference is in the display with the plus symbol needed an extra character space name and "bla bla bla"
upvoted 1 times
...
FuzzyDunlop
4 years, 11 months ago
The solution looks correct
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 ...