<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with cs311]]></title><description><![CDATA[A list of topics that have been tagged with cs311]]></description><link>https://community.secnto.com//tags/cs311</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 23:03:20 GMT</lastBuildDate><atom:link href="https://community.secnto.com//tags/cs311.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[CS311 GDB 1 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/1450/cs311-gdb-1-solution-and-discussion">CS311 GDB 1 Solution and Discussion</a></p>
<p dir="auto">CS311 GDB – 2020-2021</p>
<p dir="auto">Total Marks<br />
5<br />
Starting Date<br />
Monday, February 15, 2021<br />
Closing Date<br />
Monday, February 22, 2021<br />
Status<br />
Open<br />
Question Title<br />
GDB<br />
Question Description<br />
Due to the current COVID-19 Pandemic NCOC (National Command and Operation Center) decides to develop a single national level digital platform where all the information regarding COVID Pandemic will be available nationwide. The aim of this digital platform is to provide authentic and verified information at national level.<br />
Suppose you are working in a firm and NCOC takes the services of that firm for the creation of this digital platform. You are assigned the task to develop a web service for this web application. NCOC wants that the web service should be platform independent and should be able to entertain all the HTTP requests. You are given the choice to develop this web service using any one of the following technologies.<br />
·         Java Servlets<br />
·         CGI (Common Gateway Interface)<br />
Which technology you will consider for the creatin of this web service for NCOC digital platform and why? Support your answers with some solid reason.</p>
]]></description><link>https://community.secnto.com//topic/2198/cs311-gdb-1-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/2198/cs311-gdb-1-solution-and-discussion</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS311 Assignment 2 Solution and Discussion SPRING 2020]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/741/cs311-assignment-2-solution-and-discussion">CS311 Assignment 2 Solution and Discussion</a></p>
]]></description><link>https://community.secnto.com//topic/1912/cs311-assignment-2-solution-and-discussion-spring-2020</link><guid isPermaLink="true">https://community.secnto.com//topic/1912/cs311-assignment-2-solution-and-discussion-spring-2020</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS311 Assignment 1 Solution and Discussion]]></title><description><![CDATA[@zareen said in CS311 Assignment 1 Solution and Discussion:

Q.       Create an internal DTD and XML Document for the XML tree drawn below.
DTD (10 marks)
XML Document (10 marks)

Solution Idea
DTD:
&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
&lt;!DOCTYPE league [ 
&lt;!ELEMENT league (franchise)&gt; 
&lt;!ATTLIST league name CDATA #REQUIRED&gt; 
&lt;!ATTLIST league year CDATA #REQUIRED&gt; 
&lt;!ELEMENT franchise (team+)&gt;
&lt;!ATTLIST franchise name CDATA #REQUIRED&gt; 
&lt;!ATTLIST franchise owner CDATA #REQUIRED&gt; 
&lt;!ATTLIST franchise city CDATA #REQUIRED&gt;
&lt;!ELEMENT team (win,losses,coach,player+)&gt;
&lt;!ELEMENT win (#PCDATA)&gt; 
&lt;!ELEMENT losses (#PCDATA)&gt; 
&lt;!ELEMENT coach (#PCDATA)&gt; 
&lt;!ELEMENT player (name,age,runs,matches)&gt;
&lt;!ELEMENT name (#PCDATA)&gt; 
&lt;!ELEMENT age (#PCDATA)&gt; 
&lt;!ELEMENT matches (#PCDATA)&gt;
&lt;!ELEMENT runs (#PCDATA)&gt; 
]&gt; 


XML:
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;league year="" name=""&gt;
	&lt;franchise owner="" name="" city=""&gt;
		&lt;team&gt;
			&lt;wins&gt;&lt;/wins&gt;
			&lt;losses&gt;&lt;/losses&gt;
			&lt;coach&gt;&lt;/coach&gt;
			&lt;player&gt;
				&lt;name&gt;&lt;/name&gt;
				&lt;age&gt;&lt;/age&gt;
				&lt;matches&gt;&lt;/matches&gt;
				&lt;runs&gt;&lt;/runs&gt;
			&lt;/player&gt;
		&lt;/team&gt;
	&lt;/franchise&gt;
&lt;/league&gt;

]]></description><link>https://community.secnto.com//topic/1837/cs311-assignment-1-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/1837/cs311-assignment-1-solution-and-discussion</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS311 GDB 1 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">CS311 GDB 1 Solution and Discussion</p>
]]></description><link>https://community.secnto.com//topic/1450/cs311-gdb-1-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/1450/cs311-gdb-1-solution-and-discussion</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS311 Assignment 3 Solution and Discussion]]></title><description><![CDATA[https://cyberian.pk/topic/1166/cs311-3-fall19-solution-file
]]></description><link>https://community.secnto.com//topic/1097/cs311-assignment-3-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/1097/cs311-assignment-3-solution-and-discussion</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS311 Assignment 2 Solution and Discussion]]></title><description><![CDATA[Solution Ideas:

Write XML Schema (.xsd) code for the given XML

Answer
XSD Code
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;xs:element name="BookStore"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="Book" maxOccurs="unbounded"&gt;
          &lt;xs:complexType&gt;
            &lt;xs:sequence&gt;
              &lt;xs:element name="Title" type="xs:string"/&gt;
              &lt;xs:element name="Course" type="xs:string"/&gt;
              &lt;xs:element name="Year" type="xs:unsignedShort"/&gt;
              &lt;xs:element name="Publisher" type="xs:string"/&gt;
              &lt;xs:element name="Author" type="xs:string"/&gt;
            &lt;/xs:sequence&gt;
          &lt;/xs:complexType&gt;
        &lt;/xs:element&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
&lt;/xs:schema&gt;


Generate the following XML on a server as output using PHP
Answer
PHP CODE

&lt;?php
header("Content-type: text/xml");
echo"&lt;BookStore&gt;";
echo"&lt;Book&gt;";
echo"&lt;Title&gt;Introduction to Computing&lt;/Title&gt;";
echo"&lt;Course&gt;CS101&lt;/Course&gt;";
echo"&lt;Year&gt;2016&lt;/Year&gt;";
echo"&lt;Publisher&gt;Virtual University of Pakistan &lt;/Publisher&gt;";
echo"&lt;Author&gt;Dr Tanveer Ahmad&lt;/Author&gt;";
echo"&lt;/Book&gt;";
echo"&lt;Book&gt;";
echo"&lt;Title&gt;Object Oriented Programming&lt;/Title&gt;";
echo"&lt;Course&gt;CS304&lt;/Course&gt;";
echo"&lt;Year&gt;2017&lt;/Year&gt;";
echo"&lt;Publisher&gt;Virtual University of Pakistan&lt;/Publisher&gt;";
echo"&lt;Author&gt;Dr Shafeeq&lt;/Author&gt;";
echo"&lt;/Book&gt;";
echo"&lt;/BookStore&gt;";
?&gt;

PHP OUTPUT
]]></description><link>https://community.secnto.com//topic/741/cs311-assignment-2-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/741/cs311-assignment-2-solution-and-discussion</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS311 Assignment 1 Solution and Discussion]]></title><description><![CDATA[@zareen said in CS311 Assignment 1 Solution and Discussion:

Q.       Create an internal DTD and XML Document for the XML tree drawn below.
DTD (10 marks)
XML Document (10 marks)

Solution
DTD:
&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
&lt;!DOCTYPE league [ 
&lt;!ELEMENT league (franchise)&gt; 
&lt;!ATTLIST league name CDATA #REQUIRED&gt; 
&lt;!ATTLIST league year CDATA #REQUIRED&gt; 
&lt;!ELEMENT franchise (team+)&gt;
&lt;!ATTLIST franchise name CDATA #REQUIRED&gt; 
&lt;!ATTLIST franchise owner CDATA #REQUIRED&gt; 
&lt;!ATTLIST franchise city CDATA #REQUIRED&gt;
&lt;!ELEMENT team (win,losses,coach,player+)&gt;
&lt;!ELEMENT win (#PCDATA)&gt; 
&lt;!ELEMENT losses (#PCDATA)&gt; 
&lt;!ELEMENT coach (#PCDATA)&gt; 
&lt;!ELEMENT player (name,age,runs,matches)&gt;
&lt;!ELEMENT name (#PCDATA)&gt; 
&lt;!ELEMENT age (#PCDATA)&gt; 
&lt;!ELEMENT matches (#PCDATA)&gt;
&lt;!ELEMENT runs (#PCDATA)&gt; 
]&gt; 


XML:
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;league year="" name=""&gt;
	&lt;franchise owner="" name="" city=""&gt;
		&lt;team&gt;
			&lt;wins&gt;&lt;/wins&gt;
			&lt;losses&gt;&lt;/losses&gt;
			&lt;coach&gt;&lt;/coach&gt;
			&lt;player&gt;
				&lt;name&gt;&lt;/name&gt;
				&lt;age&gt;&lt;/age&gt;
				&lt;matches&gt;&lt;/matches&gt;
				&lt;runs&gt;&lt;/runs&gt;
			&lt;/player&gt;
		&lt;/team&gt;
	&lt;/franchise&gt;
&lt;/league&gt;

]]></description><link>https://community.secnto.com//topic/613/cs311-assignment-1-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/613/cs311-assignment-1-solution-and-discussion</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS311 Quiz 2 Solution and Discussion]]></title><description><![CDATA[XML Quiz
For each question, choose the best choice out of the given choices.


What does XML stand for?
A.	X-Markup Language
B.	eXtra Modern Link
C.	Example Markup Language
D.	eXtensible Markup Language


XML’s goal is to replace HTML
A.	True
B.	False


What does DTD stand for?
A.	Direct Type Definition
B.	Document Type Definition
C.	Document Type Declaration


Is this a correct XML document?



Students
Teacher
Reminder
We are at Software Park, Thailand
A.	Yes
**B.	No**


Which statement is true?
A.	All XML elements must have a closing tag
B.	All XML documents must have a DTD or an XML schema
C.	All XML elements must be lowercase
D.	All of the statements are true


Which statement is true?
A.	XML tags are case sensitive
B.	XML elements must be properly nested
C.	XML documents must have the root element
D.	All the statements are true


XML preserves white spaces
A.	True
B.	False


Is this a correct XML document?




	Students
	Teacher

A.	No
B.	Yes


XML elements cannot be empty
A.	True
B.	False


Which is not a correct name for an XML element?
A.	
B.	
C.	&lt;1dollar&gt;
D.	All 3 names are incorrect


Which is not a correct name for an XML element?
A.	
B.	
C.	
D.	All 3 names are incorrect


Which is not a correct name for an XML element?
A.	
B.	
C.	


For the XML parser to ignore a certain section of your XML document, which syntax is correct?
A.	&lt;xml:CDATA[ Text to be ignored]&gt;
B.	Text to be ignored
C.	


XML is a subset of SGML
A.	True
B.	False


XML attributes must be in double quotes
A.	True
B.	False


XML attributes must be assigned values
A.	True
B.	False


The Document Type Definition must be stored in an external file
A.	True
B.	False


What can XML do?
A.	The standard for automating data exchange between systems
B.	The standard for displaying data on the Web
C.	The standard for a cross-platform programming language


Which is false?
A.	XML is used to describe only structured data
B.	XML is used to only on the Internet
C.	XML is used to represent only simple data
D.	All of the above


Which of the following comments are not well formed?
A.	
B.	
C.	
D.	


Provided that the file x.dtd has the following contents.  Which of the xml files are valid?







a.	



text

b.	


Element can
contain 

c.	

Sample


How can you declare in a DTD that the element x contains either the element a or the element b, but not both of them
a)	
b)	
c)	
d)	It is not possible to declare in a DTD that one element contains either the element a or the element b, but not both of them


How can you declare in a DTD that the element x contains the element a, or the element b, or both of them in the sequence a b.
a)	
b)	
c)	
d)	None of the declarations above does solve the problem.


How can you declare in a DTD that the empty element x has either the attribute a or the attribute b (or both of them).  The attributes contain any value.
a)	



b)	


c)	

d)	It is not possible to make the presence of one attribute depend on another attribute

How can you in a DTD declare that the element x contains both attributes a and b and that the order of them has to be ab?  The attributes can contain any value
a)	


b)	


c)	

b CDATA #REQUIRED&gt;
d)	It is not possible to specify the order of attributes in a DTD.  The order of attributes does not matter in XML.
e)	It is not possible to specify the order of attributes in a DTD.  The order of 		attributes can be specified only in an XML schema.
Valid names of elements and attributes start with a letter, an underscore or a colon, the following allowed characters are letters, numeric characters, colon, underscore, dot and hyphen (minus). Names which start with “xml” (in any case) are reserverd for W3C. The colon has a special meaning with namespaces and should not be used with any other semantic.
]]></description><link>https://community.secnto.com//topic/338/cs311-quiz-2-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/338/cs311-quiz-2-solution-and-discussion</guid><dc:creator><![CDATA[moaaz]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>