TGViewer
Channel Public Channel
Programming Quiz Channel

Programming Quiz Channel

@programming_quizz

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
Subscribers
797
Photos
81
Videos
4
Links
0

Showing posts older than #531 ยท Back to latest

Older Posts 20 shown
Post #530 125
Topic: Debugging & Code Output

๐Ÿ” Quick look before the question:

for i in range(5):
if i == 3:
continue
print(i)
Post #525 114
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);
}
}
Post #516 127
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)
Post #512 126
  • โค 3
Older posts โ†’
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’