Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Write the output of the following code:str2=list(“***@123*”)for l in range(len(str2)-1):if l==5:
Home
Education
Write the output of the following...
asked
Dec 23, 2021
in
Education
by
JackTerrance
Write the output of the following code: str2=list(“***@123*”) for l in range(len(str2)-1): if l==5: str2[i]=str2[i]*2 elif(str2[i].isupper( )): str2[i]=str2[i]*2 elif (str2[i].isdigit( )): str2[i]=’D’ print(str2) Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 23, 2021
by
JackTerrance
Best answer
[‘CC’, ‘a’, ‘m’, ‘@’, ‘D’, ’22’, ‘D’, ‘*’]
Related questions
0
votes
Q: Write pseudo code to count occurrence of a given number in the list. For example, consider the following list, if user enters 5 then display “2 times” because “5” occurs 2 times in the list.
Write pseudo code to count occurrence of a given number in the list. For example, consider the following list, if ... in the list. Select the correct answer from above options...
asked
Nov 28, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: >>> list(range(0, -9,-1)) will print[-1, -2, -3, -4,-5, -6, -7, -8)[0,-1, -2, -3, -4,-5, -6, -7, -8][0,-1, -2, -3, -4, -5, -6, -7, -8,-9)
>>> list(range(0, -9,-1)) will print [-1, -2, -3, -4,-5, -6, -7, -8) [0,-1, -2, -3, -4,-5, -6, -7, -8 ... [0,-1, -2, -3, -4,-5, -6, -7] Select the correct answer from above options...
asked
Dec 28, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Analyse the given program segment and answer the following questionsi) write the output of the program segment ii)how many times does the body of the loop gets executefor(int m=5 ; m<=20 ;m+=5){if (m%3= = 0)break;elseif (m%5= = 0) System.out.println(m) continue;}
Analyse the given program segment and answer the following questions i) write the output of the program segment ii)how many times ... body of the loop gets execute for(int m=5 ; m...
asked
Nov 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: 1. Predict the output of the following operations if x=5 and y=3.
1. Predict the output of the following operations if x=5 and y=3. x>=10&& y>=4 f. x>=1 || y>=4 Select the correct answer from above options...
asked
Dec 21, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Question No.1: What do you understand about container tag and empty tag, give example?Question No.2: What do you understand about attributes of tag, give example?Question No.3: What do you mean about face attribute of font tag?Question No.4: Write syntax of Body tag along with all the attributes?Question No.5: What do you understand about a list in HTML?Question No.6: How many type of lists can be created in HTML? Explain them.Question No.7: Write small program in HTML to generate two different types of list.
Question No.1: What do you understand about container tag and empty tag, give example? Question No.2: What do ... all the attributes? Select the correct answer from above options...
asked
Nov 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program Using random number generation create a file of 10000 integers in the range 1 to 20000
Write a program Using random number generation create a file of 10000 integers in the range 1 to 20000 Select the correct answer from above options...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What will be the output produced by following code statements? State reason(s).i. (17%5) == (17%5.0)ii. (87 // 5.0) == (87 / 5.0)
What will be the output produced by following code statements? State reason(s). i. (17%5) == (17%5.0) ii. (87 // 5 ... int((87 / 5.0)) Select the correct answer from above options...
asked
Dec 19, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What will be the output produced by following code statements? State reason(s).i. (17%5) == (17%5.0)ii. (87 // 5.0) == (87 / 5.0)
What will be the output produced by following code statements? State reason(s). i. (17%5) == (17%5.0) ii. (87 // 5 ... int((87 / 5.0)) Select the correct answer from above options...
asked
Dec 18, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: In Java,what will be the output of the following code and how?double x=2.9,y=2.5;(SOP is abbreviated form of System.out.println)SOP(Math.min(Math.floor(x),y));SOP(Math.max(Math.ceil(x),y));
In Java, what will be the output of the following code and how? double x=2.9,y=2.5; (SOP is abbreviated form ... x),y)); Explain how Select the correct answer from above options...
asked
Nov 28, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Let a(l), b(l) represent in input-output pairs, where “l” varies in natural range of no.s, then if a(l)=!b(l)?
Let a(l), b(l) represent in input-output pairs, where l varies in natural range of no.s, then if ... heteroassociation (d) none of the mentioned Please answer the above question....
asked
Sep 3, 2022
in
Education
by
JackTerrance
artificial
intelligence
ai
latest
questions
and
answer
0
votes
Q: Write the HTML code to get the line with 5 as thickness, length 50% and color as red
Write the HTML code to get the line with 5 as thickness, length 50% and color as red Select the correct answer from above options...
asked
Dec 24, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What is the output of len([1, 2, 3])?
What is the output of len([1, 2, 3])?...
asked
Nov 26, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: Suppose L= [10, [“Kavya”, “Joshika”,”Deepa”],3,’Harini’]Consider the above list and answer the following
Suppose L= [10, [ Kavya , Joshika , Deepa ],3,'Harini'] Consider the above list and answer the ... . computer class 11 python Select the correct answer from above options...
asked
Dec 20, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write the steps for moving the first line on the paragraph to 1.5 cm from margin in a computer system
write the steps for moving the first line on the paragraph to 1.5 cm from margin in a computer system Select the correct answer from above options...
asked
Dec 13, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write html code to set the BGCOLOR as NAVY, header 1<H1> text“Text Example with size, colour and font face’’ as WHITE, text font
Write html code to set the BGCOLOR as NAVY, header 1 text Text Example with size, colour and font face'' as ... font face ARIAL . Select the correct answer from above options...
asked
Dec 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...