โ Correct Answer: B) 82
Explanation:
- "5 + 3" = "8"
- "8 + "2"" = ""82""
Java evaluates from left to right. Once a String is involved, "+" performs concatenation.
Did you get it right? ๐
#Java#CodingQuiz
Java developers, don't answer too quickly! ๏ฟฝ๏ฟฝ
What will this code print?
Pay attention to how Java evaluates the "+" operator.
Comment your answer: A, B, C, or D. ๐
#Java #CodingQuiz #Programming #100daycodechallenge
โ Correct Answer: C
Output:
[1, 2, 3] [1, 2, 3] [1, 2, 3]
Why?
The default argument "b=[]" is created only once when the function is defined.
- "func(1)" โ "[1]"
- "func(2)" โ "[1, 2]"
- "func(3)" โ "[1, 2, 3]"
#Python#CodingQuiz#Programming
Think you know Python lists? ๐
This one catches people who understand the basics but miss a subtle Python behavior.
What will this code print?
Reply with A, B, C, or D. No cheating! ๐
#Python#CodingQuiz#100DaysOfCode
Most Java beginners get this wrong ๐
What will this code print?
Donโt guessโtrace it carefully.
Reply with A, B, C, or D. ๐
#Java#CodingQuiz#Programming
Framework vs Library ๐จโ๐ป
They both help you build software faster, but there's one fundamental difference:
๐น Library: You call it when you need it.
๐น Framework: It provides structure and often calls your code.
Examples: โข Libraries โ React, NumPy, Axios
#Programming#WebDev
Frontend vs Backend vs Full-Stack โ hereโs the takeaway ๐
๐จ Frontend: UI, design, and user experience.
โ๏ธ Backend: Server logic, APIs, and databases.
๐ Full-Stack: Works across both frontend and backend.
Beginner tip: Start with one side
#Programming#WebDevelopment#Coding
Frontend vs Backend vs Full-Stack ๐จโ๐ป
Whatโs the difference ?
๐จ Frontend โ Builds what users see and interact with.
โ๏ธ Backend โ Handles logic, databases, and server-side operations.
๐ Full-Stack โ Works across both frontend and backend
#Programming#WebDev#tech#Coding
One detail worth knowing ๐
DNS doesnโt always need to look up a domain every time you visit a website.
Your browser or OS may already have the IP address cached.
Thatโs one reason repeat visits can be faster.
#WebDevelopment
You type a URL and a website appears.
But what actually happens between those two moments? ๐
DNS,HTTPS,HTTP requests, servers, and browser renderingโall working together.
Hereโs the journey, simplified into 7 steps.
Which step did you find most interesting?
#WebDev#Tech
Correct answer: B โ "[4, 16]"
Why?
1. "map()" applies the function to every element.
2. The numbers are squared.
3. "filter()" keeps only the values satisfying the condition.
Remember: "map()" transforms. "filter()" selects.
#Python#Programming#Coding
โ Java String Pool โ Answer
Expected output:
true
false
true
Explanation:
- "a == b" โ "true" because identical String literals share the same pooled object.
- "a == c" โ "false" because "new String()" creates a separate object.
โ Correct Answer: C
Expected output:
false
true
๐ก "==" compares object references, while ".equals()" compares String content.
Remember: Use ".equals()" when comparing the actual text of two Java Strings. โ
๐ Can you predict the output?
A, B, C, or D? ๐
Think carefully before answering. Drop your choice below! ๐ป
#Python#Programming#Coding@PythonPr
@PythonPr โ Correct Answer: B
Expected output:
[10, 2, 3, 4, 5]
[1, 4, 9, 16]
๐ก Explanation:
- "squares" is created before "nums" changes.
- "nums[0] = 10" changes the original list.
- "nums.append(5)" adds "5" to the original list.
- "squares" remains same bcz of a separate list.