431 subscribers
154 photos
10 videos
25 files
66 links
For Any Information @TechnerdGuy
πŸ†˜ Pre-Engineering Students Struggling with C++? πŸ˜₯ Fear not! πŸ’ͺ This channel is your coding lifesaver! πŸš‘ Learn the basics, ace your course! πŸ’―
Download Telegram
Hey, what's up? πŸ˜„

I'm really sorry πŸ™ I won't have notes ready for today's class because this week has been tough πŸ’ͺβ€”mid-term exams got me! πŸ“š I don't think we'll kick off chapter 3 today, but I'm going to whip up a quiz πŸ“ on chapters 1 and 2 to see how much you all understand! πŸ€”βœ¨

@ProgrammingWithFaith
πŸ”₯2
The quiz will cover last year's mid-term exam and some important concepts.

Should I prepare for it today?
πŸ‘10
🎲 Quiz 'C++ Basics chapter 1 & 2'
πŸ–Š 10 questions Β· ⏱ 1 min
πŸ‘1
Betam easy nw esti give it a shot ......
πŸ‘3πŸ”₯2
How was the quiz .....


Is it goodπŸ‘ or bad....πŸ‘Ž?
πŸ‘6
C++ Basics via @QuizBot
🎲 Quiz 'C++ Basics chapter 1 & 2' πŸ–Š 10 questions Β· ⏱ 1 min
Hey guys ezi quiz lay and teyak wrong nw ena delete adergewalew......but sry confuse sle aderkuwachu....prepare saderg nw mistake happen yadergewπŸ™πŸ™πŸ™πŸ™πŸ™
πŸ‘1
3. Which of the following is NOT a characteristic of a well-defined algorithm?
  a) Unambiguous instructions.
  b) A finite number of steps.
  c) The use of random numbers at every step.
  d) A clear starting and ending point.


Answer C.

Use of random numbers at every step make it the algorithm unpredictable and unreliable.
πŸ™2
Join Jimma University’s Biggest TechFusion Club!

πŸ”₯ Membership Registration is Open Nowβ€”Network, Learn & Innovate with the Best!


πŸ“’ Limited Spots! Apply Today ➑️ Registration link


#TechFusionJU #JoinNow
πŸ”₯3πŸ‘2
Anyone who is interested can apply.

Don't miss this opportunity.πŸ™
Question:

Given:
int x = 7;
int y = 3;
int z = x & y;

What is the value of
z?

Explanation:

The question is asking us to determine the value of z after performing a bitwise AND operation between x and y.

Remember: z = x & y means z will store the result of a bitwise AND between x and y.

The bitwise AND operation works by comparing the corresponding bits of two numbers. It takes the bits one by one and the rules is:

β€’  If both bits are 1, the result is 1.
β€’  Otherwise, the result is 0.

First, we need to convert x (7) and y (3) into their binary representations:

β€’  7 = 0111 (Binary)
β€’  3 = 0011 (Binary)

Now, let's perform the bitwise AND operation:

0111 (x = 7)
& 0011 (y = 3)

0011 (z)


β€’  Bit 0 (rightmost): 1 AND 1 = 1
β€’  Bit 1: 1 AND 1 = 1
β€’  Bit 2: 1 AND 0 = 0
β€’  Bit 3 (leftmost): 0 AND 0 = 0

So, the result of the bitwise AND operation is 0011 in binary.

Finally, we convert the binary result (0011) back to decimal:

β€’  0011 (Binary) = 3 (Decimal)

Therefore, the value of z is 3.
Answer: z = 3
πŸ‘5
Ready For QuizπŸ’»πŸƒπŸ“š
πŸ‘2
QUIZ


Topic: Increment and Decrement

1. int a=5;
  int  x=++a + ++a;
  cout<<x;


2. int a=5;
   int b=6;
   Cout<< ++a + b++;
   Cout<<b;

3. int x, a, b, c;
a = 2;
b = 4;
c = 5;
x = a--+ b++ -++c;
cout<<x;

4. int x, a;
a = 2;
x = ++a *--a *++a;
cout<<x;

5. int x, a = 4;
x = ++a + ++a + ++a;

cout<<x;


Provide the output of each code snippets and justify your answer with a detailed explanation .

@ProgrammingWithFaith
πŸ‘4πŸ”₯2
C++ Basics pinned Β«QUIZ Topic: Increment and Decrement 1. int a=5;   int  x=++a + ++a;   cout<<x; 2. int a=5;    int b=6;    Cout<< ++a + b++;    Cout<<b; 3. int x, a, b, c; a = 2; b = 4; c = 5; x = a--+ b++ -++c; cout<<x; 4. int x, a; a = 2; x = ++a *--a *++a; cout<<x;…»
C++ Basics
QUIZ Topic: Increment and Decrement 1. int a=5;   int  x=++a + ++a;   cout<<x; 2. int a=5;    int b=6;    Cout<< ++a + b++;    Cout<<b; 3. int x, a, b, c; a = 2; b = 4; c = 5; x = a--+ b++ -++c; cout<<x; 4. int x, a; a = 2; x = ++a *--a *++a; cout<<x;…
1.int a=5;
int x=++a + ++a;
(6+ ++a)
(7+7) coz one variable can't hold two different value , (6 and 7 ) at the same time so it become 7.

7+7=14

Answer 14

2.int a=5;
   int b=6;
   
   Cout<<++a +b++// post and pre increment .
  6+6 // after this line b will be 7
Cout<<++a +b++;  (6+6)
=12
Cout<<b;
=7

answer=12 and 7

3.int x,a,b,c;
a=2;
b=4;
c=5;
x=a-- + b++ - ++c;

(2+4)-6
=6-6=0
cout<<x;  

Answer 0

4.int x,a;
a=2
x=++a *--a* ++a
(3*2) * ++a , but one variable can't hold two values at the same time.

So, (2*2)*++a
    (4*3)=12

cout<<x;// 12

Answer 12


5.int x,a=4;
x=++a + ++a + ++a;

(++a + ++a) + ++a
(5+6) + ++a but we can't store two value at one variable at the same time.

So,
(6+6)+ ++a
(12)+ 7

Answer 19
πŸ‘9❀1
Hey guys, is everything going well? πŸ‘
We're doing great so far! πŸŽ‰ But today, I want to hear your thoughts πŸ€” on this channel and the lectures I've been giving. Have they been helpful for you? πŸ™ And are there any areas that could be improved? πŸ› οΈ

Please share your thoughts; your feedback will help me create more awesome content 🀩 and improve the channel! πŸš€

If you have  any questions or comments , Dm me.

@ProgrammingWithFaith
πŸ‘6πŸŽ‰5πŸ”₯1
Hello, dear students.

πŸ”ΉYour midterm exam will be given on paper.
Please open Telegram to view this post
VIEW IN TELEGRAM
⭐Mid-Exam ContentsπŸ‘‡πŸ‘‡πŸ‘‡

⭐Communicative English 2 Chapter 1 and 2

⭐Anthropology       Chapter 1 - 3 (up to Marriage)

⭐Civics            Chapter 1 and 2 (up to non-normative ethics)

⭐Emerging Technology  Chapter 1 - 3 (up to history of AI)

⭐Entrepreneurship  Chapter 1 and 3

⭐Applied Maths    Chapter 3 and 4
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘4❀2