Monday, March 28, 2011

Mid-Term Exam

Mid-Term exam was postpone due to picnic, now it is reschedule as Saturday  9 April 2011, it also includes programming questions besides programming MCQs, and marks of Mid-Term are increased up-to  10 marks.

8 comments:

  1. Sir you've told to upload the example of reverse engineering & System design example through use cases. The whole class is still waiting sir!!! thank you

    ReplyDelete
  2. Sir meri tabyat boht kharab hai or mai mid term dene nahi asakta, sir agar ho sakay to mere mid term bad mai le lejye ga

    ReplyDelete
  3. sir when u will announce result??

    ReplyDelete
  4. I will announce the result by Monday InsahAllah, I will also upload the question paper by tomorrow as well.

    ReplyDelete
  5. Copy of question paper can be downloaded here:

    https://docs.google.com/document/d/1ksREuDL29eahn0BmJ9_FCYZp1MjxDZxrxoJLFsM-uy0/edit?hl=en&authkey=CLj-uakI

    ReplyDelete
  6. Saqim ali

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace ConsoleApplication4
    {
    public class Btree
    {
    public Btree Right;
    public Btree Left;
    public int value;
    public void LNR(Btree Node)
    {
    if (Node.Left != null)
    LNR(Node.Left);
    Console.WriteLine(Node.value);
    if (Node.Right != null)
    LNR(Node.Right);


    }
    public void RNL(Btree Node)
    {
    if (Node.Right != null)
    RNL(Node.Right);
    Console.WriteLine(Node.value);
    if (Node.Left != null)
    RNL(Node.Left);

    }
    public void AddNode(int val)
    {
    if (val < this.value)
    {
    if (this.Left != null)
    this.Left.AddNode(val);
    else
    {
    this.Left = new Btree { value = val };
    return;

    }
    }
    else if (val > this.value)
    {
    if (this.Right != null)
    this.Right.AddNode(val);
    else
    {
    this.Right = new Btree { value=val};
    return;

    }

    }


    }

    }
    }

    //program
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace ConsoleApplication4
    {
    class Program
    {
    static void Main(string[] args)
    {
    Btree Mytree = new Btree();
    Mytree.AddNode(15);
    Mytree.AddNode(11);
    Mytree.AddNode(19);
    Mytree.AddNode(20);
    Mytree.AddNode(1);
    Mytree.AddNode(85);
    Mytree.AddNode(4);
    Mytree.AddNode(4);
    Mytree.RNL(Mytree);
    Mytree.LNR(Mytree);
    Console.ReadLine();
    }
    }
    }

    ReplyDelete