MCQ Question
Duration: 5 min
This video lesson is available to enrolled students.
Inside: a video lesson and guided study material.
Module outline
- TCS One Shot Free Videos & Notes: TCS Preparation
- Numerical Ability (Foundation Section): Ratio and Proportion (Ratios), Divisibility Rules, Data Interpretation, Mixture and Alligation, Permutation and Combination, Logarithm, Number System, HCF LCM, Sequence and Series (Series), Speed Time and Distance, Percentage, Average, Powers and Exponents (Surds and Indices), Algebra, Probability, Profit and Loss, Simple Interest and Compound Interest, Time and Work, Pipe and Cistern, Mensuration and Geometry, Mental Ability, Age Problems, Statistics, Arithmetic, Partnership, Speed Mathematics and Basic Mathematics
- Reasoning Ability (Foundation Section): Series (Number and Letter Series) (Numerical Relations and Reasoning), Coding Decoding, Data Sufficiency, Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning), Syllogisms, Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Seating Arrangements, Blood Relations, Directions (Direction Test), Analytical Reasoning (Counting Figures Reasoning), Puzzle Solving (Puzzles), Calendar, Clock, Cubes & Dices, Selection Decision Table (Decision Making), Crypt Arithmetic, Venn Diagram, Data Arrangement, Inequality, Analogy, Ranking, Order and Sequence, Logical Sequence Of Words
- New Pattern-Verbal Ability (Foundation Section): Sentence Completion (Fill in the blanks), English Writing Ability
- Old Pattern-Verbal Ability (Foundation Section): Vocabulary, Noun, Subject Verb Agreement (Verb Noun Agreement), Adjectives, Tenses, Pronoun, Preposition, Articles, Direct and Indirect Speech, Conjunction, Modals, Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing), Sentence Correction (Error Correction), Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions), Verbal Analogy (Word Based Analogy), Active Passive Voice (Voice), Determiner, Facts, Inference and Judgements, Adverb, Cloze Test (Cloze Passage), Sentence Construction, Verb
- Advanced Quantitative Ability: TCS NQT Advanced Quantitative Ability
- Advanced Reasoning Ability: TCS NQT Advanced Reasoning Ability
- Advanced Coding: Coding Questions by Yash Sir, C Programming by Yash Sir, Python for Placements by Yash Sir, DSA using Python, Object Oriented Programming (OOPS), Programming in C++, Java
- TCS Full Length Mock Test:
- TCS Interview & Resume Prep: MR & HR Interview Preparation, TCS Interview Preparation, Mock Interview, Interview Recordings, Resume Preparation, Resume Review
- Mega Test:
- Grand Test:
AI summary & chapters
AI Summary
An AI-generated summary of this video lecture.
The video is a C++ programming tutorial that begins with a multiple-choice question on C++ syntax rules, presented on a PowerPoint slide. The instructor, Yash Jain, explains that the false statement is (1) 'Each new C++ instruction has to be written on a separate line,' as this is incorrect because multiple instructions can be on one line. The lesson then transitions to a live coding session in an online IDE, where the instructor writes a program to calculate simple interest. The code includes standard C++ headers, variable declarations, and input/output operations. The instructor demonstrates the program's execution, showing the console output for a principal of 10000, rate of 10, and time of 2, resulting in a simple interest of 2000. The video concludes with the instructor confirming the correct answer to the initial question and summarizing the key syntax rules.
Chapters
0:00 – 2:00 00:00-02:00
The video opens with a PowerPoint slide displaying a multiple-choice question: 'Which of the following statements is false?' The options are: (1) Each new C++ instruction has to be written on a separate line, (2) Usually, all C++ statements are entered in small case letters, (3) Blank spaces may be inserted between two words in a C++ statement, and (4) Blank spaces cannot be inserted within a variable name. The instructor, Yash Jain, begins to analyze the statements, and on-screen text indicates that statement (1) is false. The slide also shows the instructor's name and credentials as a 'Coding Expert' placed in 9 IT companies.
2:00 – 5:00 02:00-05:00
The scene shifts to a live coding environment in an online C++ debugger. The instructor writes a program to calculate simple interest, starting with the necessary headers and the main function. The code includes variable declarations for float P, R, and T, and uses cout and cin for input/output. The instructor types the formula for simple interest: 'P * R * T / 100'. The code is then executed, and the console output shows the program running with the input values: Principal = 10000, Rate = 10, Time = 2, resulting in a Simple Interest of 2000. The instructor then returns to the PowerPoint slide, where he confirms that statement (1) is false and the other statements are true, as indicated by the on-screen text.
5:00 – 5:03 05:00-05:03
The video shows the final state of the PowerPoint presentation. The instructor has completed his explanation, and the slide now clearly displays the correct answer to the multiple-choice question. Statement (1) is marked as 'False', and statements (2), (3), and (4) are marked as 'True'. The instructor's name and title are visible at the bottom of the slide, and the 'KNOWLEDGE GATE' logo is present in the background.
The video provides a comprehensive lesson on C++ syntax by first posing a conceptual question about programming rules and then demonstrating the correct implementation in a live coding environment. The instructor uses a clear, step-by-step approach, starting with a theoretical question to test understanding of syntax rules, such as the use of newlines and case sensitivity. He then transitions to a practical example, writing and executing a C++ program to calculate simple interest, which reinforces the concepts. The lesson effectively combines theory and practice, using the live code execution to validate the syntax rules discussed, and concludes by confirming the correct answer to the initial question, solidifying the learning objective.

