Answer:
Internet marketing typically is one-way and impersonal- False.
The following statement is false.
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");
}
The primary characteristic of auctions is that prices are determined dynamically by competitive bidding ( true or false)
Answer: True
Explanation:
The following statement is false.
.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.
Give a Rationale for a layered approach to a network architecture. ? How does TCP/IP differ from ISO/OSI?
Answer: Layered network architecture enables us a clear loosely coupled system with a definite distinction between the various layers visible.
Explanation:
Layered architecture enable independent deployment of each of the different layer, so that emphasis can be laid to the layers in respect of their protocol deployment.
TCP/IP is a standard model which is being followed everywhere, however the OSI is a conceptual model. The TCP/IP is actually derived from the OSI model.
Both the models differ in the number of layers present in them.
TCP/IP has 4 layers whereas OSI has 7 layers.
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.
Microsoft has developed the Active Directory Domain structure so that a central authority, called the __________, is the repository for all domain security records.
Answer:
Domain Controller
Explanation:
Microsoft has developed the Active Directory Domain structure so that a central authority, called the domain controller, is the repository for all domain security records.
An active direct identifies and provides the enabled administrators for connecting to the windows-based It resources. It helps the IT department to manage and secure the windows based system and apps.
A domain controller is a server computer that replies to the secure and authentic requests within a computer network.Hence the answer is a domain controller.
Learn more about the Active Directory Domain structure so.
brainly.com/question/13591643.
What are the disadvantages of having too many featuresin a language?
Answer:
Disadvantage of having too many features in a language is that:
There are many functions with same name but perform different function or task so it will create an issue or problem. Features do not duplicate one another as, there are different possible syntax for the same meaning. In a mathematical function, sometimes user function and mathematical variable name collide with language base features so it will create problem.Language levels have a direct influence on _______________
Write ability
Readability
Readability
None of the given
Answer:
Write Ability.
Explanation:
Great question, it is always good to ask away and get rid of any doubts that you may be having.
The level of skill you have with a certain language directly affects how fast and accurately you can code. An experienced Java programmer can finish a project a lot faster than someone who knows how to code but does not have much experience with that language.
Your language level also directly affects a codes functionality, since a person with more experience coding in a specific language will have a significantly less amount of errors.
Based on the information given above we can say that, "Language levels have a direct influence on Write Ability."
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.
Write a program that generates a random number between 5 and 15 and asks the user to guess what the number is. If the user’s guess is higher than the random number, the program should display Too high. Try again. If the user’s guess is lower than the random number, the program should display Too low, Try again. The program should use a loop that repeats while keeping a count of the number of guesses the user makes until the user correctly guesses the random number. Then the program should display the number of guesses along with the following message Congratulations. You figured out my number. Suggest that you also give the user the opportunity to play the game again or quit.
Answer: The c++ program for the number guessing game is given below.
#include <iostream>
using namespace std;
// method declaration without parameters
void game();
int main() {
char reply;
// calling the game method
game();
cout<<"Would you like to continue with the game ? Enter y to continue. Enter q to quit the game. " <<endl;
cin>>reply;
if(reply == 'y')
game();
if(reply == 'q')
cout<<"Quitting the game..."<<endl;
return 0;
}
void game()
{
int num, guess, attempt=0;
num = (rand() % 10) + 6;
cout<<endl<<"Welcome to the game of guessing the correct number "<<endl;
do
{
cout<<"Enter any number between 5 and 15. "<< endl;
cin>>guess;
if(guess<5 || guess>15)
{
do
{
cout<<"Invalid number. Enter any number between 5 and 15. "<<endl;
cin>>guess;
}while(guess<5 || guess>15);
}
if(guess < num)
{
cout<<"Too Low"<<endl;
attempt++;
}
if(guess > num)
{
cout<<"Too High"<<endl;
attempt++;
}
}while(guess != num);
cout<<"Congratulations. You figured out my number in "<<attempt<< " attempts."<<endl;
}
Explanation:
The expression
(rand() % 10)
generates a random number between 0 and 9. 6 is added to generate a random number between 5 and 15.
The integer variable attempt is initialized to 0.
Next, user is asked to guess the number. If the user enters an invalid input, the do-while loop begins until a valid input is received from the user.
cout<<"Enter any number between 5 and 15. "<< endl;
cin>>guess;
if(guess<5 || guess>15)
{
do
{
cout<<"Invalid number. Enter any number between 5 and 15. "<<endl;
cin>>guess;
}while(guess<5 || guess>15);
}
User is prompted to input the guess using the same do-while loop as above. Until the user guesses the correct number, the loop continues. Each incorrect guess by the user, increments the variable attempt by 1. This represents the number of attempts done by the user to guess the correct number.
if(guess < num)
{
cout<<"Too Low"<<endl;
attempt++;
}
if(guess > num)
{
cout<<"Too High"<<endl;
attempt++;
}
The random number generation and the guessing logic is put in a separate method game().
The entry and exit from the game only is put inside the main method.
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)
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.
Write a C++ program to exchange values of two variables using function exchange().
Answer:
#include<iostream>
using namespace std;
//create the exchange function
void exchange(int a, int b){
int temp; //initialize temporary
//swap the variables value
temp=a;
a=b;
b=temp;
//print the output after exchange
cout<<"a is: "<<a<<endl;
cout<<"b is: "<<b<<endl;
}
//main function program start from here
int main(){
//initialization
int a=3, b=6;
exchange(a,b); //calling the function
return 0;
}
Explanation:
Create the function exchange with two integer parameter which takes the value from the calling function.
and then declare the third variable temp with is used for swapping the value between two variables.
first store the value of 'a' in the temp and then assign the 'b' value to 'a' and then, assign the temp value to b.
for example;
a=2, b=9
temp=2;
a=9;
b=2;
So, the values are swap.
and then print the swap values.
Create the main function and define the input a and b with values.
Then, calling the exchange function with two arguments.
what characteristics need to be exhibited by an organisation to improve its software process?
Answer: Defined , Controllable , Measured , Effective , Institutionalized are some of the characteristics needed to be exhibited by an organisation to improve its software process
Explanation:
Software process improvement(SPI) helps in achieving goals of software products for an organization. Some of its characteristics are Defined , Controllable , Measured , Effective , Institutionalized.
It goals must be defined, and must also be controlled and it performance must be measured at regular intervals and any reforms carried out to achieve goals must be effective. Lastly it should implement all goals in an institutional framework to be followed by every one in the organization.
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
Codio python challenge (max.py)
We will pass in a list of numbers. Your job is to find the largest number in that list and output its index, not the actual value.
Tip: you will need to use a utility variable to store the maximum value and a decision to see if each number is bigger than the current maximum value encounted in previous iterations
import sys
numbers = sys. argv[1]. split(',')
numbers = [int(1) for i in numbers]
#enter code here
Final answer:
To find the index of the largest number in a list passed as a command line argument in Python, the list must first be correctly parsed and converted to integers. Then, by iterating over this list and comparing each number to a tracked maximum value, the highest value's index can be identified and printed.
Explanation:
The question asks for a solution to find the index of the largest number in a list passed to a Python script. The solution involves iterating over each number in the list, comparing each one to a currently tracked maximum value, and updating this maximum along with its index as the iteration proceeds. It is important to correctly parse the input list from the command line and convert each element to an integer for accurate comparisons. The crucial steps include initializing variables for tracking the maximum value and its index, iterating over the list with enumeration for obtaining both the index and value, and updating the tracking variables as larger numbers are encountered.
Here is a corrected snippet of Python code that achieves the described functionality:
import sys
numbers = sys.argv[1].split(',')
numbers = [int(i) for i in numbers]
max_val = numbers[0]
max_index = 0
for index, num in enumerate(numbers):
if num > max_val:
max_val = num
max_index = index
print(max_index)
This script corrects the line numbers = [int(1) for i in numbers] to numbers = [int(i) for i in numbers], ensuring that the input string is correctly converted to a list of integers. Then, it proceeds to find the index of the largest number by iterating over this list.
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
The ArrayList class ____ method removes an item from an ArrayList at a specified location.
a.
erase
b.
remove
c.
delete
d.
get
Answer:
remove
Explanation:
The function used to remove the element in the ArrayList at specific index is remove.
Syntax:
remove(int index)
it used index to remove the element.
ArrayList index start from the index zero. So, if the we enter the index 0 it means remove the element at first position.
for example:
array.remove(1); it remove the element at index 1 from the ArrayList name array.
____________ 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.
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.
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.
Either a function’s _________ or its _________ must precede all calls to the function.
Answer:
Definition, Prototype
Explanation:
A function prototype is the one who declares return type,function name and parameters in it.
Syntax of function prototype
returnType functionName(type1 argu1, type2 argu2,...);
Function definition contains the block of code to perform a specific task.
Syntax of function definition
returnType functionName(type1 argu1, type2 argu2, ...)
{
//body of the function
}
Whenever a function is called, the compiler checks if it's defined or not and control is transferred to function definition.
So,it is necessary to define the return type and parameters of the function.
Answer:
definition , prototype
Explanation: A function's definition and it's prototype must come before a function call otherwise the compiler will throw an error of undefined function whatever is the function name. Defining or giving prototype before the function call.The compiler will get to know that there a function exists with the function name and it will not give an error.
Non linear data structures are always betterthan linear data structures;why
please give me strong ressons withexamples.
Answer:
Linear data structures stores data in a sequential order while Non Linear data structures stores data in a non-sequential order.
Non Linear data structures are better than non - linear data structures in terms of memory utilization and they are multilevel or hierarchical approach.
The memory utilization in non linear data structures is always better than linear data structures. Since linear data structures tends to waste memory.
Linear data structures uses single level while non linear data structures uses multilevel to store the data.
linear data structures examples:- arrays,linked lists,stack,queue.
Non-Linear data structures ex:- tree,graphs,heaps.
Final answer:
Non-linear data structures and linear data structures each have their own advantages and use cases, so it is incorrect to say that one is always better than the other.
Explanation:
Non-linear data structures and linear data structures each have their own advantages and use cases, so it is incorrect to say that one is always better than the other.
Linear data structures like arrays and linked lists are simple and efficient for accessing and processing data sequentially. They are suitable for scenarios where data needs to be stored and retrieved in a specific order.
On the other hand, non-linear data structures like trees and graphs are useful when relationships and connections among data are more complex. For example, trees can be used to represent hierarchical structures such as file systems or organization charts, while graphs can be used to model networks and relationships between objects.
The ____ is responsible for assigning maintenance tasks to individuals or to a maintenance team.
Answer
user
programmer
systems review committee
system administrator
Answer:
System Administrator
Explanation:
The System Administrator is responsible for assigning maintenance tasks to individuals or to a maintenance team.
The System Administrator’s role is to manage computer software systems, servers, storage devices and network connections to ensure high availability and security of the supported business applications.
This individual also participates in the planning and implementation of policies and procedures to ensure system provisioning and maintenance that is consistent with company goals, industry best practices, and regulatory requirements.
System administrators may be members of an information technology department.
The duties of a system administrator may vary widely from one organization to another. They may sometimes do scripting and light-programming.
Following are some of the duties done by them:
User administration (setup and maintaining account) Maintaining system Verify that peripherals are working properly Quickly arrange repair for hardware in occasion of hardware failure Monitor system performance Create file systems Install software Create a backup and recover policy Monitor network communication Update system as soon as new version of OS and application software comes out Setup security policies for users. Documentation in form of internal wiki Password and identity management___ 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.
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.
Write a class named Add that has the following data members, constructor, and methods:
Data Members:
private int row; // The number of rows for the addition table.
private int column; // The number of columns for the addition table.
Constructor:
// Sets the values of the above data members.
public Add ( )
Methods:
Answer:
A class is like a blueprint of object.
Explanation:
A class defines the kinds of data and the functionality their objects will have.
A class enables you to create your own custom types by grouping together variables of other types, methods and events.
In C#, we can create a class using the class keyword.
Here's a sample program:
using System;
namespace ConsoleApplication
{
public class Test
{
public static void Main()
{
Add a1 = new Add(70, 50);
a1.AddNumbers();
Console.ReadLine();
}
}
class Add
{
private int row;
private int column;
public Add(int r, int c)
{
row = r;
column = c;
}
public void AddNumbers()
{
Console.WriteLine(row+column);
}
}
}
output: 120
Explanation of the program:
I have created a class named Add. Within a class, row and column are two fields and AddNumbers() is a method. We also have constructor to initialize row and column.
In main method, If I need to invoke members of the class, I must create an instance of the class. We can create any number of instances using the single class.IN our program, a1 is the reference variable using which we can invoke members of the class. I invoked function in the class and passed arguments to the constructor while creating an instance.
Those values are assigned to method variables and it operated the addition. Thus the output is 120.
Which statement must be included in a program in order touse a deque container?
a. #include vector
b. #include
c. #include container
d. #include deque
Answer:
d.#include deque
Explanation:
We have to include deque library in order to use a deque container and the syntax to include is #include<deque>.Deque is a double ended queue which is a sequence container and allows operations of contraction and expansion on both ends of the queue.Double ended queues are a special case of simple queue since in simple queue the insertion is from rear end and deletion is from front end but in deque insertion and deletion is possible at both ends rear and front.
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.
. 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.
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++.