刷题
导入试题
【判断题】
以读模式打开文件时,文件指针指向文件开始处。
A. 对
B. 错
查看试卷,进入试卷练习
微信扫一扫,开始刷题
答案
A
解析
暂无解析
相关试题
【判断题】
以追加模式打开文件时,文件指针指向文件尾。
A. 对
B. 错
【判断题】
已知x = (1, 2, 3, 4),那么执行x[0] = 5之后,x的值为(5, 2, 3, 4)。
A. 对
B. 错
【判断题】
已知x = 3,那么执行x += 6语句前后x的内存地址是不变的。
A. 对
B. 错
【判断题】
成员测试运算符in作用于集合时比作用于列表快得多。
A. 对
B. 错
【判断题】
在Python 3.x中,使用内置函数input()接收用户输入时,不论用户输入的什么格式,一律按字符串进行返回。
A. 对
B. 错
【判断题】
安装Python扩展库时只能使用pip工具在线安装,如果安装不成功就没有别的办法了。
A. 对
B. 错
【判断题】
使用random模块的函数randint(1, 100)获取随机数时,有可能会得到100。
A. 对
B. 错
【判断题】
如果只需要math模块中的sin()函数,建议使用from math import sin来导入,而不要使用import math导入整个模块。
A. 对
B. 错
【判断题】
已知列表x = [1, 2, 3, 4],那么表达式x.find(5)的值应为-1。
A. 对
B. 错
【判断题】
列表对象的排序方法sort()只能按元素从小到大排列,不支持别的排序方式。
A. 对
B. 错
【判断题】
g = lambda x: 3不是一个合法的赋值表达式。
A. 对
B. 错
【判断题】
内置函数len()返回指定序列的元素个数,适用于列表、元组、字符串、字典、集合以及range、zip等迭代对象。
A. 对
B. 错
【判断题】
已知x和y是两个等长的整数列表,那么表达式sum((i*j for i, j in zip(x, y)))的作用是计算这两个列表所表示的向量的内积。
A. 对
B. 错
【判断题】
已知x和y是两个等长的整数列表,那么表达式[i+j for i,j in zip(x,y)]的作用时计算这两个列表所表示的向量的和。
A. 对
B. 错
【判断题】
表达式int(‘1’*64, 2)与sum(2**i for i in range(64))的计算结果是一样的,但是前者更快一些。
A. 对
B. 错
【判断题】
已知x = list(range(20)),那么语句del x[::2]可以正常执行。
A. 对
B. 错
【判断题】
已知x = list(range(20)),那么语句x[::2] = []可以正常执行。
A. 对
B. 错
【判断题】
已知x = list(range(20)),那么语句print(x[100:200])无法正常执行。
A. 对
B. 错
【判断题】
已知x是个列表对象,那么执行语句y = x之后,对y所做的任何操作都会同样作用到x上。
A. 对
B. 错
【判断题】
已知x是个列表对象,那么执行语句y = x[:]之后,对y所做的任何操作都会同样作用到x上。
A. 对
B. 错
【判断题】
在Python中,变量不直接存储值,而是存储值的引用,也就是值在内存中的地址。
A. 对
B. 错
【判断题】
表达式(i**2 for i in range(100))的结果是个元组。
A. 对
B. 错
【判断题】
在Python中元组的值是不可变的,因此,已知x = ([1], [2]),那么语句x[0].append(3)是无法正常执行的。
A. 对
B. 错
【判断题】
包含yield语句的函数一般成为生成器函数,可以用来创建生成器对象。
A. 对
B. 错
【判断题】
在函数中yield语句的作用和return完全一样。
A. 对
B. 错
【判断题】
Python内置的字典dict中元素是按添加的顺序依次进行存储的。
A. 对
B. 错
【判断题】
Python内置的集合set中元素顺序是按元素的哈希值进行存储的,并不是按先后顺序。
A. 对
B. 错
【判断题】
已知x = {1:1, 2:2},那么语句x[3] =3无法正常执行。
A. 对
B. 错
【判断题】
Python内置字典是无序的,如果需要一个可以记住元素插入顺序的字典,可以使用collections.OrderedDict。
A. 对
B. 错
【判断题】
语句pass仅起到占位符的作用,并不会做任何操作。
A. 对
B. 错
【判断题】
在条件表达式中不允许使用赋值运算符“=”,会提示语法错误。
A. 对
B. 错
【判断题】
任何包含call()方法的类的对象都是可调用的。
A. 对
B. 错
【判断题】
在Python中函数和类都属于可调用对象。
A. 对
B. 错
【判断题】
无法使用lambda表达式定义有名字的函数。
A. 对
B. 错
【判断题】
已知x是一个列表,那么x = x[3:] + x[:3]可以实现把列表x中的所有元素循环左移3位。
A. 对
B. 错
【判断题】
已知x和y是两个字符串,那么表达式sum((1 for i,j in zip(x,y) if i==j))可以用来计算两个字符串中对应位置字符相等的个数。
A. 对
B. 错
【判断题】
函数和对象方法是一样的,内部实现和外部调用都没有任何区别。
A. 对
B. 错
【判断题】
在设计派生类时,基类的私有成员默认是不会继承的。
A. 对
B. 错
【判断题】
如果在设计一个类时实现类len()方法,那么该类的对象会自动支持Python内置函数len()。
A. 对
B. 错
【判断题】
Python 3.x中字符串对象的encode()方法默认使用utf8作为编码方式。
A. 对
B. 错
推荐试题
【多选题】
An administrator is using the Host Failures to Tolerate Admission Control Policy for a vSphere High Availability ___ cluster. When configuring this setting on the cluster, the administrator sees this error message: <Insufficient resources to satisfy HA failover level on cluster > What are two likely causes for the error? (Choose two.)(AB)
A. The hosts in the cluster are disconnected.
B. A host in the cluster is displaying an HA error.
C.
D. istributed Resource Scheduler has not been configured on the cluster.
【多选题】
What are two ways to identify TCP/IP stack information? (Choose two.)___
A. Using the vSphere Web Client
B. Using esxcli network ip netstack
C. Using esxcfg-netstack
D. Using the vSphere Client
【多选题】
Which two actions are required when enabling vFlash Read Cache for a virtual machine's virtual disk? (Choose two.)___
A. A value in the Virtual Flash Read Cache text box must be entered.
B. A Flash Resource Pool for Cache size reservation must be entered.
C. The Device backing and the block size must be configured.
D. The
E. nable virtual flash host swap cache check box must be selected.
【多选题】
What two IT infrastructure components are virtualized by vSphere Essentials? (Choose two.)___
A. Networks
B. Applications
C. Storage
D. Management
【多选题】
When attempting to access a virtual machine, an administrator is unable to login using the vSphere credentials. What two options are probable causes of the authentication failure? (Choose two.)___
A. The vSphere credentials have not been granted permissions.
B. The vSphere credentials are granted read-only permissions.
C. The vSphere credentials are granted no-access permissions.
D. The vSphere credentials are not a member of the local administrator group.
【多选题】
An administrator is performing a scripted installation of ESXi 6.x. In which three locations does the script need to be? (Choose three.)___
A. PXE Server
B. HTTPS
C. FTP
D. NFS
E. VVOLs Datastore
【多选题】
In order for a company to meet regulatory requirements, all ESXi 6.x Hosts must be configured to direct logs to a syslog server. What are two ways ESXi hosts can configured for this action? (Choose two)___
A. Use the esxcli system syslog command.
B. Edit them in the ESXi host Advanced System Settings.
C. From the Syslog collector user interface of the Web Client.
D. Syslog logging is not available for
E. SXi Hosts.
【多选题】
Which three actions can be executed when an alarm is triggered? (Choose three.)___
A. Send an email.
B. Send an SNMP trap.
C. Run a script or command.
D. Run an Orchestrator workflow.
E. Send a trigger to syslog.
【多选题】
An administrator is attempting to power on a virtual machine, but is unable to do so. Which two reasons are probable causes of the failure? (Choose two.)___
A. Storage access to the virtual machine swap file has been lost.
B. One of the virtual machine VMDK files is locked.
C. Virtual machine is running CentOS 7.0 64-bit.
D. Virtual machine has Hyper-Threading enabled.
【多选题】
An administrator has configured a host profile so that ESXi 6.x hosts will point to the corporate NTP server for time synchronization. The NTP server is located at 10.0.30.213, but time has not been synchronized properly across the ESXi hosts. The administrator reviews Host Profile settings as shown in the Exhibit. Which two steps are required to resolve the issue? (Choose two.)___
A. Correct the NTP server IP address.
B. Check the host for host profile compliance.
C. Remediate the host based on the updated host profile.
D. Change the NTP server to the FQDN as IP Addresses are not supported.
【多选题】
An administrator is attempting to migrate a large Hadoop virtual machine using vMotion. The administrator notices a delay when the machine is quiesced. The Hadoop virtual machine is processing many transactions a second to an in-memory database. Which two actions would help reduce the amount of time needed to perform a vMotion on this virtual machine? (Choose two.)___
A. Use multiple NICs for the vMotion vmkernel port.
B. Use a 10Gbps Network card for the vMotion vmkernel port.
C. Add an additional management network to help transmit the data quicker.
D. Disable Fault Tolerance before performing the vMotion.
【多选题】
An administrator is installing a new network card in an ESXi 6.x host that is part of a vSphere cluster. When the host is placed into maintenance mode, the vSphere Web Client displays the progress bar at 2% for over 30 minutes. Which two are likely reasons for this occurrence? (Choose two.)___
A. Maintenance mode is unable to migrate all virtual machines from the host.
B. There is a large number of virtual machines that must be migrated from the host.
C. VMware High Availability is in the process of reconfiguring the cluster.
D. Each virtual machine on the
E. SXi host must be reconfigured to recognize the new adapter.
【多选题】
Which two events happen when Distributed Resource Scheduler (DRS) is disabled? (Choose two.)___
A. The cluster's resource pool heirarchy and affinity rules are re-established when DRS is turned back on.
B. The cluster's resource pool hierarchy and affinity rules are not re-established when DRS is turned back on.
C. The cluster's resource pools are removed from the cluster.
D. The cluster's resource pools are removed from the cluster and assigned to the hosts.
【多选题】
Which two networking connection types can be configured on a virtual switch? (Choose two.)___
A. Virtual machine portgroups
B. VMkernel services (such as NFS, iSCSI, or vMotion) to the physical network
C. Web services over the Management Network
D. NFS and FCoE storage services
【多选题】
An administrator creates a DRS cluster of eight ESXi 6.x hosts. There are 10 virtual machines balanced across the hosts. An attempt to place the first host into maintenance mode fails. What are two reasons that the host failed to enter maintenance mode? (Choose two.)___
A. The DRS cluster Automation Level is set to Partially Automated mode.
B. One of the virtual machines on the ESXi Host entering maintenance mode is configured with a DRS Host affinity rule Should run on hosts in group.
C. One of the virtual machines on the ESXi Host entering maintenance mode is configured with a DRS Host affinity rule Must run on hosts in group.
D. One of the virtual machines on the
E. SXi Host entering maintenance mode is configured with an individual Automation Level set to Partially Automated.
【多选题】
When modifying a vApp, which two vSphere entities can be added? (Choose two.)___
A. A resource pool
B. A network pool
C. A vApp
D. A folder
【多选题】
From which two locations in the inventory hierarchy can you deploy a virtual machine using a template? (Choose two.)___
A. Directly from the template.
B. From a compute resource.
C. From an existing virtual machine.
D. From a Datastore.
【多选题】
A company has decided to implement Virtual SAN within their vSphere 6.x environment. The Virtual SAN cluster will be composed of three ESXi 6.x hosts that are on the Virtual SAN Ready Node list. Each ESXi host includes: <Two SAS Controllers that support Passthrough Mode> < Four Solid State Drives (SSDs) 1TB in size each> <20 SAS Magnetic Disks (MDs) 1TB in size each> <The SSDs and MDs are evenly split between the two SAS controllers>. The company will pilot a Virtual SAN cluster utilizing VMware best practices while maximizing storage capacity. The Virtual SAN cluster will use Manual Mode. Which two Disk Group configurations would meet the stated configuration requirements? (Choose two.)___
A. 4 disk groups with 1 SSD and 5 MDs each
B. 2 disk groups with 1 SSD and 7 MDs each
C. 2 disk groups with 2 SSDs and 7 MDs each
D. 2 disk groups with 1 SSD and 10 MDs each
【多选题】
A physical Windows 2008 R2 Server is converted to a virtual machine using VMware vCenter Converter. Upon completion of the conversion and subsequent power on operation, the virtual machine fails to boot and the message below is observed in the Console of the virtual machine: <STOP 0x0000007B INACCESSIBLE_BOOT_DEVICE>. Which two potential issues may be causing this boot failure? (Choose two.)___
A. An incorrect SCSI controller was selected during conversion.
B. Incompatible software drivers were migrated into the virtual machine from the source machine.
C. The vmdk file backing the virtual machine was thick provisioned.
D. A snapshot was taken immediately after the conversion completed.
【多选题】
An administrator is configuring the Failover Order option on a vSphere Distributed Switch. Which two options should be used with IP-hash load balancing? (Choose two.)___
A. Active Uplinks
B. Standby Uplinks
C. Unused Uplinks
D. Override Failover Order
【多选题】
An administrator is configuring the Maximum Transmission Unit value on a vSphere Distributed Switch. Which two options are typical values for ESXi networking? (Choose two.)___
A. 1492
B. 1500
C. 9000
D. 9089
【多选题】
Which two configurable options apply to both virtual machine CPU and memory allocation? (Choose two.)___
A. Reservation
B. Shares
C. Resource Pool
D. Reserve All
【多选题】
When attempting to power on a Virtual Machine you observe the following error: <Cannot open the disk '/vmfs/volumes/volume/vm/vm-000002.vmdk' or one of the snapshot disks it depends on.> Which three actions will be the best solutions to address this problem? (Choose three.)___
A. Verify that the virtual machine's disk files are present.
B. Investigate the host and virtual machine log files.
C. Verify the vmdk descriptor files and if required, recreate them.
D. Delete the disk file preventing the power on operation.
E. Migrate or register the virtual machine to a different host.
【多选题】
An administrator has been tasked with enabling High Availability ___ on a cluster in a vSphere 6.x environment with default settings. The cluster configures properly and there are no errors. The next day when powering on a virtual machine, an error is presented: <Not Enough Failover Resources>. Which three scenarios are likely causes of this error message? (Choose three.)(CDE)
A. The default VM Monitoring Sensitivity is set too high.
B. There are not enough datastore heartbeat datastores configured by default.
C. The default slot size in the cluster is set too high.
D. There are virtual machines with large CPU reservations.
E. A host is in maintenance mode for a replacement of a failed Hard Drive.
【多选题】
vMotion can be performed between which three physical boundaries? (Choose three.)___
A. Between two vCenter Server Systems
B. Between two vSphere Distributed Virtual Switches
C. Between two vCenter Server Datacenter objects
D. Between two VMware NSX Layer 4 segments
E. Between two NFS datastores
【多选题】
An administrator configures vSphere Replication for a virtual machine and enables multiple point in time (PIT) instances under the recovery settings in the Configure Replication wizard. Which two statements are correct for vSphere Replication with multiple point in time instances enabled? (Choose two.)___
A. vSphere Replication retains a number of snapshot instances of the virtual machine on the target site based on the retention policy that you specify.
B. vSphere Replication uses the virtual machine's snapshot instances to define the target site Point in Time instance based on the retention policy that you specify.
C. vSphere Replication does not support virtual machines with snapshots.
D. vSphere Replication supports virtual machines with snapshots.
【多选题】
An administrator is virtualizing a physical application server and adding it to an existing multi-tiered vApp. The application license is currently tied to the physical NIC's MAC address, so the administrator needs to ensure the license will function properly in the virtual machine. Which two actions can the administrator take to satisfy this task? (Choose two.)___
A. Set the MAC address for the vNIC in the guest operating system.
B. Install the physical server's NIC into the ESXi host.
C. Configure the MAC address for the vNIC using the vSphere Web Client.
D. Assign the physical server NIC's MAC address in the vSphere Distributed Switch.
【多选题】
Which two Fibre Channel zoning options are supported with vSphere 6.x? (Choose two.)___
A. Single-Initiator
B. Single-Initiator-Single-Target
C. Multiple-Initiators-Single-Target
D. Multiple-Initiators-Multiple-Targets
【多选题】
An administrator is attempting to remove an ESXi 6.x host from a vSphere Distributed Switch (vDS). When the administrator attempts to remove the host, the following error is observed: <The resource '16' is still in use.> What three steps are needed to successfully remove the host from the switch? (Choose three.)___
A. Select Manage Ports on the vDS for the host.
B. Locate all ports currently in use on the vDS for the host.
C. Migrate or delete any vmkernel or virtual machine adapters associated with the switch.
D. Remove all network cards from the switch before trying to remove the host.
E. Create a standard switch for everything to be automatically be migrated to.
【多选题】
Which two Virtual SAN related actions might start resynchronization of virtual machine objects? (Choose two.)___
A. Editing a virtual machine storage policy to increase the number of replicas.
B. Editing a virtual machine storage policy to reduce the number of replicas.
C. Editing a virtual machine storage policy to increase the number of disk stripes.
D. Editing a virtual machine storage policy to reduce the number of disk stripes.
【多选题】
An administrator is troubleshooting basic network connectivity issues. Which two scenarios are potential issues that this administrator might face? (Choose two.)___
A. The vSwitch is not attached to the correct physical network.
B. The portgroup is not configured to use correct VLAN.
C. Traffic shaping is configured incorrectly.
D. Jumbo frames is configured incorrectly.
【多选题】
Which three items should be validated prior to installing ESXi 6.x? (Choose three.)___
A. Remote Storage has been disconnected.
B. Installation media is available.
C. Server hardware clock is set to UTC.
D. Storage has been partitioned with a VMFS volume.
E. Network cards have been setup to use Jumbo
F. rames.
【多选题】
An administrator is performing an interactive installation of ESXi 6.x. Which three options are available for installation? (Choose three.)___
A. DVD
B. USB
C. PXE
D. Scripted
E. Auto Deploy
【多选题】
After installation of a host in your test environment, you need to move it to production. The only major change that needs to be made is that the hostname of the server needs to change. What are two ways that an administrator can change the host name without editing configuration files on the host directly? (Choose two.)___
A. Login to the Direct Console User Interface and change it from here.
B. Edit the Default TCP/IP Configuration from the vSphere Web Client.
C. Use the Ruby vSphere Client to send a script to the ESXi host that updates the hostname.
D. Update the information in DNS and the
E. SXi host will automatically update with these changes.
【多选题】
An administrator has unsuccessfully attempted several times to install an Operating System inside a virtual machine. The administrator finds that the installation fails at random intervals. Which two actions can be taken to resolve this issue? (Choose two.)___
A. Verify the md5sum and if invalid, download the installation files again.
B. Attempt the installation an additional time.
C. Attempt to use a different installation media or installation method.
D. Create a new virtual machine and attempt the installation with the existing media.
【多选题】
VMware tools is failing to install on a Microsoft Windows virtual machine. What are two possible situations that would prevent the installation? (Choose two.)___
A. The VMware tools installation media is corrupt.
B. The incorrect Operating System was selected in the virtual machine options.
C. The software prerequisites have not been installed.
D. The prerequisite services have not been started.
【多选题】
As part of a multisite Single Sign-On (SSO) deployment what two steps are required to ensure that a change to one Single Sign-On instance is propagated to the other instances? (Choose two.)___
A. Schedule a Replication Task on the primary instance
B. Select the first instance during the installation of subsequent instances
C. During the installation of each instance choose Linked-Mode
D. Enable Synchronize to Active Directory on each instance
【多选题】
You need to add an object to an existing vApp using the vSphere Web Client. How is this accomplished?___
A. Create an Object Inside the vApp.
B. Add an Object to a vApp.
C. Add an Object to the
D. atastore the vApp is located in.
【多选题】
Which three steps must be taken to use vSphere Update Manager 6.x to upgrade an ESXi 5.5 host to vSphere 6.x? (Choose three.)___
A. Download an ESXi Image.
B. Configure the vSphere Update Manager Download Service.
C. Create a baseline and attach it to the ESXi Host.
D. Scan the vCenter Content Library for the
E. SXi Image.
【多选题】
Which two options would allow a database administrator, with no access to the vSphere infrastructure, to connect to a virtual machine? (Choose two.)___
A. Use the Virtual Machine Remote Console (VMRC).
B. Use Remote Desktop Protocol (RDP) to connect.
C. Ask the vSphere administrator to grant permission to access the console through vCenter Server.
D. Ask the vSphere administrator to grant permission to access with the Horizon View Direct Connect Client.
欢迎使用我爱刷题
×
微信搜索我爱刷题小程序
温馨提示
×
请在电脑上登陆“www.woaishuati.com”使用