Blogmepost
Latest Questions
Contact Us
What is the output of for x in [1, 2, 3]: print x?
Home
>
Technology
>
What is the output of for x in [1, 2, 3]: print x?
0
votes
14
views
What is the output of for x in [1, 2, 3]: print x?
asked
Nov 26, 2020
in
Technology
by
JackTerrance
(
191k
points)
Add Answer
1
Answer
0
votes
Answer is
1
2
3
answered
Nov 26, 2020
by
JackTerrance
(
191k
points)
Related questions
0
votes
1
answer
15
views
15
views
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
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
20
views
20
views
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
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
123
views
123
views
What is the output for the following function test(x) { while(x < 5) { x++; } return x; } alert(test(2)); 6 3 2 5
asked
Oct 9, 2020
in
Technology
by
JackTerrance
(
191k
points)
#javascript
#loans
#insurance
0
votes
1
answer
33
views
33
views
What is the output of 3 in [1, 2, 3]?
asked
Nov 26, 2020
in
Technology
by
JackTerrance
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
20
views
20
views
What is the output of L[1:] if L = [1,2,3]?
asked
Nov 26, 2020
in
Technology
by
JackTerrance
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
66
views
66
views
What is the output of L[2] if L = [1,2,3]?
asked
Nov 26, 2020
in
Technology
by
JackTerrance
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
107
views
107
views
What is the output of [1, 2, 3] + [4, 5, 6]?
asked
Nov 26, 2020
in
Technology
by
JackTerrance
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
15
views
15
views
What is the output of len([1, 2, 3])?
asked
Nov 26, 2020
in
Technology
by
JackTerrance
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
15
views
15
views
Code A: var x = 10; y = --x + 1; alert(y); Code B: var x = 10; y = x-- + 1; alert(y); What is the output for code A and B?
asked
Feb 23
in
Technology
by
JackTerrance
(
191k
points)
javascript
+1
vote
2
answers
27
views
27
views
Code A: var x = 10; y = --x + 1; alert(y); Code B: var x = 10; y = x-- + 1; alert(y); What is the output for code A and B?
asked
Oct 8, 2020
in
Technology
by
JackTerrance
(
191k
points)
#javascript
0
votes
1
answer
21
views
21
views
What is the output for the following function test(x) { while(x < 5) { x++; } return x; } alert(test(2));
asked
Feb 25
in
Technology
by
JackTerrance
(
191k
points)
javascript
0
votes
1
answer
26
views
26
views
What is the output for the following code (function f(){ function f(){ return 1; } return f(); function f() { return 2; } })();
asked
Feb 25
in
Technology
by
JackTerrance
(
191k
points)
javascript
0
votes
1
answer
207
views
207
views
What is the output for the following code (function f(){ function f(){ return 1; } return f(); function f() { return 2; } })();
asked
Oct 9, 2020
in
Technology
by
JackTerrance
(
191k
points)
#javascript
#carinsurance
#health-insurance
#medical-insurance
0
votes
1
answer
19
views
19
views
What is the output of the following expression? function multi(x,y) { var c = x*y; } multi(20,3);
asked
Feb 25
in
Technology
by
JackTerrance
(
191k
points)
javascript
0
votes
1
answer
53
views
53
views
What is the output of the following expression? function multi(x,y) { var c = x*y; } multi(20,3);
asked
Oct 9, 2020
in
Technology
by
JackTerrance
(
191k
points)
#javascript
#carinsurance
#health-insurance
#medical-insurance
0
votes
1
answer
22
views
22
views
In a Certain Country 1/2 of 5 = 3. If the same proportion holds, what is the value of 1/3 of 10 ? A) 4 B) 6 C) 8 D) 10
asked
Feb 12
in
Education
by
JackTerrance
(
191k
points)
logic-puzzles-questions-answers
0
votes
1
answer
13
views
13
views
What is the output of print tuple + tinytuple if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 ) and tinytuple = (123, 'john')?
asked
Nov 24, 2020
in
Technology
by
JackTerrance
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
18
views
18
views
What is the output of print tinytuple * 2 if tinytuple = (123, 'john')?
asked
Nov 24, 2020
in
Technology
by
JackTerrance
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
19
views
19
views
What is the output of print tuple[2:] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?
asked
Nov 24, 2020
in
Technology
by
JackTerrance
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
20
views
20
views
What is the output of print tuple[0] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?
asked
Nov 23, 2020
in
Technology
by
JackTerrance
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
14
views
14
views
What is the output of print tuple if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?
asked
Nov 23, 2020
in
Technology
by
JackTerrance
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
14
views
14
views
What is the output of print list1 + list2, if list1 = [ 'abcd', 786 , 2.23, 'john', 70.2 ] and ist2 = [123, 'john']?
asked
Nov 23, 2020
in
Technology
by
JackTerrance
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
13
views
13
views
What is the output of print tinylist * 2 if tinylist = [123, 'john']?
asked
Nov 23, 2020
in
Technology
by
JackTerrance
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
31
views
31
views
What is the output of print list[2:] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?
asked
Nov 23, 2020
in
Technology
by
JackTerrance
(
191k
points)
python-programming-language-interview-questions
0
votes
1
answer
15
views
15
views
What is the output of print list[0] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?
asked
Nov 23, 2020
in
Technology
by
JackTerrance
(
191k
points)
python-programming-language-interview-questions
...