Beruflich Dokumente
Kultur Dokumente
ASSIGNMENT REPORT
ON
“Quiz Application using C#”
CONTENTS
ABSTRACT 3
INTRODUCTION 4
SOURCE CODE 5
SCREENSHOTS 8
CONCLUSION 9
BIBLIOGRAPHY 9
ABSTRACT
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Quiz
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.IO;
using System.Xml.XPath;
using System.Xml.Linq;
using System.Collections;
namespace Quiz
{
class Result
{
private string file;
private string result = "";
private string quesid;
}
catch (FileLoadException)
{
return "Not able to load data from backend! Please contact administrator.";
}
catch (FileNotFoundException)
{
return "Data file not found in backend! Please contact administrator.";
}
catch
{
return "Unknown error! Please contact administrator.";
}
}
}
<movies>
<question id="1">
<ques>What is the biggest planet in our solar system??</ques>
<wrong>Earth</wrong>
<correct>Jupiter</correct>
<wrong>Mars</wrong>
<wrong>Mercury</wrong>
</question>
<question id="2">
<ques>What is the chemical symbol for the element oxygen?</ques>
<wrong>K</wrong>
<wrong>M</wrong>
<correct>O</correct>
<wrong>C</wrong>
</question>
<question id="3">
<ques>Pure water has a pH level of a around?</ques>
<correct>7</correct>
<wrong>6</wrong>
<wrong>8</wrong>
<wrong>5</wrong>
</question>
<question id="4">
<ques>The highest mountain on earth is?</ques>
<wrong>Mount Abu</wrong>
<wrong>Mount Fiji</wrong>
<correct>Mount Everest</correct>
<wrong>Mount Chi Chi</wrong>
</question>
<question id="5">
<ques>Water is made up of what two elements??</ques>
<correct>Oxygen and Hydrogen</correct>
<wrong>Helium and Hydrogen</wrong>
<wrong>Nitrogen and Oxygen</wrong>
<wrong>Lithium and Neon</wrong>
</question>
<question id="6">
<ques>What is the name of the closest star to the earth?</ques>
<wrong>Xenova</wrong>
<wrong>Maltis</wrong>
<wrong>Aurora</wrong>
<correct>Sun</correct>
</question>
<ques>Firefox, Opera, Chrome, Safari and Explorer are types of what?</ques>
<ques>What country experiences the most tornadoes?</ques>
<wrong>UAE</wrong>
<correct>USA</correct>
<wrong>India</wrong>
<wrong>Austria</wrong>
</question>
</movies>
SCREENSHOTS
CONCLUSION
BIBLIOGRAPHY
https://www.google.com/search?rlz=1C1CHBF
https://en.wikipedia.org/wiki/C_Sharp_(programming_language)
https://www.geeksforgeeks.org/c-sharp-net-framework-basic-architecture-
component-stack/