Answer:
Extreme programming is a software development technique which is used to enhance software quality and it's response to ever changing customer requirements.
Testing
Testing is main focus in extreme programming.Extreme programming addresses testing in a way that if a minute testing can eliminate a bit of flaws, extensive testing can terminate a lot of flaws.
Evolution in Extreme programming is like this:-
Coding:-First programmers will code the problem.
Testing :- Testing is done to remove flaws.
Listening:- Programmers must listen to the customers to what they need.
Designing:-Then design according to the customer needs.
You may nest while and do-while loops, but you may not nest for loops
True False
Answer:
You may nest while and do-while loops, but you may not nest for loops - False
Convot the following biliary number into decimal form using any method ? (1010.100)2
Answer:
10.5
Explanation:
1010.1
Handy method you can find searching google images, and I originally learned
from some guy teaching an online java course.
.1 --> 1 * 2^(-1) = 0.5
0 --> 0 * 2^(0) = 0
1 --> 1 * 2^(1) = 2
0 --> 0 * 2^(2) = 0
1 --> 1 * 2^(3) = 8
0.5 + 2 + 8 = 10.5
If for some reason it isn't very clear, just take the number, (x) and multiply it
by two to the power of the position it is in. (e.g. first number before decimal point is 0, second 1, etc).
When used as parameters, _________ variables allow a function to access the parameter’s
original argument.
Answer: reference
Explanation:
In an function if the variables are passed as reference variables this means that the variables are pointing to the original arguments.So the changes made in the function on the reference variables will be reflected back on the original arguments.
For example:-
#include<iostream>
using namespace std;
void swap(&int f,&int s)
{
int t=f;
f=s;
s =temp;
}
int main()
{
int n,m;
n=45;
m=85;
swap(n,m);
cout<<n<<" "<<m;
return 0;
}
the values of m and n will get swapped.
#include<iostream>
using namespace std;
void swapv(int f,int s)
{
int t=f;
f=s;
s=temp;
}
int main()
{
int n,m;
n=45;
m=85;
swapv(n,m);
cout<<n<<" "<<m;
return 0;
}
In this program the values of m and n will not get swapped because they are passed by value.So duplicate copies of m and n will be created and manipulation will be done on them.
What is the Moore's law
Answer:
Hi, in the law of Moore we can express aproxitmaly for each two years is duplicated the number of transitors in a microprocessor.
Explanation:
In around 26 years the number of transitors has increased about 3200 times, a transitor is a way to regulate the current voltage flow and can be act like a switch for an electronic signal.
I hope it's help you.
Answer:
The power of microprocessors would double every two years
Explanation:
Write a test program that prompts the user to enter two strings and, if they are anagrams, displays is an anagram; otherwise, it displays is not an anagram
Answer:-Following is the program for the checking if 2 strings are anagram in c++:-
#include<bits/stdc++.h>
using namespace std;
int main()
{
string ana1,ana2;//declaring two strings.
int an1[256]={},an2[256]={};//declare two count arrays of size 256 an1 and an2.
bool test=true;//taking a bool variable test = true for displaying the result..
cout<<"Enter both the strings"<<endl;
cin>>ana1>>ana2;//prompting the strings..
for(int i=0;ana1[i]&ana2[i];i++) // iterating over both the strings.
{
an1[ana1[i]]++;//increasing the count of the characters as per their ascii values in count array an1.
an2[ana2[i]]++;//increasing the count of the characters as per their ascii values in count array an2.
}
for(int i=0;i<256;i++)//iterating over the count arrays..
{
if(an1[i]!=an2[i])//condition for not anagram.
{
cout<<"not an anagram"<<endl;
test=false;//making test false..
break;//coming out of the loop.
}
}
if(test)//if test is true only then printing..
cout<<"is an anagram"<<endl;
return 0;
}
Explanation:-
A string is said to be an anagram string of other string if it has same characters but in different order.
for example:-
string 1="raman"
string 2="manar"
string 2 is an anagram of string 1.
What are the advantages in implementing a language with apure interpreter?
Answer:
The advantage of implementing a language with pure interpreter is source level debugging implementation operations are easy in a language with pure interpreter because all run time error messages refers to source level unit.For example-array index out of bound.
Built-in user accounts include only the Administrator account created during Windows installation True False
Answer: True
Explanation:
When an OS is installed, the first account created is the built -in user account. It is the administrator account for the purpose of recovery and to facilitate the set up.
The statement is false; there are several built-in user accounts in Windows besides the Administrator account, including Guest, System, and service accounts such as Network Service and Local Service.
The statement that built-in user accounts in Windows include only the Administrator account created during Windows installation is false. Windows operating systems usually come with several predefined accounts for system management and security purposes.
Beyond the Administrator account, there is also the 'Guest' account, which is normally disabled by default but designed for users who require temporary access to the computer. Moreover, there is the 'System' account, which is used by the operating system to manage system services and the 'Network Service' and 'Local Service' accounts which have specific privileges to run particular system services without requiring the full privileges of the Administrator account.
These built-in accounts are an essential part of Windows security management, with each serving different roles and representing different levels of access permissions within the operating system.
The resources assigned to them will significantlyinfluences the duration of most activities.
True
False
Explanation:
Assigned to whom? what resources??
.the test team devives from the requirements a suiteof:
A.acceptance tests B.regression suite C.buglist D.priority list
Answer:
A. acceptance tests
Explanation:
In acceptance testing, the system is tested for acceptability to the end user. In order to do this it needs to be validated against the specified requirements. The testing team derives the acceptance tests from the requirement specification.
It generally corresponds to the last phase of testing operations for the system when the system is considered stable enough to be offered to the end user. If the system fails to satisfy the acceptance testing criteria, it needs to go through further rounds of iterative development.
If you want to stop a loop before it goes through all its iterations, the break statement may be used.
True False
Final answer:
The break statement is utilized to stop a loop prematurely in programming by exiting the loop before all iterations are completed.
Explanation:
The break statement in programming is used to stop a loop before it completes all its iterations. If the condition for the loop is True, the loop will keep running until the break statement is encountered, which then exits the loop.
Using a break statement helps in controlling the flow of the loop and is particularly useful in scenarios where you need to exit a loop prematurely based on certain conditions.
By strategically placing the break statement within a loop, you can efficiently manage when the loop should terminate, preventing it from running indefinitely.
___ consists of a central conductor surrounded by a shield (usually a wire braid).
a) twisted pair cable b) coaxial cable c) antenna d) optical fiber
Answer: Coaxial cable
Explanation:
Coaxial cable consist of an central conductor surrounded by a shielded material in form of an insulating plastic. These cables have a high bandwidth and has a higher speed as compared to twisted cable.
Therefore the answer is coaxial cable.
In an e-credit card transaction the clearinghouse plays the following role:
A. validates and verifies the sellers payment information
B. initiates the transfer of money
C. transfers funds between the sellers bank and the buyers bank
D. all of the above
Answer:
validates and verifies the seller's payment information- A.
Answer:
Hi Samantha, i have a work with you.
put is a function to __________.
Ex:cout.put(aChar);
A)get one next character from the input stream
B)input one next character to the input stream
C)put one next character to the output stream
D)output one next character from the input stream
Answer: put one next character to the output stream
Explanation:
put is a member of the output stream class. So using the code cout which means displaying and the put method which places a character to the output stream. It is in use in C++.
23. Which of the following is most likely to violate a FIFO queue? A) supermarket with no express lanes B) car repair garage C) emergency room D) fast-food restaurant E) All of the above are equally likely to violate a FIFO queue.
Answer:
emergency room- C)
The true or false questions.
The start directory of find is optional
Answer:
true
Explanation:
Find command syntax is as follows:
find [starting directory] [options]
For example:
$ find /tmp -name test
$ find . -name demo -print
$ find
As we can see in the last example, starting-directory and options can both be omitted and it will still be a valid command. When the start directory is omitted, it defaults to the current directory.
The order of the nodes in a linked list is determined by the data value stored in each node.
True
False
Answer:
False
Explanation:
Linkedlist is a data structure which is used to store the elements in the node.
The node has two store two data.
first element and second pointer which store the address of the next node.
if their is no next node then it store the NULL.
We can store data in randomly. Therefore, the order of node cannot be determine by data values.
we can use pointers for traversing using the loop because only pointer know the address of the next node, and next noe know the address of next to next node and so on...
Therefore, the answer is False.
With theuse of which of the following, we reason from a generalization to aspecific conclusion?
a- Analogy
b- Logic
c- Induction
d- Deduction
Answer:
d-Deduction
Explanation:
Deduction
In deductive inference, we maintain a hypothesis and we predict its implications on the basis of it. That is, we predict what the results should be if the theory were right. We go from the general theory to the particular observations.
Induction
We're going from the specific to the general inductive inference. We make a lot of observations, discern a pattern, generalize and infer an explanation or theory.
Analogy
An analogy is a comparison between two objects or object systems, highlighting the respects in which they are considered to be similar.
Logic
Science dealing with the principles and criteria of validity of inference and demonstration that is science of formal rules of reasoning.
what is a networking.give types also?
Answer: Networking is the method of exchanging of the information or data through a shared medium with different nodes in a networking system. Different types of networking are :-
LANWANMANPANExplanation: Networking forms the basic connection for sharing of the data between different nodes on the same medium . There are different types of network that are present according to the certain requirements are as follows:-
LAN(Local area network)-consists of a network established at a single site, particularly for an single building or infrastructure.WAN(Wide area network)-it is for a very wide area and also a combination of many MAN's and LAN's together . MAN(Metropolitan area network)-it is larger than a LAN and particularly limited to a single building or site such as a college building or office building.PAN(Personal area network)-computer network for an individual person within a building.
____________ is the most general and least usefulperformance metrics for RISC machines
o MIPS
o Instruction Count
o Number of registers
o Clock Speed
Answer: Instruction count
Explanation: Instruction count is the most general and least useful performance matrix for RISC machine because RISC is known for the reduced set of instruction so indirectly the instructions are less so there is not much requirement of keeping the count of instruction.other features mentioned in the question describes the performance factor of RISC machine and are the major factor behind the working of the RISC machine.
Answer:
Instruction Count
Explanation:
[tex]\text{Performance}=(\frac{\text{Instruction}}{\text{Program}} )\times(\frac{\text{clocks}}{\text{instruction}})\times(\frac{\text{seconds}}{\text{clock}})[/tex]
This is the formula for the Performance of Risc machines,as execution time is a product of three factors that are relatively independent of each other.As we can see that performance is directly related to the Instruction count,Clock speed and Number of registers.
Instruction count (IC) is the most general and least useful performance metrics : the complete number of executions involving instruction in a program. Repetitive activities like loops and recursions dominate it.
___ defines a series of standards for encoding audio and video in digital form for storage or transmission. Most of these standards include compression, often lossy compression.
a) JPEG b) ANSI c) ISO d) MPEG
Answer:
d) MPEG
Explanation:
MPEG stands for Moving Picture Experts Group.
It defines standards for audio and video compression on digital form for storage and transmission.
JPEG (Joint Photographic Experts Group)ANSI (American National Standards Institute)ISO ( International Organization for Standardization)are also international standards but they are not related to dogotal video compression.
. The limitingcondition for a list might be the number of elements in thelist.
a. True
b.False
Answer:
True
Explanation:
Yes, the limiting condition of a linked list is the number of the elements that are present in the list. Consider a linked list contains 'n' number of elements, create an iterator which iterates over all the n elements of the linked list. So , in the limiting condition ( for loops , while loops, do while loops in all the looping conditions in fact in any conditions ) the iterator has to iterate over all the elements present in the linked list. So , the limiting condition is the number of elements in the list.
Develop a program that will calculate the area and perimeter of a rectangle. The length and width can be given as constant.(LENGTH= 8 WIDTH=8).
Answer:
#include <iostream>
using namespace std;
int main()
{
int length = 8;
int width = 8;
int perimeter = 2*(length + width);
int area = length * width;
cout<<"The perimeter is "<<perimeter<<endl;
cout<<"The area is "<<area<<endl;
return 0;
}
Explanation:
include the library iostream for using the input/output instructions in the c++ programming.
Create the main function and define the variable length and width with values.
Then, use the formula for calculating the perimeter and area of rectangle.
[tex]perimeter = 2*(length + width)[/tex]
[tex]area = length * width[/tex]
and store in the variables and finally print the output.
What are the details of frame transmission andreception that LAN interface handles?
Answer and Explanation:
LAN transmission and reception handles the given bellow details
LAN adds hardware address and use for error detection codes Use DMA to copy frame data directly from main memoryit follows access rule then transmission is in progressit also check the address where data is sent on incoming framesif the destination address completely match with location address a copy of the frame is passed to the computer
in LAN system a single pocket is sent to the one or more nodes
Which statement correctly tests int variable var to be less than 0 or more than 50?
Answer:
if-else statement.
Explanation:
if-else is the conditional statement that can be used for checking the condition.
Syntax of if-else statement:
if(condition){
statement;
}else{
statement;
}
if the condition put in the if part is TRUE, then the statement inside the if will execute. if the condition put in the if part is FALSE, then the else part will execute.
In the question for testing the variable var is less than or more than 50, if-else statement is best statement.
We can used like that:
if(var<0 || var>50){
printf("Test pass");
}else{
printf("Test failed");
}
An initialization expression may be omitted from the for loop if no initialization is required.
True False
Answer:
True
Explanation:
for loop is used to repeat the process again and again until the condition not failed.
syntax:
for(initialize; condition; increment/decrement)
{
Statement
}
But we can omit the initialize or condition or increment/decrement as well
the syntax after omit the initialization,
for( ; condition; increment/decrement)
{
Statement
}
The above for loop is valid, it has no error.
Note: don't remove the semicolon.
You can omit the condition and increment/decrement.
and place the semicolon as it is. If you remove the semicolon, then the compiler show syntax error.
The continue statement _________.
A)Disables the loop
B)Skips the loop
C)Transfer control to another code segment in the loop
D)Terminates the loop
Answer: C) Transfer control to another code
Explanation: Continue statement is a type of statement for the controlling of the loop. It has the main function of execution of the next or another iteration. If the continue statement is executed inside a loop then the current execution of the statement will stop and jump on the next statement immediately and will transfer the loop there.
Write a program that takes the radius of a sphere (a floating-point number) as input and then outputs the sphere’s: Diameter (2 × radius) Circumference (diameter × π) Surface area (4 × π × radius × radius) Volume (4/3 × π × radius × radius × radius)
Final answer:
To calculate the properties of a sphere, such as diameter, circumference, surface area, and volume, we can use a Python program that takes the radius as input and applies mathematical formulae for a sphere.
Explanation:
To create a program that calculates the properties of a sphere, we will use the following formulae for a sphere: diameter is 2 × radius, circumference is diameter × π (pi), surface area is 4 × π × radius², and volume is (4/3) × π × radius³.
Example Code in Python
Here is a simple Python program for calculating the properties of a sphere:
import math
# Input: radius of a sphere
def sphere_properties(radius):
diameter = 2 * radius
circumference = diameter * math.pi
surface_area = 4 * math.pi * radius ** 2
volume = (4/3) * math.pi * radius ** 3
return diameter, circumference, surface_area, volume
# Example usage:
radius = float(input("Enter the radius of the sphere: "))
properties = sphere_properties(radius)
print(f"Diameter: {properties[0]}")
print(f"Circumference: {properties[1]}")
print(f"Surface Area: {properties[2]}")
print(f"Volume: {properties[3]}")
This program prompts the user to input the radius as a floating-point number, and then outputs the calculated diameter, circumference, surface area, and volume of the sphere.
What are the applications of assembly language where any heigher language become insufficient.???
Answer and Explanation:
we know that high level language gives the best optimized output but its not good as the codes are written in assembly language by human expert if the application is badly constrained in memory and we need fast running then we have to use assembly language directlyif any project is specific to a particular platform and never needs to transfer to any other platform then its better to use assembly language this much better output
Assembly language is used in domains requiring direct hardware control or optimized performance, such as embedded systems, bootloaders, firmware, and performance-critical applications like game engines or signal processing software.
Explanation:The applications of assembly language are particularly relevant in scenarios where control over hardware specifics is crucial, or where execution speed and efficiency are of paramount importance. Unlike higher-level languages, assembly language allows programmers to write code that is directly correlated with the machine instructions of the hardware, providing a high level of control and optimization. Some of the applications include writing code for embedded systems, such as microcontrollers in automotive sensors, or when creating bootloader and firmware software that operate at a very low level in the computer hardware. Additionally, critical performance applications which require highly optimized code, such as video game engines or signal processing software, often use assembly language to squeeze out extra performance where higher-level languages might introduce too much overhead.
Write a C++ programthat returns the type of a triangle (scalene, equilateral,or
isosceles). The input tothe program should consist of the lengths of thetriangle's
3 sides.
Answer:
#include<iostream>
using namespace std;
int main(){
//initialize
int a, b,c;
//print the message
cout<<"Enter the three sides of the triangle: "<<endl;
//store in the variables
cin>>a>>b>>c;
//if-else statement for checking the conditions
if(a == b && b == c && a == c){
cout<<"\nThe triangle is equilateral";
}else if(a != b && b != c && a != c ){
cout<<"\nThe triangle is scalene";
}else{
cout<<"\nThe triangle is isosceles";
}
return 0;
}
Explanation:
Create the main function and declare the three variables for the length of the sides of the triangle.
print the message on the screen for the user. Then the user enters the values and its store in the variables a, b, and c.
use the if-else statement for checking the conditions.
Equilateral triangle: all sides of the triangle are equal.
if condition true, print the equilateral triangle.
Scalene triangle: all sides of the triangle are not equal.
if condition true, print the Scalene triangle.
if both conditions is not true, then, the program moves to else part and print isosceles.
What is the value of the following expression? (false || (4-3 && 6))
true
false
0
illegal syntax
Answer:
true
Explanation:
The operator '||' is called the OR operator. it is used in between the two Boolean values.
OR operator has four possible values:
First Boolean is TRUE and second Boolean is TRUE, result will be TRUE.
First Boolean is TRUE and second Boolean is FALSE, result will be TRUE.
First Boolean is FALSE and second Boolean is TRUE, result will be TRUE.
First Boolean is FALSE and second Boolean is FALSE, result will be FALSE.
consider the expression:
(false || (4-3 && 6))
the second expression (4-3 && 6) gives Boolean TRUE, because their is no point for condition false.
so, (false || True) gives TRUE result.
Final answer:
False. The expression (false || (4-3 && 6)) will result in false because the '&&' operator takes precedence over '||', and 4-3 evaluates to 1 which is considered 'true' in Boolean logic.
Explanation:
The value of the expression (false || (4-3 && 6)) is true. In this expression, ((4-3 && 6)) is evaluated first. Since 4-3 is 1, which is true, and 6 is also a non-zero number, which is considered true, the result of that part of the expression is true because both operands are true for the && (AND) operator. Then we have 'false || true', and since '||' is the OR operator, the expression is true if either side is true. Hence, the entire expression evaluates to true.