Q1 - Precedence and Associativity
Duration: 3 min
This video lesson is available to enrolled students.
Inside: a video lesson and guided study material.
Module outline
- Communication Round: Vocabulary, Subject Verb Agreement (Verb Noun Agreement), Tenses, Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions), Cloze Test (Cloze Passage), Sentence Correction (Error Correction), Sentence Completion (Fill in the blanks), Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing), Direct and Indirect Speech, Active Passive Voice (Voice), Verbal Analogy (Word Based Analogy), Articles, Preposition, Conjunction, Sentence Construction, English Writing Ability, Communication Assessment
- Quantitative Aptitude: Ratio and Proportion (Ratios), Divisibility Rules, Data Interpretation, Mixture and Alligation, Permutation and Combination, Logarithm, Number System, HCF LCM, Speed Time and Distance, Percentage, Average, Powers and Exponents (Surds and Indices), Time and Work, Mensuration and Geometry, Age Problems, Pipe and Cistern, Probability, Profit and Loss, Simple Interest and Compound Interest, Algebra
- Analytical and Logical Reasoning: Series (Number and Letter Series) (Numerical Relations and Reasoning), Coding Decoding, Data Sufficiency, Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning), Directions (Direction Test), Ranking, Order and Sequence, Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Selection Decision Table (Decision Making), Logical Sequence Of Words, Puzzle Solving (Puzzles), Syllogisms, Seating Arrangements, Calendar, Clock, Blood Relations, Cubes & Dices, Venn Diagram, Analytical Reasoning (Counting Figures Reasoning)
- Cognizant Gaming Aptitude: Gamified / Game Based Aptitude
- Java (Cluster 1): Java
- ANSI SQL MySQL (Cluster 1,2,3): SQL
- HTML, CSS, JavaScript (Cluster 1,3): HTML, CSS, JavaScript
- Python (Cluster 2): Python for Placements by Yash Sir
- Cloud Fundamentals (Cluster 2): Emerging Tech Trends
- C# (Cluster 3): C#
- OOPs: Object Oriented Programming (OOPS)
- Technical Assessment (Coding): Coding Questions by Yash Sir, C Programming by Yash Sir, Programming in C++, Pseudo Codes
- Data Structures: Introduction to DS, Array, Stack, Queue, Linked List, Tree, Graphs, Hashing
- DBMS: Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, Normalization (1NF - BCNF), Decomposition Properties & 4NF, File Organization & Indexing, Relational Algebra, Relational Calculus, Transaction Management, Concurrency Control, Database Recovery, ORDBMS, Database Security & Authorization, Query Processing & Optimization, Enhanced Data Models, Data Warehousing & Mining, Big Data Systems, NoSQL
- Operating Systems: Introduction to OS, Process Management, CPU Scheduling, Process Synchronization, Deadlock, Threads & Process Creation, Memory Management, Virtual Memory, Disc Scheduling, File Management, Windows OS, Linux OS, Security, Distributed Systems, Virtual Machines
- Computer Networks: Introduction to CN, Data Communication, DLL: Access Control, DLL: Flow Control, DLL: Error Control, DLL: Framing, Data Link Layer - Ethernet, Net Layer: IPv4 & Proto, Net Layer: IP Addressing, Net Layer:Routing Protocol, Transport Layer Services, TL: Congestion & UDP, Application Layer, Hardware basics, Network Security, Mobile Technology, Cloud Computing and IoT, Cyber and Info Security
AI summary & chapters
AI Summary
An AI-generated summary of this video lecture.
The video is a tutorial on solving a C++ programming problem from a Puma's Rebl Tech coding challenge. The instructor, Yash Jain, presents a C++ code snippet that calculates a complex arithmetic expression involving variables a through f. He then methodically breaks down the expression, applying the rules of operator precedence (parentheses, multiplication, division, addition, subtraction) to solve it step-by-step on a whiteboard. The final result of the calculation is determined to be 10. The video concludes with a demonstration of the code running in an online compiler, which confirms the result by outputting 10.
Chapters
0:00 – 2:00 00:00-02:00
The video opens with a C++ code snippet displayed in a dark-themed editor. The code defines variables a=8, b=4, c=2, d=1, e=5, f=20 and contains a single cout statement with a complex arithmetic expression: `a + b - (c + d) * 3 % e + f / 9;`. The instructor, Yash Jain, begins to solve this expression by first substituting the variable values, writing `8 + 4 - (2 + 1) * 3 % 5 + 20 / 9` on a whiteboard. He then proceeds to evaluate the expression step-by-step, starting with the parentheses `(2 + 1)` which equals 3, resulting in `8 + 4 - 3 * 3 % 5 + 20 / 9`. He then evaluates the multiplication `3 * 3` to get 9, leading to `8 + 4 - 9 % 5 + 20 / 9`. The instructor then evaluates the modulus operation `9 % 5`, which is 4, and the division `20 / 9`, which is 2 (due to integer division), resulting in the expression `8 + 4 - 4 + 2`. The on-screen text includes the code link `https://onlinegdb.com/sLZ1jinZN` and the instructor's name and credentials.
2:00 – 3:13 02:00-03:13
The instructor continues the step-by-step evaluation of the arithmetic expression on the whiteboard. He simplifies the expression `8 + 4 - 4 + 2` by performing the addition and subtraction from left to right. First, `8 + 4` equals 12, resulting in `12 - 4 + 2`. Then, `12 - 4` equals 8, resulting in `8 + 2`. Finally, `8 + 2` equals 10. The instructor confirms the final answer is 10. The video then transitions to a screen recording of the online GDB compiler, where the same C++ code is executed. The console output clearly shows the result `10`, confirming the manual calculation. The instructor's name, Yash Jain, and his title as a Coding Expert are visible in a circular frame on the right.
The video provides a comprehensive walkthrough of a C++ coding problem, emphasizing the practical application of operator precedence. It begins with a complex expression and systematically breaks it down into manageable steps, demonstrating the correct order of operations (parentheses, multiplication/division/modulus, then addition/subtraction). The instructor's methodical approach, combining manual calculation on a whiteboard with a live code execution in a compiler, reinforces the learning process and validates the final answer, making it a clear and effective tutorial for understanding basic arithmetic in programming.