Sunday, 8 September 2019

CS604 Operating Systems Quiz MCQs Lecture 1-22 MidTerm Objective Questions | SUPERSTARWEBTECH

CS604 OPERATING SYSTEMS QUIZ MCQS OBJECTIVE QUSETIONS

CS604-Operating Systems Quiz #Objective #Questions

1. Bounded Buffer is a buffer of ___ size.
  • Variable
  • Fixed ✔
2. Which could not be the advantage of thread?
  • Separate address space
  • Quick response
  • Economical ✔
  • Best in a multiprocessing environment

3. ___ scheduler takes the process from the ready queue and assigns the CPU with the help of  Dispatcher.
  • Long term
  • Short term ✔
  • Medium-term
  • Swapper
4. First ___ entries in Per Process File Descriptor Table are used as soon as the process is created.
  • 1
  • 2
  • 3
  • 4
5. Which part of the computer system helps in managing the file and memory management system?
  • Operating system ✔
  • Device Drivers
  • Application software
  • Hardware
6. Swapper is also termed as Short term scheduler.
  • True
  • False ✔
7. A time-sharing system is:
  • Multi-user
  • Multitasking
  • Interactive
  • All of these ✔
8. The main characteristic of a Real-time system is:
  • Efficiency ✔
  • Large Virtual Memory
  • The large secondary storage device
  • Usability
9. Linux uses ___ directory to store system configuration files.
  • /bin
  • /dev
  • /boot
  • /etc ✔
10. A Process 'A' that has finished working but its parent process has also finished its execution. In this state, the process 'A' will be called as___.
  • Child
  • Thread
  • Zombie ✔
  • Fork
11. The problem with priority scheduling algorithm is ___
  • Deadlock
  • Starvation
  • Aging
  • Nice value
12. The priorities of processes in the ___ group remain fixed
  • Kernel
  • User
13. Batch programs are usually ___ programs
  • Interactive
  • Non-interactive
  • Foreground
  • Preemptive
14. The number of processes completed per unit time is called ___
  • Turn around time
  • Throughput
  • Response time
  • Dispatch latency
15. A process is said to be in critical section if it executes code that manipulates shared data
  • True
  • False
16. When processes are generated using fork() system call and then after that they are coordinated with each other using IPC channel. They are utilizing a separate address space for each of process (parent, child),, kernel resouces and IPC channel. This makes it a more heavy. Which strategy can be used to make it light?
  • Termination of child process when these become more
  • Scheduling of each process
  • Use of threads
  • Use of Batch systems
17. Kernel is responsible for scheduling the user level threads
  • True
  • False
18. In Unix/Linux environment Ali wants to know the number of processes running on the system and their status, number of CPUs in the system and their usage, amount of main memory and its usage. Which of the following command will help in this regard?
  • $ ps
  • $ gcc
  • $ fifo
  • $ top

MCM301 Communication Skills Quiz MCQs Lecture 23-45 Final Term Objective Questions | SUPERSTARWEBTECH


MCM301 Communication Skills OBJECTIVE QUESTIONS

MCM301-Communication Skills Quiz #Objective #Questions

1. Careful outlining of topics is helpful for all of the given reasons EXCEPT:
  • It improves the clarity of message
  • It saves writing time
  • It enables to emphasize properly the various topics in the message
  • It keeps the suspense in message
2. All of the following statements about groups are true, EXCEPT:
3. While determining the order of the topics, one should review the outline, keeping all of the following questions in mind. EXCEPT:
  • Are the ideas of equal importance presented in a parallel manner?
  • Is the sequence of the topics appropriate for the development method I am using?
  • Is the sequence of the topics likely to add clarity to my message?
  • Are related topics properly shuffled?
4. Writing with you-attitude shows sincere ___ for the reader.
  • Apathy
  • Concern
  • Sympathy
  • Curiosity
5. When do you think groups, rather than individuals working alone, should be used to solve a problem?
6. Which of the following is NOT the stage of effective business writing?
  • Planning Stage
  • Organizing Stage
  • Drafting Stage
  • Theater Stage
7. Which one of the following would not be interpreted to mean brevity which will result in an incomplete message?
8. When applied to business messages 'correctness' means all of the following EXCEPT:
  • Use the right level of language
  • Check accuracy of words, information, and data
  • Use correct grammar and punctuation
  • Check font style
9. What is the basic requirement of Coordinating behavior?
10. ___ is the language of business correspondence written for a general readership.
11. While writing a letter to inquire about the people, one should keep in mind all of the following except:
12. Bcc stands for:
13. While you plan to make a good speech, you must be engaged in which of the following?
14. When people ask you for information and you can't honor the request, you may answer with:
15. In a well written disappointing newsletter all of the following points are important, except:
  • Enough detail to make the reason for the refusal logically acceptable
  • Explaining the company's policy as logical rather than rigid
  • Offering an apology for the decision
  • Avoiding negative personal expressions
16. Which of the following is not a part of the writing plan of a reservation letter?
17. The letters written to book some place like room, hall etc. are called
18. Which of the following is not suggested for an appropriate ending of business writing (request letters)?
19. In a direct request letter, request can be presented in:
20. Which of the following is NOT the stage of effective business writing?
21. While preparing for effective business writing Drafting stage involves all of the following EXCEPT:
  • Develop appropriate beginning paragraph
  • Compose the body
  • Develop appropriate ending paragraph
  • Editing
22. Which of the following is NOT a result of incomplete messages?
23. "His GPA in 2000 (MBA) was 3.9 on a four point scale". Which of the following is a correct and more concrete form of this statement?
24. The vocabulary of informal writing is:
25. Which of the following is not a fallacy about resume?
26. The suggested plan for a sales letter includes all of the following elements, EXCEPT:
27. Where do cultural styles of audience in persuasion tend to differ?
  • Differ in their responses to persuasive appeals
  • Differ in their levels of visible emotion
  • Differ in how they regard supporting materials
  • All of given
28. Which of the following must NOT be adopted in preparing disappointing news messages?
  • Use sales-promotion material whenever appropriate
  • Consider using an implicit refusal rather than explicit refusal
  • Capitalize on what you can do for the reader rather than what you cannot do
  • Use negative words or phrases ✔ 
29. All of the following functions are performed by a good buffer, except:
30. All of the following is achieved by adopting audience centered tone in a disappointing news message, EXCEPT:
  • Accepting that your disappointing-news represents a firm decision
  • Understand that, under the circumstances, your decision was fair and reasonable
  • Remain well disposed toward your business
  • Destroying the receiver's pride
31. Which of the following is true about goodwill messages?
  • Seemingly informative
  • Presented to change attitudes
  • Presented to change behaviors 
  • All of the given
32. Which statement would be the best close for an adjustment letter?
33. The direct plan can be used for:
  • Sales messages
  • Request refusals
  • Claims
  • None 
34. BC is an abbreviation of which of the following?
35. With the use of which of the following, we reason from specific evidence to specific evidence?
36. All of the following are correct when it comes to writing disappointing news letters EXCEPT:
37. Which of the following calls on human reason?
38. Almost every customer who makes a claim is emotionally involved; therefore; the ___ is usually the best approach for a refusal
39. All of the following are the different types of buffer EXCEPT:
  • Agreement
  • Fairness
  • Cooperation
  • Bad news
40. Which of the following is to make a neutral, non-controversial statement that is closely related to the point of the message?
  • Buffer
  • Feedback
  • Communication
  • Talk
41. With the use of which of the following, we reason from a generalizing to a specific conclusion?
42. To say a clear no or writing a straight refusal in a disappointing news letter; all of the following techniques are useful EXCEPT:
  • De-emphasize the disappointing news
  • Use a conditional statement
  • Tell the audience what you did, can do, or will do, rather than what you did not do, cannot do, or will not do
  • Use a non-courteous tone
43. Which of the following is the most correct statement about the interest section of the indirect plan for persuasion?
44. Which type of goodwill message is most likely to use an RSVP?
  • Condolence
  • Invitation
  • Appreciation
  • Holiday greeting
45. Which of the following is NOT true about a congratulatory message?
46. Which of the following is the characteristic of good news letter?
  • Begin with good news
  • Use slow opening
  • Begin with explanatory details or information
  • Don't incorporate a you-viewpoint
47. Which of the following method is the best approach for refusing a claim?
48. Which of the following calls on human feeling, basing the argument on audience needs or sympathies?
49. Checking for the accuracy of dated figures, amounts and numbers, misspelled words, topographic errors etc. is done in which stage of writing?
50. Which of the following is the informal report used to communicate with individuals outside of organization?
  • Letter
  • Memo
  • Periodical
  • Magazine
51. Letters of invitation include:
  • Speaking invitations
  • Informal social invitations
  • Formal social invitations
  • All of the given
52. All of the following are Essential parts of a letter EXCEPT:
53. The courteous close of a direct request letter contains all of the following EXCEPT:
54. "Would you please send me information about points of interest and scheduled events for families visiting Murree?" Which kind of letter would be suitable for the given information?
55. In routine requests, it is advised to use direct approach which means:
56. Which of the following is the most appropriate opening for an invitation to a fund raising event?
57. To begin a disappointed newsletter with a negative information, ___ a negative situation
58. Which one of the following options refers to complimentary close?
59. Which of the following is not suggested to improve the effectiveness of the opening paragraph of business writing?
60. Order letters are usually written, when ___ are not available
  • Order reports 
  • Order blanks
  • Purchase reports
  • Purchase slips
61. All of the following are non essential parts of letter EXCEPT:
62. All of the following are qualities of effective claim letters EXCEPT:
  • An effective claim letter contains you attitude material
  • An effective claim letter presents all the facts pertinent to the situation
  • An effective claim letter contains threat
  • An effective claim letter makes a definite request
63. Like all routine messages, routine requests have all of the following EXCEPT:
64. All of the following suggestions help improve the effectiveness of the opening paragraph EXCEPT:
65. Due to which one of the following reason the claim letter differs from other positive and neutral messages using the direct plan
66. Bpc is an abbreviation of which of the following?
67. Writing a letter to inquire about people involve two considerations. First is the need to respect the rights - legal and moral; second is:
68. All of the following are Important details to include in the letter of invitation EXCEPT:
69. Order letters are comprised of all of the following distinct content components except:
  • Pertinent information about the items being ordered
  • Directions for shipping the merchandize
  • Quality report of the items
  • Method of payment
70. Which of the following type of letter is used to request general information rather than answers to specific questions?
71. How can the credibility of a presenter be increased?
  • Being well dressed and well groomed
  • Complimenting the audience
  • Demonstrating your sincerity
  • All of the given
72. Which one of the following is not required to keep conciseness in writing?
73. All of the following steps are found in the planning stage of business writing, EXCEPT:
  • Determine your purpose
  • Consider your reader
  • Choose your idea
  • Proofreading
74. Which one of the following information is true about bar charts, simple column charts and multi-column charts?
75. To find the right media for your presentation you need to first determine which one of the following?
  • The size of your audience
  • Equipment and supply limitations
  • The presentation budget
  • All of the given
76. All of the following are the characteristics of concrete writing EXCEPT:
  • Specific
  • Definite
  • Vivid
  • Vague
77. All of the following are considered as some basic truths about human nature that helps us humanize our business messages, EXCEPT:
78. All of the following are the elements of effective written communication EXCEPT:
79. All of the following factors bring the element of completeness in a message EXCEPT:
80. Which of the following method of outlining speech is generally preferred for negative news messages?
81. "His black assistant speaks more clearly than he does". Which kind of biasness this sentence shows?
82. Which one of the following group often meets face to face with a common purpose in mind?
83. ___ is often regarded as an undesirable thing, which prevents the best ideas from being adopted
84. While using a flip board in presentation, 6x6 formula is used. What does it refers to?
85. The sender analyzes the receiver's knowledge so that he/she could:

CS606 Compiler Construction Quiz MCQs Lecture 23-30 Objective Questions | SUPERSTARWEBTECH

CS606 Compiler Construction MCQS QUIZ OBJECTIVE QUESTIONS

CS606-Compiler Construction Quiz #Objective #Questions

1. NFA of LR(1) items means ___
  • no look-ahead
  • look-ahead one symbols ✔
  • look-ahead all symbols
  • None
2. In the Parsing Table, the rows correspond to Parsing DFA states and columns correspond to ___
  • Terminals and Non-terminals ✔
  • Start Symbol and its derivation
  • Handles and derivations
  • None
3. A grammar is LR if a ___ shift reduce-reduce parser can recognize handles when they appear on the top of the stack
  • left-to-reverse
  • left-to-rise
  • left-to-right ✔
  • None
4. If / is a set of items for grammar then closure(/) is a set of items constructed from / by the following rule.
  • If A-> aX.Y is in closure(/) and Y->r is production, then add X->.r to closure(/)
  • If A->a.XY is in closure(/) and X->r is production, then add X->.r to closure(/) ✔
  • If A->aXY. is in closure(/) and A->r isproduction, then add X->.r to closure(/)
  • None
5. Suppose ? begins with symbol X which may be a terminal (token) or non-terminal. The item can be written as A?Xa.?
  • True ✔
  • False
6. A handle is a substring that matches a ___ side of production rule in the grammar.
  • right hand✔
  • left hand
7. If T->XYZ is a production of grammar G then which of the following item indicates that a string derivable from X has been seen so far on the input and we hope to see a string derivable from YZ next on the input.
  • T->.XYZ
  • T->X.YZ ✔
  • T->XY.Z
  • T->XYZ.
8. In the canonical collection procedure, a DFA can not be constructed from NFA using the subset construction, similar to the one we used for lexical analysis.
  • True
  • False ✔
9. Suppose ? begins with symbol X which may be a terminal (token) or non-terminal. The item can be written as ___
  • A?a.X?
  • A?Xa.? ✔
  • A?X?.
  • X?Aa.?
10. If / is a set of items for grammar then closure(/) is a set of items constructed from / by the following rule.
  • Every item in / is in closure(/) ✔
  • Every item in / is not in closure(/)
  • Only one item in / is in closure(/)
  • None 
11. NFA of LR(0) items means ___
  • no look ahead symbol ✔
  • look ahead one symbol
  • look ahead all symbols
  • All of the given



CS606 Compiler Construction Quiz MCQs Lecture 1-22 MidTerm Objective Questions | SUPERSTARWEBTECH

CS606 Compiler Construction MCQS QUIZ OBJECTIVE QUESTIONS

CS606-Compiler Construction Quiz #Objective #Questions

1. Which of the following statement is true about Two-pass compiler.
  • Front End depends upon Back End
  • Back End depends upon Front End ✔
  • Both are independent of each other
  • None 
2. In a three-pass compiler, ___ is used for code improvement or optimization.
  • Front End
  • Middle End ✔
  • Back End
  • Both Front End and Back End
3. In multi-pass compiler during the first pass, it gathers information about ___
  • Declaration ✔
  • Bindings
  • Static information
  • None
4. Which of the statement is true about Regular Languages?
  • Regular Languages are the most popular for specifying tokens.
  • Regular Languages are based on simple and useful theory.
  • Regular Languages are easy to understand
  • All of the given ✔
5. The DFA uses its state to keep track of ___ the NFA can be in after reading each input symbol.
  • Accept state
  • Reject state
  • Next state
  • All possible states ✔
6. In ___ certain check are performed to ensure that components of a program fit together meaningfully.
  • Linear analysis
  • Hierarchical analysis
  • Semantic analysis ✔
  • None
7. Compilers are some times classifies as:
  • Single-pass
  • Multipass
  • Load and go
  • All of the given ✔
8. In compiler, linear analysis is also called
  • Lexical analysis
  • Scanning
  • Both lexical analysis and scanning ✔
  • None
9. In a transition table cells of the table contain the ___ state.
  • Reject state
  • Next state ✔
  • Previous state
  • None
10. In Back End module of the compiler, optimal register allocation uses ___.
  • O(log n)
  • O(n log n)
  • NP-Complete ✔
  • None
11. A non-recursive predictive parser is also called ___
  • table-driven parser ✔
  • Abstract parser
  • Conceptual parser
  • None
12. The shift action ___ a terminal on the stack
  • Pushes ✔
  • Pops
  • Both pushes and pops
  • None
13. Bottom-up parsing is also called ___
  • LR parsing ✔
  • LT parsing
  • LS parsing
  • SS parsing
14. ___ of a two-pass compiler is consists of instruction selection, Register allocation and instrcution scheduling
  • Backend ✔
  • Frontend
  • Start
  • None
15. Consider the grammar
A -> B C C
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
16. A -> B C C
B -> h B | epsilon
C -> C g | g | C h | i
D -> A B | epsilon
Follow of A ___
  • h, $
  • $
  • i
  • g
17. A -> B C C
B -> h B | epsilon
C -> C g | g | C h | i
D -> A B | epsilon
Follow of C is ___
  • g, h, i, $ ✔
  • g, h, $
  • h, i, $
  • h, g, $
18. Left factoring of grammar is done to save the parser from backtracking.
  • True ✔
  • False
19. Typical compilation means programs written in high-level languages to low-level ___
  • Object code 
  • Byte code
  • Unicode
  • Object code and byte code ✔
20. In compilation process, Hierarchical analysis is also called ___
  • Parsing
  • Syntax 
  • Parsing and Syntax analysis ✔
  • None
21. IR (Intermediate Representation) stores the value of its operand in ___
  • Registers ✔
  • Memory
  • Hard disk
  • None
22. A lexeme is a sequence of characters in the source program that is matched by the pattern for a ___
  • Linker
  • Token ✔
  • Control flow
  • None
23. Parsers take ___ as Input from lexical analyzer.
  • Linker
  • Token ✔
  • Instructions
  • None
24. What kind of abstract machine can recognize strings in a regular set?
  • DFA ✔
  • NFA
  • PDA
  • None
25. In DFA minimization, we construct one ___ for each group of states from the initial DFA.
  • State ✔
  • NFA
  • PDA
  • None
26. ___ (lexical Analyzer generator), is written in Java
  • Flex
  • Jlex ✔
  • Complex
  • None
27. In flex specification file, different sections are separated by ___
  • %% ✔
  • &&
  • ##
  • None
28. Recursive ___ parsing is done for LL(I) grammar.
  • Descent y✔
  • Ascent
  • Forward
  • None
29. Alternative of the backtrack in parser is Look ahead symbol in ___
  • Input ✔
  • Output
  • Input and Output
  • None
30. Parser takes tokens from scanner and tries to generate ___
  • Binary Search Tree
  • Parse tree ✔
  • Binary Search and Parse tree
  • None
31. In predictive parsing table, the rows represents ___
  • Terminals
  • Both non-terminals and terminals
  • Non-terminals ✔
  • None
32. In LL(I) parsing algorithm, ___ contains a sequence of grammar symbols.
  • Stack ✔
  • Link list
  • Array
  • None
33. Consider the grammar
A -> B C D
B -> h B | epsilon
C -> C g | g | C h | i
D -> A B | epsilon
First of C is ___
  • g, i ✔
  • g
  • h, i
  • None
34. Bottom-up parsing uses only ___ kinds of actions.
  • Two ✔
  • Three
  • Four
  • Five
35. Reduce ___ action zero or more symbols from the stack.
  • Pushes
  • Pops ✔
  • Both push and pops
  • None
36. Back End of two-pass compiler uses ___ algorithm
  • O(n)
  • O(n log n)
  • NP complete ✔
  • None
37. The Back End of a compiler consists of ___
  • Instruction selection ✔
  • Register allocation
  • Instruction scheduling
  • All of given
38. ___ is a regular expression for the set of all strings over the alphabet {a} that has an even number of a's
  • aa*
  • (aa)* ✔
  • aa*a
  • a(aa)*
39. ___ algorithm is used in DFA minimization.
  • Jame's
  • Robert's
  • Hopcroft's y✔
  • None
40. ___ is an important component of semantic analysis.
  • Code checking
  • Type checking ✔
  • Flush checking
  • None
41. Consider the grammar
A - > B C D
B -> h B | epsilon
C -> C g | g | C h | i
First of B is ___
  • h, i
  • h, epsilon ✔
  • g
  • None 
42. Consider the grammar 
A -> B C D
B -> h B | epsilon
C -> C g | g | C h | i
D -> A B | epsilon
First of D is ___
  • h, g
  • h
  • h, g, i, epsilon ✔
  • None
43. ___ parsers never shifts into an error state.
  • LS
  • LT
  • LR ✔
  • LP
44. ___ read the input character and produce sequence of tokens as output.
  • Lexical analyzer ✔
  • Parser
  • Symbol table
  • None
45. The regular expression ___ denotes, the set of all strings of a's and b's of length two.
  • a*
  • (a*| b*)*
  • (a*b*)*
  • (a|b)(a|b) ✔
46. ___ is evaluated to yield a value.
  • Command
  • Expression ✔
  • Declaration
  • None
47. Bottom-up parsers handle a ___ class of grammar
  • Large ✔
  • Small
  • Medium
  • None
48. LR parsers can handle ___ grammars.
  • Left-recursive ✔
  • File-recursive
  • End-recursive
  • Start-recursive
49. ___ convert the relocatable machine code into absolute machine code by linking library and relocatable object files.
  • Assembler
  • Loader/link-editor ✔
  • Compiler
  • Preprocessor
50. Consider the grammar 
A -> B C D
B -> h B | epsilon
C -> C g | g | C h | i
D -> A B | epsilon
Follow of B is ___
  • h ✔
  • g, h, i, $
  • g, i
  • g
51. In PASCAL ___represent the inequality test.
  • :=
  • =
  • <> ✔
  • None
52. ___ avoid hardware stalls and interlocks.
  • Register allocation
  • Instruction scheduling ✔
  • Instruction selection
  • None
53. One of the core tasks of compiler is to generate fast and compact executable code.
  • True ✔
  • False
54. Responsibility of ___ is to produce fast and compact code.
  • Instruction selection ✔
  • Register allocation
  • Instruction scheduling
  • None
55. Compilers are sometimes classified as
  • Single pass
  • Multi pass
  • Load and go
  • All of given ✔
56. Flex is an automated tool that is used to get the minimized DFA (scanner).
  • True
  • False ✔
57. For each language to make LL(1) grammar, we take two steps, 1st is removing left recurrence and 2nd is applying left factoring in sequence.
  • True ✔
  • False
58. Optimal registers allocation is an NP-hard problem.
  • True
  • False ✔
59. Front end of two pass compiler takes ___ as input.
  • Source code ✔
  • Intermediate Representation (IR)
  • Machine code
  • None
60. NFA is easy to implement as compared to DFA 
  • True
  • False ✔
61. We can get an LL(1) grammar by ___
  • Removing left recurrence
  • Applying left factoring
  • Removing left recurrence and Applying left factoring ✔
  • None
62. Parser always gives a tree like structure as output
  • True
  • False
63. Lexer and scanner are two different phases of compiler.
  • True
  • False ✔
64. ___ phase which supports macro substitution and conditional compilation.
  • Semantic
  • Syntax
  • Preprocessing ✔
  • None
65. ___ tree in which each node represents an operator and children of the node represent the operands
  • Abstract syntax ✔
  • Concrete syntax
  • Parse
  • None
66. Ambiguity can easily be handled by top-down parser

  • True ✔
  • False
67. LR parsing ___ a string to the start symbol by inverting productions.

  • Reduces ✔
  • Shifts
  • Adds
  • None
68. In parser the two LL stand(s) for ___

  • Left-to-right scan of input
  • left-most derivation
  • All of the given ✔
  • None
69. Can a DFA simulate NFA?

  • Yes ✔
  • No
  • Sometimes
  • Depend upon NFA
70. The transition graph for an NFA that recognized the language (a|b)*abb will have following set of states.

  • {0}
  • {0, 1}
  • {0, 1, 2}
  • {0, 1, 2, 3} ✔
71. Functions of Lexical analyzer are?

  • Removing white space
  • Removing constants, identifiers and keywords 
  • Removing comments
  • All of given ✔
72. ___ method is known as subset construction method.

  • NFA to DFA ✔
  • DFA
  • DFA maximization
  • None
73. Which one is NOT the Role of Run-Time System?

  • garbage collection
  • memory management
  • run time error checking
  • None ✔
74. Compiler ___ information from one representation to another.

  • modified
  • translate ✔
  • execute
  • extract
75. Front-end of a two pass compiler is consists of scanner.

  • True
  • False ✔
76. Backtracking is a costly operation which is caused due to Left Recursion.

  • True
  • False ✔
77. AST summarizes the grammatical structure with the details of derivations.

  • True
  • False ✔
78. Backtrack is term associated with Top-down parsing.

  • True ✔
  • False
79. Which of the following statement/s is/are true about Deterministic Finite Automata?

80. The lexical analyzer partition input string into substrings called ___