Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
What is the output of len([1, 2, 3])?
Home
Technology
What is the output of len([1, 2, 3])?
asked
Nov 26, 2020
in
Technology
by
JackTerrance
What is the output of len([1, 2, 3])?
interview-question-answer
technology-questions-answers
1
Answer
0
votes
answered
Nov 26, 2020
by
JackTerrance
Answer is
3.
Related questions
0
votes
Q: What will be the output of the following Python function? len(["hello",2, 4, 6])
What will be the output of the following Python function? len(["hello",2, 4, 6]) a) Error b) 6 c) 4 d) 3...
asked
Jan 2, 2023
in
Technology
by
JackTerrance
python-question-answer
0
votes
Q: Write the output of the following code:str2=list(“***@123*”)for l in range(len(str2)-1):if l==5:
Write the output of the following code: str2=list( ***@123* ) for l in range(len(str2)-1): if l==5: str2[i ... str2[i]='D' print(str2) Select the correct answer from above options...
asked
Dec 23, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What will be the output of the following Python code snippet? for i in [1, 2, 3, 4][::-1]: print (i)
What will be the output of the following Python code snippet? for i in [1, 2, 3, 4][::-1]: print (i) a) 4 3 2 1 b) error c) 1 2 3 4 d) none of the mentioned...
asked
Jan 2, 2023
in
Technology
by
JackTerrance
python-questions-answers
0
votes
Q: What is the output of L[1:] if L = [1,2,3]?
What is the output of L[1:] if L = [1,2,3]?...
asked
Nov 26, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of L[2] if L = [1,2,3]?
What is the output of L[2] if L = [1,2,3]?...
asked
Nov 26, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of for x in [1, 2, 3]: print x?
What is the output of for x in [1, 2, 3]: print x?...
asked
Nov 26, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of 3 in [1, 2, 3]?
What is the output of 3 in [1, 2, 3]?...
asked
Nov 26, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of [1, 2, 3] + [4, 5, 6]?
What is the output of [1, 2, 3] + [4, 5, 6]?...
asked
Nov 26, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of print tuple[1:3] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?
What is the output of print tuple[1:3] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?...
asked
Nov 24, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of print list[1:3] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?
What is the output of print list[1:3] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?...
asked
Nov 23, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: Two vectors M and N are defined as M <- c(3, 2, 4) and N <- c(1, 2). What will be the output of vector Z that is defined as Z <- M*N.
Two vectors M and N are defined as M...
asked
Feb 12, 2022
in
Education
by
JackTerrance
r
programming
c
0
votes
Q: What will be the output of the following Python code? >>>list1 = [1, 3] >>>list2 = list1 >>>list1[0] = 4 >>>print(list2)
What will be the output of the following Python code? >>>list1 = [1, 3] >>>list2 = list1 >>>list1[0] = 4 >>>print(list2) a) [1, 4] b) [1, 3, 4] c) [4, 3] d) [1, 3]...
asked
Jan 2, 2023
in
Technology
by
JackTerrance
python-questions-answers
0
votes
Q: What will be the output of the following Python function? min(max(False,-3,-4), 2,7)
What will be the output of the following Python function? min(max(False,-3,-4), 2,7) a) -4 b) -3 c) 2 d) False...
asked
Jan 2, 2023
in
Technology
by
JackTerrance
python
0
votes
Q: What is the output for the following function test(x) { while(x < 5) { x++; } return x; } alert(test(2)); 6 3 2 5
What is the output for the following function test(x) { while(x < 5) { x++; } return x; } alert(test(2)); A) 6 B) 3 C) 2 D) 5 #insurance and Loans...
asked
Oct 9, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
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
...