题目
MUF0052 ICT Unit 2 - Semester 1, 2025
单项选择题
Looking at the Python code below, choose the correct output if the name entered is “Hannah”:
选项
A.a. Hannah H@nn@h
B.b. H@nn@h H@nn@h
C.c. Hannah Hann@h
D.d. HANNAH H@NN@H
查看解析
标准答案
Please login to view
思路分析
First, notice the code flow: it reads a name from input and prints it, then replaces the lowercase letter a with @ in that string and prints the result.
The input provide......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
What is the results stored in variable str?string strURL = "http://www.nyp.edu.sg";var str = str.Substring(IndexOf('.',4);
Write a generic expression using string manipulation to check if the following email has a username of more than 4 characters String user = "username"; if ( ___________________)
Write the generic expression using string manipulation to extract the month information of a date of birth (DOB) from the following string:String strDOB = "My date of birth is 15/12/2008 (DD/MM/YYYY)";String month = strDOB.Substring( ____________ ) ;
What is the correct string manipulation syntax to extract the first 2 digits of the admin number? string str = "170064B";
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!