Logical Operators- Exceptional Properties & Pseudo Codes
Duration: 8 min
This video lesson is available to enrolled students.
Inside: a video lesson and guided study material.
Module outline
- Quantitative Ability: Percentage, Profit and Loss, Ratio and Proportion (Ratios), Average, Time and Work, Speed Time and Distance, Simple Interest and Compound Interest, Age Problems, Number System, Divisibility Rules, HCF LCM, Algebra, Permutation and Combination, Probability, Data Interpretation, Logarithm, Sequence and Series (Series), Powers and Exponents (Surds and Indices), Speed Mathematics and Basic Mathematics
- Logical Reasoning: Seating Arrangements, Puzzle Solving (Puzzles), Data Arrangement, Coding Decoding, Blood Relations, Directions (Direction Test), Ranking, Order and Sequence, Data Sufficiency, Venn Diagram, Inequality, Series (Number and Letter Series) (Numerical Relations and Reasoning), Logical Sequence Of Words, Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Selection Decision Table (Decision Making), Analogy, Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning)
- Verbal Ability: Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions), Subject Verb Agreement (Verb Noun Agreement), Tenses, Articles, Preposition, Conjunction, Modals, Active Passive Voice (Voice), Direct and Indirect Speech, Vocabulary, Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing), Sentence Completion (Fill in the blanks), Sentence Correction (Error Correction), Cloze Test (Cloze Passage), Facts, Inference and Judgements
- Programming Fundamentals (Technical): C Fundamentals
- Data Structures (Technical): Introduction to DS, Array, Stack, Queue, Linked List, Tree, Graphs, Hashing
- Algorithms (Technical): Algorithm Analysis, Sorting Algorithms, Greedy Algorithms, Dynamic Programming, Minimum Spanning Trees, Shortest Path Algos, Time Complexity Analysis, Advanced Algorithms
- OOPs (Technical): Object Oriented Programming (OOPS)
- DBMS (Technical): 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
- SQL (Technical): SQL
- Operating Systems (Technical): 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 (Technical): 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, Cloud Computing and IoT, Cyber and Info Security
- Software Engineering (Technical): Fundamentals of Software Engineering, Software Requirements and Quality Assurance, Software Design, Estimation and Metrics, Software Testing, Software Maintenance and Configuration Management
- Coding/Automata Round: Coding Questions by Yash Sir, C Programming by Yash Sir, Programming in C++, Java, Python for Placements by Yash Sir, Pseudo Codes
- Personality / Behavioral Assessment: Behavioral Assessment (Behavioral Competency Profiling) (Psychometric Test)
- Writing Assessment: English Writing Ability
AI summary & chapters
AI Summary
An AI-generated summary of this video lecture.
This video is a tutorial on solving a multiple-choice question (MCQ) related to pseudocode, specifically focusing on logical operators. The instructor, Yash Jain, presents a problem from the Capgemini 2020 exam, which involves evaluating a logical expression with AND and OR operators. The problem is displayed on a screen with a dark background, showing the code: Integer x, y, z, a; Set x = 2, y = 1, z = 5; a = (x AND y) OR (z + 1); Print a. The instructor explains the order of operations, noting that the AND operator has higher precedence than OR. He then breaks down the expression, first calculating (x AND y) as (2 AND 1), which evaluates to 0 because the AND operation between 2 and 1 is false. Next, he evaluates (z + 1), which is 6. The final expression becomes 0 OR 6. Since the OR operator returns true (1) if at least one operand is true, and 6 is a non-zero value (considered true), the result is 1. The instructor confirms this by running the equivalent C code in an online compiler, which outputs 1. The video concludes with the instructor summarizing the key concept: the importance of operator precedence and the truth value of non-zero numbers in logical operations.
Chapters
0:00 – 2:00 00:00-02:00
The video opens with a title slide for a lecture on "PSEUDO CODE MCQs" by Yash Jain. The background is a dark image of hands typing on a glowing blue keyboard, with a small diagram of a presentation screen. The instructor, visible in a small window, introduces the topic. The scene then transitions to a black screen with a code snippet for a pseudocode problem. The text reads: "What will be the output of the following pseudocode? Integer x, y, z, a; Set x = 2, y = 1, z = 5; a = (x AND y) OR (z + 1); Print a". The question is noted as being "Asked in Capgemini 2020". The instructor begins to analyze the problem, writing the variable values on the screen: x=2, y=1, z=5.
2:00 – 5:00 02:00-05:00
The instructor continues to solve the pseudocode problem. He writes the expression "a = (x AND y) OR (z + 1)" on the screen. He explains that the AND operator has higher precedence than the OR operator, so the expression is evaluated as (x AND y) OR (z + 1). He then evaluates the AND part: (2 AND 1). He explains that in a logical AND operation, both operands must be true (non-zero) for the result to be true. Since 2 is true and 1 is true, the result of (2 AND 1) is 1. He then evaluates the OR part: (z + 1), which is (5 + 1) = 6. The final expression is 1 OR 6. He explains that the OR operator returns true (1) if at least one operand is true. Since 6 is a non-zero number, it is considered true. Therefore, 1 OR 6 evaluates to 1. He writes the final answer as 1.
5:00 – 7:32 05:00-07:32
To verify the solution, the instructor transitions to a screen recording of an online C compiler. He types the equivalent C code: #include <stdio.h> int main() { int x=2,y=1,z=5,a; a=(x&&y)||(z+1); printf("%d",a); return 0; }. He explains that in C, the logical AND operator is && and the logical OR operator is ||. He runs the code, and the output displayed is 1, confirming his analysis. The video then shows the instructor in a different setting, wearing a black t-shirt with "unacademy" on it, concluding the lesson. He reiterates that the answer is 1 because the OR operation between a true value (1) and a non-zero value (6) results in true (1).
The video provides a comprehensive walkthrough of a logical operator problem from a programming aptitude test. It begins by presenting a pseudocode question, then systematically breaks down the evaluation process by first identifying the correct order of operations. The instructor emphasizes the importance of operator precedence, explaining that the AND operation is performed before the OR operation. He then demonstrates the evaluation of each part of the expression, highlighting that in a logical context, any non-zero number is considered true. The final step involves a practical verification using a C programming language compiler, which confirms the theoretical result. The lesson effectively teaches students how to approach and solve logical expression problems by combining theoretical knowledge with practical code execution.

