Welcome to awslagi.com – Sharing AWS, Anthropic, Google Cloud, Microsoft Azure IT Exams. It's free for all!

Introduction to Programming Using Python

Start programming with Python in a practical way.

4.8★★★★★(358 ratings)
12,174 studentsIntermediate
Build a beginner-friendly foundation in Python programming and logic. The exam helps you understand variables, control flow, functions, and simple problem solving using one of today’s most popular languages. This certification is a strong entry point for new developers and students. It helps you build confidence before moving to more advanced programming work.

What you'll learn

  • Write Python code- Use variables and loops- Create functions- Solve simple problems- Understand programming logic

98-381

Lectures1
Questions2
Duration30 week
Students12,174

$20.00

Full Free Question Bank (2 Questions)

Introduction to Programming Using Python (98-381) Practice Questions & Verified Answers

Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.

Question #1Part 1

The ABC company has hired you as an intern on the coding team that creates e-commerce applications. You must write a script that asks the user for a value. The value must be used as a whole number in a calculation, even if the user enters a decimal value. You need to write the code to meet the requirements. Which code segment should you use?

AtotalItems = input("How many items would you like?")
BtotalItems = float(input("How many items would you like?"))
CtotalItems = str(input("How many items would you like?"))
DtotalItems = int(input("How many items would you like?"))
Question #2Part 1

You are creating a Python program that shows a congratulation message to employees on their service anniversary. You need to calculate the number of years of service and print a congratulatory message. You have written the following code. Line numbers are included for reference only. You need to complete the program. Which code should you use at line 03?

Aprint("Congratulations on" + (int(end)-int(start)) + "years of service!")
Bprint("Congratulations on" + str(int(end)-int(start)) + "years of service!")
Cprint("Congratulations on" + int(end - start) + "years of service!")
Dprint("Congratulations on" + str(end - start)) + "years of service!")

📢 Unlock Full Access to Success!

"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."

👉 Click the button and follow the instructions to secure your full access immediately!