You are 0% Programmer!
1. What is the output of the following Python code ? numbers = [1,2,3,4,5] result = 0 for num in numbers: result += num print(result)
numbers = [1,2,3,4,5] result = 0 for num in numbers: result += num print(result)
2. Which of the following statements is true about a stack data structure
3. What is the output of the following Javascript code: console.log("1" + 2 - 1);
4. What wil be the output of the following code ? a = [1, 2, 3] b = a c = [1, 2, 3] print(a == b) print(a is b) print(a == c) print(a is c)
5. What is the output of the following JavaScript code? let x = 5; let y = "5"; console.log(x == y); console.log(x === y);
let x = 5; let y = "5"; console.log(x == y); console.log(x === y);
6. Which of the following Python data types is immutable?
7. What is the time complexity of accessing an element from a hash table?
8. What will the following SQL query return? SELECT COUNT(*) FROM Users WHERE Age > 30;
SELECT COUNT(*) FROM Users WHERE Age > 30;