C++ Basic 2018 (Batch-2)
765 subscribers
277 photos
11 videos
30 files
74 links
๐ŸŽฏ C++ Basic 2018 (Batch 2) - Pre-Engineering Edition
My second family of coders! ๐Ÿ‘จโ€๐ŸŽ“๐Ÿ‘ฉโ€๐ŸŽ“
Specifically for 2018 pre-engineering students finding C++ challenging.
We turn confusion into clarity, one concept at a time.
Join the struggle bus - destination
Download Telegram
Multiple Choice

1. What is Machine Language primarily composed of?
a) English words
b) Binary code (0s and 1s)
c) Mnemonic codes
d) High-level commands

2. What is the purpose of an Assembler?
a) To translate High-Level Language into Machine Language
b) To translate Machine Language into Assembly Language
c) To translate Assembly Language into Machine Language
d) To execute code line by line

3. Which characteristic best describes High-Level Programming Languages?
a) Difficult for humans to read and write
b) Directly understandable by computers
c) Easy for humans to read and write
d) Based on binary code

4. What is the key difference between a Compiler and an Interpreter?
a) A Compiler executes code line by line, while an Interpreter translates the whole code at once.
b) An Interpreter translates the whole code at once, while a Compiler executes code line by line.
c) A Compiler translates the whole code into machine code before execution, while an Interpreter translates and executes code line by line.
d) There is no difference between a Compiler and an Interpreter; they perform the same function.

5. Which flowchart shape is used to represent a process or action?
A) Oval
B) Parallelogram
C) Rectangle
D) None

6. Who is widely recognized as the first computer programmer in history?
A) Grace Hopper
B) Ada Lovelace
C) Alan Turing
D) Charles Babbage

True / False

1. Machine Language is directly understandable by a computer.

2. High-Level Programming Languages can be executed directly by a computer without translation.
โค5๐Ÿ”ฅ2
Thanks for participating. ๐Ÿ™๐Ÿ™๐Ÿ™
๐Ÿฅฐ4๐Ÿ˜1
The course has started! Please register as soon as possible to ensure you don't miss out. If you want to achieve a good grade and gain a deep understanding of C++, now is the time to act!

@ProgrammingWithFaith_bot
๐Ÿ”ฅ2
โšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšก
โšกCompilation vs. interpretationโšก
Computer programming แ‹จแŠ แŠ•แ‹ต programming language elements  แ‹จแˆšแˆแˆˆแŒˆแ‹แŠ• แ‹แŒคแ‰ต แŠฅแŠ•แ‹ฒแ‹ซแˆ˜แŒก แ‰ แ‰…แ‹ฐแˆ แ‰ฐแŠจแ‰ฐแˆ แ‹จแˆ›แ‰€แŠ“แ‰ แˆญ แ‰ฐแŒแ‰ฃแˆญ แАแ‹แข The effect could be different in every specific case - it's up to the programmer's imagination, knowledge and experience.

แ‹ญแˆ… composition แ‹ฐแŒแˆž แ‰ตแŠญแŠญแˆ แˆ˜แˆ†แŠ• แŠ แˆˆแ‰ แ‰ต in many senses:

#alphabetically - แŠ แŠ•แ‹ต program แŒแˆแ… แ‰ แˆ†แŠ‘ แŠแ‹ฐแˆ‹แ‰ต แˆ˜แƒแ แŠ แˆˆแ‰ แ‰ตแข

#lexically - แŠฅแ‹ซแŠ•แ‹ณแŠ•แ‹ฑ programming language แ‹จแˆซแˆฑ dictionary แŠ แˆˆแ‹; แ‹ญแˆ… แ‹ฐแŒแˆž แŠจnatural language dictionary แ‰ แ‰ฅแ‹™ แ‰€แˆˆแˆ แ‹ซแˆˆ แАแ‹แข

#syntactically - แŠฅแ‹ซแŠ•แ‹ณแŠ•แ‹ฑ แ‰‹แŠ•แ‰‹ แ‹จแˆซแˆฑ แ‹ญแˆ†แА แˆ…แŒ แŠ แˆˆแ‹ แŠฅแŠ“แˆ they must be obeyed for communication to occur

#semantically - the program has to make sense
แАแŒˆแˆญ แŒแŠ• program แ‹จแƒแˆแ‹ แˆฐแ‹ แˆŠแˆณแˆณแ‰ต แ‹ญแ‰ฝแˆ‹แˆ แ‹จแ‹šแ‹ซแŠ• แŒŠแ‹œ แ‹ฐแŒแˆž Each of them can cause the program to become completely useless.

แˆˆแˆแˆณแˆŒ แŠ แŠ•แ‹ต program แ‰ แ‰ตแŠญแŠญแˆ แ…แ‹แ‰ฝแŠ‹แˆ แ‰ฅแˆˆแŠ• แŠฅแŠ“แˆตแ‰ฅแฃ  แŠฎแˆแ’แ‹แ‰ฐแˆซแ‰ฝแŠ• แ‹ญแˆ„แŠ• program execute แŠฅแŠ•แ‹ฒแ‹ซแˆจแŒแˆแŠ• แ‰ แˆแŠ•แ‹ต แАแ‹ แ‹จแˆแŠ“แˆณแАแ‹จแ‹?๐Ÿค”

แ‹จแ†แแАแ‹แŠ• program in to  a machine language render แˆ›แˆจแŒ แ‹ญแŠ–แˆญแ‰ฅแŠ“แˆแฃ Luckily, the translation can be done by a computer itself, making the whole process fast and efficient.

High Programming Language แ‹ˆแ‹ฐ machine language แ‹จแˆแŠ•แ‰€แ‹ญแˆญแ‰ฃแ‰ธแ‹ แˆแˆˆแ‰ต แˆ˜แŠ•แŒˆแ‹ถแ‰ฝ แŠ แˆ‰:

โšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšก

#1_COMPILATION - source program แŠ แŠ•แ‹ด translated แ‹ญแˆ†แŠ“แˆ (however, แ‹ญแˆ…แŠ• each time source code แ‰ แ‰ฐแ‰€แ‹ซแ‹จแˆจ แ‰แŒฅแˆญ modify แŠฅแŠ“แˆจแŒ‹แˆˆแŠ• by getting a file (e.g., an .exe file if the code is intended to run under MS Windows) machine code แ‹จแ‹ซแ‹˜ แˆ›แˆˆแ‰ต แАแ‹; then create แ‹ซแˆจแŒแАแ‹แŠ• file  distribute แˆ›แˆจแŒ แŠฅแŠ•แ‰ฝแˆ‹แˆˆแŠ• ; แ‹ญแˆ„แŠ•แŠ• translate แ‹จแˆšแ‹ซแˆจแŒแˆแŠ• program  compiler แ‹ˆแ‹ญแˆ translator แ‹ญแ‰ฃแˆ‹แˆแข

Eg of compiled languages: C, C++, C#

โšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšกโšก

#2_INTERPRETATION - แ‹จแŠ แŠ•แ‹ต written code แ‰ฐแŒ แ‰ƒแˆš แˆแˆ‰ source program each time run แˆ›แˆจแŒ แˆฒแˆแˆแŒ translateแ‹ซแˆจแŒˆแ‹‹แˆ; แ‹ญแˆ„แŠ•แŠ• แ‹จแˆšแ‹ซแˆจแŒแˆแŠ• program แ‹ฐแŒแˆž interpreter แ‹ญแ‰ฃแˆ‹แˆแฃ แŠ แˆตแ‰ฐแˆญแŒ“แˆš แŠฅแŠ•แ‹ฐแˆ›แˆˆแ‰ต แАแ‹แข แˆแŠญแŠ’แ‹ซแ‰ฑ แ‹ฐแŒแˆž everytime code execute แ‰ แˆแˆˆแŒแŠ• แ‰แŒฅแˆญ แˆตแˆˆแˆšแ‰ฐแˆจแŒ‰แˆแˆแŠ• แАแ‹แข interprets the code every time it is intended to be executed;

แ‹ญแˆ… แˆ›แˆˆแ‰ต แ‹ฐแŒแˆž source code แˆแŠญ แŠฅแŠ•แ‹ณแˆˆ distribute แˆ›แˆจแŒ แŠ แŠ•แ‰ฝแˆแˆ แˆ›แˆˆแ‰ต แАแ‹แฃ แˆแŠญแŠ•แ‹ซแ‰ฑแˆ the end user codeแŠกแŠ• execute แˆˆแˆ›แˆจแŒ   แŠ แˆตแ‰ฐแˆญแŒ“แˆš(interpreter) แ‹ซแˆตแˆแˆแŒˆแ‹‹แˆแข

Eg of Interpreted languages: Python, JavaScript

Any programming language แŠจแŠฅแАแ‹šแˆ… แŠจแˆแˆˆแ‰ฑ แˆ˜แŠซแŠจแˆ แАแ‹ แ‹จแˆšแˆ˜แ‹ฐแ‰ แ‹แข

There are very few  languages that can be both compiled and interpreted. usually,  compiled programs run faster than interpreted programs.

@ProgrammingWithFaith2018


#ProgrammingWithFaith #LearnCPlusPlus #PreEngineering #CodingMadeEasy #TelegramLearning
#ProgrammingWithFaith
โค5
C++ Basic 2018 (Batch-2) pinned ยซTo gain a deeper understanding through insightful explanations like these, consider joining our exclusive class ๐Ÿ“šโœจ. "Simply watching tutorials won't enhance your skills; engaging in discussions and practicing with others is essential ๐Ÿค๐Ÿ’ก." แˆˆแˆ˜แˆ˜แ‹แŒˆแ‰ฅ: @Progโ€ฆยป
Stop stressing over C++! ๐Ÿคฏ

From tricky syntax to exam pressure, weโ€™ve built the ultimate support system for your coding journey. Join the course at @ProgrammingWithFaith_bot and unlock everything you need to succeed:

โ€ข Detailed video lessons ๐Ÿ“น
โ€ข Step-by-step assignment guidance โœ๏ธ
โ€ข A library of past exams with full solutions ๐Ÿ“š

Your "A" grade starts here. Register today! ๐ŸŽ‰

@ProgrammingWithFaith2018
#ProgrammingWithFaith #LearnCPlusPlus #PreEngineering #CodingMadeEasy #TelegramLearning
#ProgrammingWithFaith
โค5๐Ÿ”ฅ1
Civics แ‰ แŠ แˆ›แˆญแŠ› (1).doc
4 MB
Civics แˆแˆ‰แˆ แ‰ปแ•แ‰ฐแˆญ แˆ™แˆ‰ แ‰ แˆ™แˆ‰ แ‰ แŠ แˆ›แˆญแŠ› แ‹จแ‰ฐแ‰ฅแˆซแˆซ แАแ‹ แ‹ญแŒ แ‰…แˆ›แ‰นแˆ€แˆ แ‹ซแ‹™แ‰ต๐Ÿ”ฅ๐Ÿ”ฅ

Credit: A+

@ProgrammingWithFaith2018
โค2๐Ÿ”ฅ1
โš ๏ธ Scam Warning

If you see messages like โ€œPremium giveaway. !  with a random link, do not click it. ๐Ÿšซ

These are often scam links used to steal your information or hack accounts. Always verify the source before clicking any link.

Be safe.

@ProgrammingWithFaith2018
๐Ÿ”ฅ3
๐Ÿ”ฅ2โค1
๐Ÿ‘จโ€๐Ÿ’ปlesson c++

Topic:Types of error



1.Compiler error: This type of error occurs when the code is not written according to the syntax and rules of the programming language, and the compiler is unable to compile the code.

๐Ÿ…ฐแ‹จแ‹šแˆ… แŠ แ‹ญแАแ‰ฑ แˆตแˆ…แ‰ฐแ‰ต แ‹จแˆšแŠจแˆฐแ‰ฐแ‹ แŠฎแ‹ต แ‰ แ•แˆฎแŒแˆซแˆ แŠ แŒˆแ‰ฃแ‰ฅ แŠฅแŠ“ แ‰ แ•แˆฎแŒแˆซแˆšแŠ•แŒ แ‰‹แŠ•แ‰‹ แˆ…แŒ แˆ˜แˆฐแˆจแ‰ต แˆณแ‹ญแƒแ แˆฒแ‰€แˆญ แŠฅแŠ“ compileru แŠฎแ‹ฑแŠ• compile แˆ›แ‹ฐแˆจแŒ แˆฒแ‹ซแ‰…แ‰ฐแ‹ แАแ‹แข

๐Ÿ…ฐDogoggora qindeessaa: Gosti dogongoraa kun kan uumamu yeroo koodii akkaataa sintaksii fi seera afaan sagantaatiin hin barreeffamnee fi qindeessaan koodii qindeessuu yoo dadhabedha.


-means it's SYNTAX error

SYNTAX แˆตแˆ…แ‰ฐแ‰ต แАแ‹ แˆ›แˆˆแ‰ต แАแ‹แข

- jechuun SYNTAX dogoggora jechuudha.

2.Runtime error: This type of error occurs when the code is syntactically correct but produces an error during program execution, such as division by zero or accessing an invalid memory location.


๐Ÿ™‡ examples  int x;
                    Cout<<1/x<<endl;

-code have no syntax error but when x is 0 its undefined this means it's run time error.

๐Ÿ…ฐแ‹ญแˆ… แŠ แ‹ญแАแ‰ฑ แˆตแˆ…แ‰ฐแ‰ต แ‹จแˆšแŠจแˆฐแ‰ฐแ‹ แŠฎแ‹ฑ แ‰ แŠ แŒˆแ‰ฃแ‰ฅ แ‰ตแŠญแŠญแˆ แˆฒแˆ†แŠ• แАแŒˆแˆญ แŒแŠ• แ‰ แ•แˆฎแŒแˆซแˆ™ แŠ แˆแŒปแŒธแˆ แ‹ˆแ‰…แ‰ต แˆตแˆ…แ‰ฐแ‰ต แˆฒแˆแŒ แˆญ แˆˆแˆแˆณแˆŒ แ‰ แ‹œแˆฎ แˆ˜แŠจแ‹แˆแˆ แ‹ˆแ‹ญแˆ แˆแŠญ แ‹ซแˆแˆ†แА memory แ‰ฆแ‰ณ แˆ˜แ‹ตแˆจแˆตแข

๐Ÿ…ฐGosti dogongoraa kun kan uumamu yeroo koodii galumsaan sirrii ta'e, garuu dogongorri yeroo raawwii sagantichaa kan akka zeeroodhaan qoodu ykn bakka yaadannoo sirrii hin taane argachuu.




3.Logical error: This type of error occurs when the code runs without any errors, but produces incorrect output due to a flaw in the logic or algorithm used in the program.


๐Ÿ…ฐแ‹ญแˆ… แŠ แ‹ญแАแ‰ต แˆตแˆ…แ‰ฐแ‰ต แ‹จแˆšแŠจแˆฐแ‰ฐแ‹ แŠฎแ‹ฑ แ‹ซแˆˆ แˆแŠ•แˆ แˆตแˆ…แ‰ฐแ‰ต แˆฒแˆฐแˆซ แАแ‹แก แАแŒˆแˆญ แŒแŠ• แ‰ แ•แˆฎแŒแˆซแˆ™ แ‹แˆตแŒฅ แŒฅแ‰…แˆ แˆ‹แ‹ญ แ‰ แˆšแ‹แˆˆแ‹ แŠ แˆ˜แŠญแŠ•แ‹ฎ แ‹ˆแ‹ญแˆ แŠ แˆแŒŽแˆชแ‹แˆ แˆ‹แ‹ญ แ‰ฃแˆˆ แŒ‰แ‹ตแˆˆแ‰ต แˆแŠญแŠ•แ‹ซแ‰ต แ‹จแ‰ฐแˆณแˆณแ‰ฐ แ‹แŒคแ‰ต แ‹ญแˆแŒฅแˆซแˆแข


๐Ÿ…ฐ Gosti dogongoraa kun kan uumamu yeroo koodii dogongora tokko malee raawwatu, garuu sababa mudaa loojikii ykn algoritmiin saganticha keessatti fayyadame irraa kan ka'e bu'aa sirrii hin taane argamsiisa.



๐Ÿ‘จโ€๐Ÿ’ปshare_it_for_friends


@ProgrammingWithFaith2018
โค3๐Ÿ”ฅ1๐Ÿฅฐ1
C++ Basic 2018 (Batch-2)
@ProgrammingWithFaith_bot
Unlock exclusive access to premium materials by joining our private channel today! ๐Ÿš€โœจ Don't miss out on valuable resources that can elevate your skills! ๐Ÿ“š๐Ÿ’ก


@ProgrammingWithFaith_bot
โค1๐Ÿ”ฅ1
Eid Mubarak ๐Ÿค—๐Ÿฅฐ Families
โค5
This semester is hard; you should aim to score good grades to secure the department you want. Most students don't perform well in Applied and C++, which can significantly affect their GPA. Therefore, we offer a premium course designed to help you achieve good grades in C++. You can still join us!

โœ… If you have any questions, DM @TechnerdGuy
โœ… For registration @ProgrammingWithFaith_bot
โค2
๐ŸŒŸ Struggling with C++ Assignments? We Can Help! ๐Ÿ’ป


Feeling overwhelmed by C++ assignments? ๐Ÿ˜ฉ Youโ€™re not alone! Join our premium class for personalized support that goes beyond just completing tasks. ๐Ÿค We will guide you through the challenges, helping you build confidence and truly understand C++. ๐Ÿ“šโœจ

Donโ€™t miss this opportunity to enhance your skills register now for academic success! ๐Ÿš€๐ŸŽ“

โœ…For Registration @ProgrammingWithFaith_bot



@ProgrammingWithFaith2018
#ProgrammingWithFaith
#TelegramLearning
#PreEngineering
#LearnCPlusPlus
๐Ÿฅฐ2โค1
When I was a freshman like you, I always struggled to get information ๐Ÿ“š, especially about the department and to find materials. So if you need anything, you can ask me @TechnerdGuy. BTW, I'm a last-year student ๐ŸŽ“.

@ProgrammingWithFaith2018
๐Ÿ”ฅ3๐Ÿ™3