Saturday, 22 June 2019

CS606 current midterm paper subjective questions and MCQS from JUNE 15 to JUNE 26, SPRING 2019

Total Questions: 23
MCQS: 18
Subjective Question: 5 
3 and 5 marks questions
CS606 MID TERM SPRING 2019 
CURRENT PAPER NO. 1
CS606 Compiler Construction current midterm papers SPRING 2019

πŸ‘€ SEE ALSO: Course wise exam instructions

QUESTIONS
1. Alternative of the backtrack in parser is Look ahead symbol in
Input
Output
Input and Output
None of the given
2. Which of the following statement is true about Two pass compiler.
Front End depends upon Back End
Back End depends upon Frond End
Both are independent of each other
None of the given
3.____________________ phase which supports macro substitution and conditional compilation.
Semantic
Syntax
Preprocessing
None of given
4. In compilation process Hierarchical analysis is also called
Parsing
Syntax analysis
Both Parsing and Syntax analysis
None of given
5. In Three-pass compiler _____________ is used for code improvement or optimization.
Front End
Middle End
Back End
Both Front end and Back end
6. In DFA minimization we construct one _______________ for each group of states from the initial DFA.
State
NFA
PDA
None
7. _____________is evaluated to yield a value.
Command
Expression
Declaration
Declaration and Command
8. In multi pass compiler during the first pass it gathers information
about ___________________ .
Declaration
Bindings
Static information
None of the given
9. Responsibility of ______________ is to produce fast and compact code.
Instruction selection (Page 9)
Register allocation
Instruction scheduling
None of given
10. Consider the following grammar,
A --> B C D
B --> h B | epsilon
C --> C g | g | C h | i
D --> A B | epsilon
First of A is _______________ .
h, g, i
g h
None of the given
11. An important component of semantic analysis is
code checking
type checking
flush checking
None of the given
12. LR parsers can handle ________________ grammars.
Left-recursive
file-recursive
End-recursive
Start-recursive


Share your paper of CS606 Also below πŸ‘‡ in comments with us and help others.

1. There are many operations defined for languages. The two most important are union and concatenation. L and M are two languages, how you will define the union and concatenation of these two languages.
2. How stack helps to simplify parsing algorithm? Answer in the context to handle pruning.
3. Given the following languages, name one string which is a member of each part. Assume ∑={a,b} for all parts.
a. a*b*
b. a(ba)*b
c. a*
d. (aaa)*
e. *a*b*a*
4. Consider the following given input for subset construction:

The function move(T,a) is set of NFA states to which there is a transition on input a from some NFA state s in set of states T. Write the output after applying move(T,a) function on the above input.
5. Eliminate left recursion from the following:
S -> S a b
   | S a S
   | S X
X -> X a
   | b
   | c
Shared by: Anny


πŸ‘‰ Other recommended 2018 midterm papers: CS401 Current paper , CS610 current paper , CS602 current paper , CS504 current paper , MCM301 current paper 2018 , CS502 current paper 2018

Share your paper of CS606 Also below πŸ‘‡ in comments with us and help others.

Thursday, 20 June 2019

CS605 current midterm paper subjective questions and MCQS from JUNE 15 to JUNE 26, SPRING 2019

Total Questions: 23
MCQS: 18
Subjective Question: 5 
3 and 5 marks questions
CS605 MID TERM SPRING 2019 
CURRENT PAPER NO. 1
CS605 SOFTWARE ENGINEERING 2 current midterm papers SPRING 2019

πŸ‘€ SEE ALSO: Course wise exam instructions

QUESTIONS
1. In Controlled Decentralized, there is a defined leader who coordinates specific tasks. However, problem-solving remains a group activity
2. The Software Engineering Institute (SEI) has developed a framework to judge the process maturity level of an organization. This framework is known as the Capability Maturity Model (CMM).
3. The extent to which a program satisfies its specification and fulfills the customer’s mission objectives are said to be achieving the
Usability
Efficiency
Reliability
Correctness
4. FAST is the abbreviation of
Facilitated Application Specification Technology
Facilitated Application Specification Technique
Facilitated Application Specialization Technique
None of the above option
5. RAD is a high-speed adaptation of the linear sequential model in which a fully functional system in a very short time (2-3 months)
6. Correctness is defined as the degree to which software performs its function
7. According to Reel, which of the following is not a process to improve the chances of success
8. Which one is not the Software project planning activity carried out by the project manager for estimation?
Software scope estimation
Resources requirements
Time requirements
Product Quality
9. In function point analysis technique EQ stands for
10. Which of the following is not a part of Construction activity
11. ___ is the ability to encourage technical people to produce to their best.
improvement
motivation
innovation
creation
remaining not remembered but were easy


Share your paper of CS605 Also below πŸ‘‡ in comments with us and help others.

1. Difference between Structural rigor and casual rigor.
2. There are weak and strong entities. What types can be defined as Weak entity types?
3. Find Risk Exposure if risk probability is 50% and the total project cost is 1500000.
4. Two most widely used metrics for the measurement of software size are function points (FP) and lines of code (LOC). As per your opinion, which of them is more appropriate for measuring the size of applications? Provide the reason(s) for your answer.
5. Tech-soft is a software development company in Islamabad. Tech soft has hired new developers. They are making new software for the client. But they are facing difficulties to apprehend user requirements. So they decided to make a sample application and show it to the client for feedback. As a project manager which software lifecycle model you will choose for the above scenario and why?
Shared by: Anny


πŸ‘‰ Other recommended 2018 midterm papers: CS401 Current paper , CS610 current paper , CS602 current paper , CS504 current paper , MCM301 current paper 2018 , CS502 current paper 2018

Share your paper of CS605 Also below πŸ‘‡ in comments with us and help others.

Tuesday, 18 June 2019

CS604 current midterm paper subjective questions and MCQS from JUNE 15 to JUNE 26, SPRING 2019

Total Questions: 23
MCQS: 18
Subjective Question: 5 
3 and 5 marks questions
CS604 MID TERM SPRING 2019 
CURRENT PAPER NO. 1
CS605 OPERATING SYSTEMS current midterm paper Spring 2019

πŸ‘€ SEE ALSO: Course wise exam instructions

QUESTIONS
1. Binary semaphores are those that have only two values---------
0 and n
0 and 0
0 and 1
None of the given options
2. Which register holds the smallest legal physical memory address for a process?
Base register
Limit register
Status register
None of the given options
3. Which command syntax is used, keyboard is detached and inputfile is attached to it, i.e.read input from input-file
cat > Students
cat < Students
cat 0> Students
4. Linux uses ___________ directory to store system configuration files.
/bin
/dev
/boot
/etc
5. ___________ is a piece of code in a cooperating process in which the process may updates shared data (variable, file,
database, etc.).
Critical analysis
Race condition
Latency
Critical section
6. OS helps manages the following except
Application software
Bus speed of the system
Memory
Virtual memory
7. You can use the ------------- command to display the status of suspended and background processes
fg
bg
jobs
kill
8.  A ___ process produces information that is consumed by a ___ process.
consumer, producer
producer, consumer
merchandise, consumer
remaining not remembered but were easy


Share your paper of CS604 Also below πŸ‘‡ in comments with us and help others.

1. Do you think starvation in multilevel queue sheduling can be solved by multilevel feedback queue scheduling? How? Justify your answer with appropriate reasons.
2. What will the output of the following program:
a) When a child process executes
b) When a process fails to execute
c) When a parent process execute
//code
void main(){
int pid, status;
pid = fork();
if(pid == -1) {
printf("Hello I am here!\n");
exit(1);
}
if(pid == 0) {
printf("Welcome I am here\n");
exit(0);
}
else {
wait(&status);
printf("Hi I am here!\n");
exit(0);
}
}
3. How a thread is created, also give conditions for which thread call fails?
4. When does critical section executes, give conditions?
5. Identify different operating system structures and provide their name.
Shared by: Anny


πŸ‘‰ Other recommended 2018 midterm papers: CS401 Current paper , CS610 current paper , CS602 current paper , CS504 current paper , MCM301 current paper 2018 , CS502 current paper 2018

Share your paper of CS604 Also below πŸ‘‡ in comments with us and help others.

Monday, 17 June 2019

CS506 current midterm paper subjective questions and MCQS from JUNE 15 to JUNE 26, SPRING 2019

Total Questions: 23
MCQS: 18
Subjective Question: 5 
3 and 5 marks questions
CS506 MID TERM SPRING 2019 
CURRENT PAPER NO. 1

CS506 WEB DESIGN & DEVELOPMENT Current mid term paper SPRING 2019

πŸ‘€ SEE ALSO: Course wise exam instructions

QUESTIONS
1. Which of the following is a DDL statement.
Insert
Delete
Create
2. You can ___ to a network using sockets.
Read
Write
Read/Write
None of these
3. If a class needs to handle events generated by button then which of the following interface a class
needs to implement?
ComponentListener
KeyListener
MouseListener
ActionListener
4. Which of the following package needs to be import while handling files?
java.util
java.io
java.awt
javax.swing
remaining not remembered but were easy


Share your paper of CS506 Also below πŸ‘‡ in comments with us and help others.

1. Write java code to make a GUI. It will contain a textfield and a button. when the button is clicked it should display the text from textfield on GUI. the text will be displayed using JOptionPane.showMessageDialog() method.
2. Write java code and Make two classes Course and Test class. In course class, define two variables : courseID and courseTitle. and a parameterized constructor to initialize variables. course class will also have a display method which will display its initialized variables. The test class will contain main method. In main method, create a new object of course class and call its display method.
3. Identify errors in the following code, also give reasons
Animals() is an abstract class.
Living() is an abstract method.
Birds() is a derived/subclass.
public class Behaviour{
public static void main(String[] args)
{
Animals a=null;
Animals al=new Animals();
a=new Birds();
a.living();
}
}
4. Write code to override paintcomponent() method and draw unfilled equilateral triangle and orange oval over it.
5. If you have ResultSet rs object. Then write code to get the maximum column width of the 2nd column.
Shared by: Anny

πŸ‘‰Recent Spring 2019 current papers: CS604 current 2019 , CS605 midterm 2019  CS606 midterm 2019MCM301 midterm 2019MGT602 midterm 2019

πŸ‘‰ Recommended mid term papers: CS401 Current paper , CS610 current paper , CS602 current paper , CS504 current paper , MCM301 current paper 2018 , CS502 current paper 2018

Share your paper of CS506 Also below πŸ‘‡ in comments with us and help others.

Monday, 3 June 2019

CS606-Compiler Construction Assignment no. 2 Solution SPRING 2019 Due date: 03 June, 2019 | SUPERSTARWEBTECH

Subject: CS606-Compiler Construction
Semester: SPRING 2019
Assignment No. 2
Due date: 03 JUNE 2019

CS606-Compiler Construction Assignment 2 #Question


Write grammar for the following languages:
(a+ b) *bb (a+ b) *
 (aa*(ab+ a) *)

All sequences of a’s and b’s with no more than three a’s.

Consisting of all strings of a’s and b’s that contain a different number of a’s and b’s.

To understand the grammar visit the following link:

CS606-Compiler Construction Assignment 2 Solution! Download!

CS606 Assignment_2 Solution SPRING_2019 ---------------------- Download


CS604-Operating Systems Assignment no. 2 Solution SPRING 2019 Due date: 03 June, 2019 | SUPERSTARWEBTECH

Subject: CS604-Operating Systems
Semester: SPRING 2019
Assignment No. 2
Due date: 03 JUNE 2019
CS604 ASSIGNMENT 2 SOLUTION SPRING 2019

CS604-Operrating Systems Assignment 2 #Question


Question 1:
Assume you have to apply First Come First Serve (FCFS) scheduling algorithms on the set of different processes given in the table below. The CPU burst time is also given for each process. Consider that all the processes arrive in the ready queue within time 0 seconds. You are required to show the Gantt chart to illustrate the execution sequence of these processes and calculate the total waiting time and average waiting time for the given processes by using FCFS algorithm.
Question 2:

Consider a scenario where you have to apply the Round Robin scheduling algorithm on the below-given set of processes with each having a quantum size=10 milliseconds. The CPU burst time and arrival time for each process are also provided in the given table. You are required to show the Gantt chart to illustrate the execution sequence of these processes. Moreover, calculate the average turnaround time and average waiting time for given processes by using a round robin algorithm.

To understand the Round-Robin scheduling algorithm watch this tutorial:

CS604-Operating Systems Assignment 2 Solution! Download!

CS604 Assignment_2 Solution SPRING_2019 ---------------------- Download