GATE 2011
81 questions
MCQ 811-mark 40 · 2-mark 41
Questions 56–60 of 81
HTML (Hyper Text Markup Language) has language elements which permit certain actions other than describing the structure of the web document. Which one of the following actions is NOT supported by pure HTML (without any server or client side scripting) pages?
Answer: (D)
Plain HTML can embed objects from other sites, such as with iframe and img. It can also refresh a page or redirect to another page, using meta refresh. Showing the client's current time needs JavaScript, which is client-side scripting.
Answer: Display the client time as part of the page
Answer: Display the client time as part of the page
Consider different activities related to email.
m1: Send an email from a mail client to a mail server
m2: Download an email from mailbox server to a mail client
m3: Checking email in a web browser
Which is the application level protocol used in each activity?
m1: Send an email from a mail client to a mail server
m2: Download an email from mailbox server to a mail client
m3: Checking email in a web browser
Which is the application level protocol used in each activity?
Answer: (C)
Let us look at each activity one by one:
- Sending mail from the client to the server: SMTP
- Downloading mail from the mailbox to the client: POP
- Reading mail in a web browser: HTTP
Answer: m1: SMTP, m2: POP, m3: HTTP
- Sending mail from the client to the server: SMTP
- Downloading mail from the mailbox to the client: POP
- Reading mail in a web browser: HTTP
Answer: m1: SMTP, m2: POP, m3: HTTP
The following is comment written for a C function /* This function computes the roots of a quadratic equation a.x^2+b.x+c=0. The function stores two real roots in *root1 and *root2 and returns the status of validity of roots. It handles four different kinds of cases.
i When coefficient a is zero irrespective of discriminant
ii When discriminant is positive
iii When discrimanant is zero
iv When discrimanant is negative
Only in cases ii and iii , the stored roots are valid.
Otherwise 0 is stored in the roots.
The function returns 0 when the roots are valid and -1 otherwise.
The functin also ensures root1>=root2.
int get_QuadRoots float a, ( float b, float c, float *root1, float *root2);
* /
A software test engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.
Which one of the following options provide the set of non-redundant tests using equivalence class partitioning approach from input perspective for black box testing?
i When coefficient a is zero irrespective of discriminant
ii When discriminant is positive
iii When discrimanant is zero
iv When discrimanant is negative
Only in cases ii and iii , the stored roots are valid.
Otherwise 0 is stored in the roots.
The function returns 0 when the roots are valid and -1 otherwise.
The functin also ensures root1>=root2.
int get_QuadRoots float a, ( float b, float c, float *root1, float *root2);
* /
A software test engineer is assigned the job of doing black box testing. He comes up with the following test cases, many of which are redundant.
Which one of the following options provide the set of non-redundant tests using equivalence class partitioning approach from input perspective for black box testing?
Answer: (C)
In equivalence class partitioning, inputs that make the program behave in the same way form one class, and one test per class is enough. Here the classes are decided by and the discriminant .
- T1:
- T2:
- T3:
- T4:
- T5:
- T6:
So the classes are: (T1, T2), (T5), (T3, T4), and (T6). We need one test from each class: one of T1/T2, one of T3/T4, T5 and T6.
Option (C) T2, T4, T5, T6 has exactly one from each class. Option (A) T1, T2, T3, T6 repeats and misses . Option (B) T1, T3, T4, T5 repeats and misses . Option (D) T2, T3, T4, T5 repeats and misses .
Answer: (C)
- T1:
- T2:
- T3:
- T4:
- T5:
- T6:
So the classes are: (T1, T2), (T5), (T3, T4), and (T6). We need one test from each class: one of T1/T2, one of T3/T4, T5 and T6.
Option (C) T2, T4, T5, T6 has exactly one from each class. Option (A) T1, T2, T3, T6 repeats and misses . Option (B) T1, T3, T4, T5 repeats and misses . Option (D) T2, T3, T4, T5 repeats and misses .
Answer: (C)
Which of the following is NOT desired in a good Software Requirement Specifications (SRS) document?
Answer: (D)
An SRS tells what the system must do. This covers functional requirements, non-functional requirements and goals. Algorithms belong to design and implementation. They are not part of the requirements.
Answer: Algorithms for Software Implementation
Answer: Algorithms for Software Implementation
A company needs to develop digital signal processing software for one of its newest inventions. The software is expected to have 40000 lines of code. The company needs to determine the effort in person-months needed to develop this software using the basic COCOMO model. The multiplicative factor for this model is given as 2.8 for the software development on embedded systems, while the exponentiation factor is given as 1.20. What is the estimated effort in personmonths?
Answer: (A)
Basic COCOMO effort formula: .
Value of the power term: , so E 2.8 83.66 = 234.25 person-months
Answer: 234.25
Value of the power term: , so E 2.8 83.66 = 234.25 person-months
Answer: 234.25