PHY101 Short Notes for Final Term and Mid Term

PHY101 Short Notes for Final Term and Mid Term .Aslam u alaikum dear students. If you are looking for Important PHY101 Short Notes for Final Term and Mid Term Then you are visiting the right website. I provided the perfect solution here according to my efforts. If there is any mistake then please correct it to get good grades in your Midterm and Final Term exams. Please verify the answers of all questions before remembering them for your Midterm and Final Term exams.

JOIN OUR SOCIAL MEDIA GROUPS 

Join VU Best Telegram GroupVU WHATSAPP GROUP LINKSVU ASSIGNMENTS, GDB, PAST PAPERS, QUIZZES, SOLUTIONS

Also check below  Past Papers: 

PHY101 Short Notes for Final Term and Mid Term
PHY101 Short Notes for Final Term and Mid Term
  • We want to evaluate this long expression using a stack. Let’s try to solve it on paper.
  • Here we have five columns ie input, op1, op2, value and stack. We will run ours
    pseudocode program. At the beginning we read the input and the result is the number 6. Like 6
  • is an operand, so it will be put on the stack. Then we have number 2 which will also
    be pushed onto the stack. Now 2 is the newest element. Another element is

PHY101 Short Notes for Final Term and Mid Term

  • the number 3, which is also moved to the stack. There are now three elements on it
  • stack i.e. 3, 2 and 6. Number 3 is the most recent. For cracking, we’ll get it
    first the number 3. The next element is “+”, the operator. Now the second part of ours
  • the pseudo code is executed. We remove two operands from the stack and use them
  • operator (+). The number 3 will be stored in the variable op2 and the number 2 in

PHY101 Short Notes for Final Term and Mid Term

  • op1. The (+) operator, i.e. 2+3, is applied to those and the result is stored in a value.
  • Now we push the value (ie 5) onto the stack. Now we have two numbers
    stack i.e. 5 and 6. Number 5 is the newest element. The next element is “-“.
  • Since it is also an operator, we pop two elements from the stack, i.e. 5 and 6.
  • Now we have 5 in op2 and 6 in op1. When using the operator

PHY101 Short Notes for Final Term and Mid Term

PHY101 Short Notes PDF File 1 – DOWNLOAD

 

PHY101 Short Notes PDF File 2 – DOWNLOAD