β 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.