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.
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
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(); } } }
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
ReplyDeleteSir 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
ReplyDeletesir when u will announce result??
ReplyDeleteI will announce the result by Monday InsahAllah, I will also upload the question paper by tomorrow as well.
ReplyDeleteis ka result b ho ga
ReplyDeleteCopy of question paper can be downloaded here:
ReplyDeletehttps://docs.google.com/document/d/1ksREuDL29eahn0BmJ9_FCYZp1MjxDZxrxoJLFsM-uy0/edit?hl=en&authkey=CLj-uakI
Saqim ali
ReplyDeleteusing 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();
}
}
}
Result is published now
ReplyDelete