fa
Feedback

فریب کلاهبرداران را نخورید! تل‌متریو این کانال‌ها را شناسایی و برچسب‌گذاری می‌کند 👉 برای مشاهده برچسب، اشتراک تهیه کنید

Programming Quiz Channel

Programming Quiz Channel

رفتن به کانال در Telegram

Programming quizzes and knowledge tests Short quizzes on programming, logic and computer science. Test and improve your coding knowledge. Join 👉 https://rebrand.ly/bigdatachannels DMCA: @disclosure_bds Contact: @mldatascientist

نمایش بیشتر
803
مشترکین
+124 ساعت
+27 روز
+1230 روز
آرشیو پست ها
What does this print?
Anonymous voting

Topic: Debugging & Code Output 🔍 Quick look before the question:

def outer():
    result = []
    for i in range(3):
        def inner():
            return i
        result.append(inner)
    return [f() for f in result]

print(outer())

Why is wrapping both UPDATEs in a single transaction important here?
Anonymous voting

Topic: SQL 🔍 Quick look before the question:

BEGIN TRANSACTION;
UPDATE accounts SET balance = balance - 200 WHERE id = 1;
UPDATE accounts SET balance = balance + 200 WHERE id = 2;
COMMIT;

What gets printed?
Anonymous voting

Topic: Debugging & Code Output 🔍 Quick look before the question:

for i in range(5):
    if i == 3:
        continue
    print(i)

In Python, what is the result of 3 ** 2?
Anonymous voting

What does Array.prototype.map() return?
Anonymous voting

What does the SQL DISTINCT keyword do?
Anonymous voting

What will counter reliably print, and why?
Anonymous voting

Topic: Java 🔍 Quick look before the question:

public class Test {
  static int counter = 0;

  static synchronized void increment() {
    counter++;
  }

  public static void main(String[] args) throws InterruptedException {
    Thread t1 = new Thread(() -> {
      for (int i = 0; i < 1000; i++) increment();
    });
    Thread t2 = new Thread(() -> {
      for (int i = 0; i < 1000; i++) increment();
    });
    t1.start(); t2.start();
    t1.join(); t2.join();
    System.out.println(counter);
  }
}

Which Python keyword defines a named function?
Anonymous voting

What is a key difference between arrow functions and regular functions regarding 'this'?
Anonymous voting

Which collection interface in Java does not allow duplicate elements?
Anonymous voting

Why might explaining your algorithm's time and space complexity unprompted be a good habit in a coding interview?
Anonymous voting

What does idempotent mean for a function or operation, outside the specific API context?
Anonymous voting

Why might an interviewer intentionally give you an ambiguous or underspecified problem?
Anonymous voting

What does technical debt refer to?
Anonymous voting

What does this print?
Anonymous voting

Topic: Debugging & Code Output 🔍 Quick look before the question:

def modify(lst):
    lst.append(100)
    lst = [1, 2, 3]
    lst.append(200)

original = [0]
modify(original)
print(original)