Practice: Programming
Untimed practice · 16 questions in this set
Score:
0 /
0
Change Topic
Question 1 of 16
Medium
Programming
Output: int a=10, b=20; a=a^b; b=a^b; a=a^b; print(a,b);
Question 2 of 16
Medium
Programming
What is the output of: print(len({1,2,2,3,3,3}))
Question 3 of 16
Medium
Programming
Output: print(bin(10))
Question 4 of 16
Medium
Programming
Output: int x=5; if(x++ > 5) print("Yes"); else print("No");
Question 5 of 16
Medium
Programming
Output: int a=5, b=2; printf("%d", a/b);
Question 6 of 16
Medium
Programming
Output: print(10 % 3 + 10 // 3)
Question 7 of 16
Medium
Programming
Output of: int x=5; int y = x++ * 2; print(y);
Question 8 of 16
Medium
Programming
Output: print("Python"[1:4])
Question 9 of 16
Medium
Programming
What is the output of: print(2 == 2.0)
Question 10 of 16
Medium
Programming
Output of: int x = 10; x += x++ + ++x; (in C/C++)
Question 11 of 16
Medium
Programming
Output: x = 5; print(x ** 2)
Question 12 of 16
Medium
Programming
Output: print("Hello"[::-1])
Question 13 of 16
Medium
Programming
Output of: x = [1,2,3]; y = x; y.append(4); print(len(x))
Question 14 of 16
Medium
Programming
Which loop executes at least once?
Question 15 of 16
Medium
Programming