首页 > 代码库 > 考试系统

考试系统

l1 = []
d1 = {"1":{"题目":None,"选项":None,"答案":None}}
with open("e1",encoding="utf-8") as f:

    for line in f:
        l1.append(line)
    # print(l1,type(l1))
s = "".join(l1)
# print(s)
l2 = s.split("*")
d1["1"]["题目"] = l2[0]
d1["1"]["选项"] = l2[1]
d1["1"]["答案"] = l2[2]
print(d1["1"]["题目"])
print(d1["1"]["选项"])
option = input("you choice:")
if option == d1["1"]["答案"].strip():
    print("Good")
else:
    print("Failed")

 

题目

 An administrator wants to provide users restricted access. The users should only be able to perform the following
tasks:
- Create and consolidate virtual machine snapshots
- Add/Remove virtual disks
- Snapshot Management
Which default role in vCenter Server would meet the administrator‘s requirements for the users?
*
A. Virtual machine user
B. Virtual machine power user
C. Virtual Datacenter administrator
D. VMware Consolidated Backup user
*
BC
==
Which two roles can be modified? (Choose two.)
*
A. Administrator
B. Network Administrator
C. Datastore Consumer
D. Read-Only
*
BC

 

考试系统