1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
NARA [144]
3 years ago
12

Help, I'm a beginner in coding! I have to write a quiz. You don't have to get all fancy and stuff, since I'm a beginner lol. I w

ill give you brainliest if I your answer is helpful!!!
Your quiz program must have the following items:


1. It must start by asking the user what their name is and welcoming them to your quiz. It pays to be polite!

2. Set up a variable to keep score. It is up to you how to design the points system. Will you give them 10 points for a correct answer and 0 for an incorrect answer? Or perhaps you will be tough and take away points for an incorrect answer!

3. Ask your 10 quiz questions. If they get a question wrong, be sure to tell the user what the correct answer was. Then, adjust the score appropriately, depending on whether their answer was right or wrong.

4. At the end of the program, tell the user their score.


NOTE: For the 10 quiz questions, you can just write "put the question here" for me, and I will just add all 10.
Computers and Technology
1 answer:
Anuta_ua [19.1K]3 years ago
6 0

name = input("What's your name? ")

print("Hello " + name + ", welcome to my quiz!")

score = 0

di = {"qustion1": "answer1", "qustion2": "answer2", "qustion3": "answer3", "qustion4": "answer4", "qustion5": "answer5", "qustion6": "answer6",

     "qustion7": "answer7", "qustion8": "answer8", "qustion9": "answer9", "qustion10": "answer10"}

for x in di:

   user_answer = input(x+" ")

   if user_answer == di[x]:

       print("That's correct!")

       score += 1

   else:

       print("The correct answer is " + str(di[x]))

print("You got "+str(score)+" out of 10!")

I iterated through a dictionary with the questions and answers as the keys and values respectively. I hope this helps!

You might be interested in
What is binary ????????
beks73 [17]

Binary (or base-2) a numeric system that only uses two digits — 0 and 1. Computers operate in binary, meaning they store data and perform calculations using only zeros and ones. A single binary digit can only represent True (1) or False (0) in boolean logic.1. Binary is a base-2 number system invented by Gottfried Leibniz that is made up of only two numbers: 0 and 1. This number system is the basis for all binary code, which is used to write data such as the computer processor instructions used every day.

4 0
3 years ago
Read 2 more answers
Based upon the contents of the BOOKS table, which line of the following SQL statement contains an error?
Flauer [41]

Answer:

The answer is "Option 4"

Explanation:

In the given question line 4 is incorrect because it uses the select command, which selects "pubid and cost" that is already defined inline 3. This statement selects one or more a collection of records from the tables. It also recovers more row across any table that server and correct choices can be described as follows:  

  • In the given choices, except line 3 all were correct because first, it selects column names from the table "book".
  • After selecting column names it and defines condition were pubid value is 3.
5 0
4 years ago
The IT director instructed the systems administrator to build a server to support the accounting department's file growth. The I
Mamont248 [21]

Answer:

Option (C) FAT32 File System Type

Explanation:

  • FAT32 File System Type cannot be encrypted by the accounting users.
  • FAT stands for File Allocation Table. It is a file system architecture.
  • The File Allocation Table is an index table which contains the details about each cluster ( disk storage space ).
  • By traversing the File Allocation Table, the operating system gets the details the file ( where it is located ) and the size of the file.
  • The FAT32 file system contains more number of possible clusters.
  • In this system, 32 bits are used to store the total number of possible clusters.
  • In FAT32 file system, the transparent encryption is not supported.
  • So, option (C) is correct.
  • All other options are wrong options.
3 0
4 years ago
If the following are using default subnet masks, which one(s) of the following are valid node ip addresses: (select one) a) 220.
Svetach [21]

If the following are using default subnet masks, the option that are valid node ip addresses is option b) 10.10.0.10.

<h3>What does 10. 10 0. 1 mean?</h3>

10.254 and 10.10. 0.1 is known to be a node that are said to be part of the same network.

Note that the  first address of any network is seen as the the "network ID" address of the said network. So, if you are known to be using a kind of 24 networks, one of the real available networks is one that originate from 10.0.

Therefore, If the following are using default subnet masks, the option that are valid node ip addresses is option b) 10.10.0.10.

Learn more about subnet masks from

brainly.com/question/27960959

#SPJ1

5 0
2 years ago
Application software definition word excel powerpoint microsoft
garri49 [273]
Microsoft word is a program to type up documents.
Microsoft excel is a program to create spreadsheets
Microsoft PowerPoint is a program to create slideshows Hope that helped
6 0
3 years ago
Other questions:
  • What does a company’s code of ethics cover
    8·2 answers
  • What is a key reason for assignning permissiongs when configuring file and share access?
    7·1 answer
  • In normal view, powerpoint's ________ contains buttons such as notes, comments, and view.
    14·1 answer
  • Once the data center routes to the destination server that hosts the website, whats the next step in the internet process?
    10·1 answer
  • Research different ways that 3D printing is used in society. Tell us about the items that are 3D printed.
    8·2 answers
  • A thesaurus can be used to look up a (n) or word similar in meaning to a given word
    15·1 answer
  • Peripheral are used to
    6·1 answer
  • An administrative assistant types a document, saves, and prints. The assistant is using _____.
    13·1 answer
  • 10. Site-to-Site VPN architecture is also known as
    6·1 answer
  • Select the correct answer.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!