< Ace Coding /> πŸš€
337 subscribers
54 photos
2 videos
95 files
66 links
Welcome to Ace Coding! Join us for tips, tutorials, and insights on coding and software engineering. Stay updated with the latest content and elevate your programming skills!Let's learn and grow together in the world of software engineering!
Download Telegram
Which is a valid class name?
Anonymous Quiz
28%
a) Car
3%
b) 123Car
5%
c) $Car
65%
d) a and c
Which of these is NOT a keyword in Java?
Anonymous Quiz
0%
a) static
5%
b) abstract
54%
c) include
41%
d) transient
How many methods are defined in the String class?
Anonymous Quiz
22%
a) 20
20%
b) 30
54%
c) 50
5%
d) 60
What is the correct output of System.out.println((10 + 3) , \" Hello\");?
Anonymous Quiz
19%
a) 13 Hello
3%
b) 10 3 Hello
0%
10 + 3 Hello
0%
c) 10 + 3 Hello
78%
d) Error
What is the correct output of System.out.println(10 + 3 + " Hello");?
Anonymous Quiz
58%
a) 13 Hello
19%
b) 10 3 Hello
3%
c) 10 + 3 Hello
19%
d) Error
OOP_Questions_and_Answers.pdf
3.1 KB
βœ… OOP 2024 Mid Exam prep

🟒 Chapter 1 and 2

πŸ“— @AceCoding join and share for more.
πŸ‘1
Forwarded from < Ace Coding /> πŸš€
Mosh-cheat-sheets.zip
7.1 MB
πŸš€ Cheat Sheets by Mosh πŸš€

Quick reference for Java, Python, SQL, and Git! πŸ“š

β˜•οΈ Java Cheat Sheet
🐍 Python Cheat Sheet
πŸ“Š SQL Cheat Sheet
πŸ’» Git Cheat Sheet


Stay tuned for more! πŸ”₯
πŸŒŸπŸš€ @AceCoding Presents! πŸš€πŸŒŸ

#Java #Python #SQL #Git #CheatSheet
Forwarded from < Ace Coding /> πŸš€
if (10 > 5) 
int sum = 10 + 5;

System.out.println(sum);
Forwarded from < Ace Coding /> πŸš€
What’s wrong with the above snippet of code?
Anonymous Quiz
40%
a. Perfectly fine
14%
b. Sum is not printed
21%
c. Runtime error
24%
d. Compilation error
Forwarded from < Ace Coding /> πŸš€
Predict the output:

    int i = 0;
while (++i < 5);
cout << "i: " << i << endl;
Forwarded from < Ace Coding /> πŸš€
Predict the output:

    int x = 5;
int y = 10;
(x > y ? x : y) = 50;
cout << "x: " << x << ", y: " << y << endl;
Forwarded from < Ace Coding /> πŸš€
Predict the output:

    int a = (3, 4, 1, 2); 
cout << a ;
Forwarded from < Ace Coding /> πŸš€
πŸ“ Types of Errors in a Program: πŸ’₯βš‘οΈπŸ”

πŸ’₯ Compilation Error: (Cannot compile, cannot run)
Occurs when the code has syntax issues, preventing it from being compiled. Common examples include missing semicolons, mismatched parentheses, or undeclared variables.
Example: int x = ;


⚑️ Runtime Error: (Compiles but cannot run, compilation comes before code execution or running)
Happens while the program is running. It usually occurs due to illegal operations like division by zero, accessing invalid memory, or infinite loops.
Example: int x = 5 / 0;


πŸ” Logical Error: (Code compiles and runs but won't result a correct output)
Occurs when the code runs without crashing, but it produces incorrect results due to flawed logic or assumptions. It can be tricky to spot as the program compiles and runs fine.
Example: int a = 5; int b = 2; cout << a - b; (Expecting multiplication but using subtraction)


πŸŒŸπŸš€ @AceCoding Presents! πŸš€πŸŒŸ
πŸ‘1