Answer:
// here is code in java.
import java.util.*;
// class definition
class Solution
{
// main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// scanner object
Scanner s=new Scanner(System.in);
// variables
String s_name;
int s_num;
System.out.print("Please enter the name:");
// read the student name
s_name=s.nextLine();
System.out.print("Please enter the number:");
// read the student number
s_num=s.nextInt();
// print name and number 12 times
for(int i=0;i<12;i++)
{
System.out.println(s_name+"----"+s_num);
}
}catch(Exception ex){
return;}
}
}
Explanation:
Create a scanner class object to read input from user.Read the student name and the number from user and assign them to variable "s_name" and "s_num".Print the student name and number 12 times with the help of for loop.
Output:
Please enter the name:Mary Kaur
Please enter the number:123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
which of the following is NOT part of the Ethernet standards? O 1.802.3 O 2.802.2 O 3 LLC O4 pPp
Answer: 2) 802.2
Explanation: Ethernet standard are the standard for the networking technology for the transmission of the data.The ethernet is requires for the node connection and then forming the framework for the transmission of information.There are several standards for Ethernet.
802.3 is Ethernet standard that works on 10 Mbps rate, PPP(point to point protocol) is the standard that connects the internet service provider using modem and LLC(logical link control) is a standard for 802 .There is no 802.2 standard present in the ethernet standard.Thus,the correct option is option(2).
As of MySQL 5.5, which of the following is the default table storage engine?
(a) Blackhole
(b) SuperNova
(c) Memory
(d) MyISAM
(e) InnoDB
Answer:(d) MyISAM
e) InnoDB
Explanation: MyISAM is type of default engine storage in table form in MySQL 5.5.It is discontinued and no longer available service.It had the feature of creating a backup, able to create replicas,data dictionary automatic updates etc in table.
InnoDB took over on the place of MyISAM in MySQL 5.5 as the default engine storage when MyISAM was discarded. It has the capability to support foreign keys, tablespaces, operation of spatial nature etc.
Other options are incorrect because black-hole is mechanism of data packet destruction without the acknowledgement of sender, supernova is type of computer unit and memory is the operating unit part where the data storage takes place.Thus the correct options are (d) and (e).
Which of the following clauses of the UPDATE command is optional? (Points : 2) UPDATE
SET
WHERE
FROM
Answer:
FROM.
Explanation:
UPDATE table
SET column=value,column1=value1,.....
WHERE condition;
In the UPDATE command given in the question FROM is optional because when using UPDATE we already mention the table name with update look at the syntax above.So there is no need to again mention the table name in FROM.All other three are required that is UPDATE,SET,WHERE.
Using Word, write pseudocode to represent the logic of a program that allows the user to enter a value for hours worked in a day. The program calculates the hours worked in a five-day week and the hours worked in a 252-day work year. The program outputs all the results.
Answer:
//Here is PSEUDO CODE.
1. Declare variable "hour_day".
1.1 read the hour worked in a day and assign it to variable "hour_day".
2. Calculate the hours worked in a five day week.
2.1 work_week=5*hour_day.
3. Calculate the hours worked in 252 days year.
3.1 work_year=252*hour_day
4. print the value of work_week and work_year.
5. End the program.
//Here is code in c++.
#include <bits/stdc++.h>
using namespace std;
int main() {
double hour;
cout<<"enter the hours worked in a day:";
cin>>hour;
double work_week=5*hour;
double work_year=252*hour;
cout<<"work in a 5-day week: "<<work_week<<"hours"<<endl;
cout<<"work in a 252-day year: "<<work_year<<"hours"<<endl;
return 0;
}
Output:
enter the hours worked in a day:6.5
work in a 5-day week: 32.5 hours
work in a 252-day year: 1638 hours
Compute the bitwise XOR between 10010100 and 11101010.
Answer:
The resultants bits for two strings are 0111 1110
Explanation:
Given details:
two pair of strings are
10010100
11101010
comparing two pair of strings, then perform XOR operation
Rules to follow for XOR
If both the bits are same then resultant is zero 0 and if bits are different resultant is one
XOR operation:
10010100
11 1 01010
-------------
01111110
The resultants bits for two strings are 0111 1110
MySQL 8 is the first version that supports JSON Objects.
(a) True
(b) False
Answer: False
Explanation:
The given statement is false because MySQL 8 basically support the JSON object since versions 5,7 and 8. The MySQL basically support the native Java script object notation (JSON) data types that is basically define by the RFC 7159 and it can efficiently access the data from the JSON documents.
It provide many advantages like the JSON are easily detect the error in the documents and can validate automatically. It also contain optimize storage format.
Write an efficient C++ function that takes any integer value i and returns 2^i ,as a long value. Your function should not multiply 2 by itself i times; there are much faster ways of computing 2^i.
Answer:
long power(int i)
{
return pow(2,i);
}
Explanation:
The above written function is in C++.It does not uses loop.It's return type is long.It uses the function pow that is present in the math library of the c++.It takes two arguments return the result as first argument raised to the power of second.
for ex:-
pow(3,2);
It means 3^2 and it will return 9.
Write a program that asks you to enter some integers, and press "enter" after each one.
There will be no set number of integers, and no need for data checking.
Entering the integer 0 will end the process of entering the integers
Answer:
// here is code in c++.
// headers
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
int num;
cout<<"enter an integer (0 to stop):";
// read the integer
cin>>num;
// read integer until user enter 0
while(num)
{
cout<<"enter an integer (0 to stop):";
cin>>num;
}
//if input is 0 then print "exit"
cout<<"exit"<<endl;
return 0;
}
Explanation:
Declare a variable "num" to read input from user.Read input integer until
user enter 0 as input.When user enter 0 then program will print "exit" and
end the program.
Output:
enter an integer (0 to stop):2
enter an integer (0 to stop):-2
enter an integer (0 to stop):4
enter an integer (0 to stop):10
enter an integer (0 to stop):123
enter an integer (0 to stop): 0
exit
What is meant by the term drill down?
Answer:
The drill down term is basically used in the information technology for the explore the multidimensional information or data by navigating the different layers of the data from the web page applications.
Drill down basically involve in the database by accessing the specific information through the database queries. Each query basically increase the data granularity. This term is also involve with the link for represent the details more specifically.
The drill down is the simple approach or technique for dividing the complex problems into small parts so that it make the technique more efficient.
Convert decimal number 126.375 to binary (3 bits after binary point)
Answer:
126.375 in binary is: 1111110.011
Explanation:
In order to convert a decimal number to binary number system, the integral part is converted using the division and remainder method while the fractional part is multiplied with 2 and the integral part of answer is noted down. The fractional part is again multiplied with 2 and so on.
For 126.375
2 126
2 63 - 0
2 31 - 1
2 15 - 1
2 7 - 1
2 3 - 1
1 - 1
So, 126 = 1111110
For 0.375
0.375 * 2 = 0.75
0.75 * 2 = 1.5
0.5 * 2 = 1.0
As we had to only find 3 digits after binary point, so
0.375 = 011
So 126.375 in binary is: 1111110.011 ..
Explain the RISC and CISC architecture. Comparison of RISC and CISC in detail.
Answer:RISC(reduced instruction set computer) is the computer used for low level operation by simple command splited into numerous instructions in single clock only and CISC(Complex instruction set computer) is the computer that performs the operation in single instruction.
RISC architecture has hardwired control unit,data cache unit,data path ,instruction cache and main memory as components .CISC architecture persist of control unit,micro program control memory, cache, instruction and data path and main memory.
The differences between RISC and CISC are as follows:-
The instruction in RISC are less and and low complexes while CISC has several number of complex instruction.The calculation done by RISC are precise and quick whereas CISC has slightly slow calculation processing. The execution of RISC is faster as compared to CISC.RISC uses hardware component for implementation of instruction because it does not persist its own memory and CISC implements instructions using its own memory unit .RISC (Reduced Instruction Set Computing) architectures use simpler instructions for enhanced speed and efficiency, while CISC (Complex Instruction Set Computing) architectures use complex instructions to reduce program instruction counts. The comparison highlights differences in execution speed, pipeline efficiency, memory usage, and design philosophy. Each architecture offers unique benefits depending on application requirements.
RISC (Reduced Instruction Set Computing)
RISC architectures are designed to execute a small and highly optimized set of instructions. This simplicity enables faster instruction execution because each instruction is executed in a single clock cycle. Key features of RISC include:
Fewer, simpler instructions.Uniform instruction size, usually 32-bit.Large number of general-purpose registers.Load/store architecture, where data operations are performed in registers and not directly in memory.Emphasis on hardware simplification and pipeline efficiency.An example of a RISC architecture is the MIPS (Microprocessor without Interlocked Pipelined Stages) architecture, which uses 32-bit instructions and multiple instruction formats, adheres to the principles of simplicity and efficiency.
CISC (Complex Instruction Set Computing)
CISC architectures, on the other hand, aim to reduce the number of instructions per program by using complex and multifunctional instructions. These instructions can execute multiple operations or address modes within a single instruction. Key features of CISC include:
A large set of instructions, sometimes numbering in the hundreds.Variable instruction length, allowing for more complex operations.Fewer general-purpose registers.Direct memory access for data manipulation.Emphasis on instruction count reduction and powerful, versatile instruction sets.An example of a CISC architecture is the Intel x86 family, widely used in desktop and server processors.
Comparison of RISC and CISC
To compare both architectures:
Simplicity vs Complexity: RISC uses simpler instructions and fewer of them, while CISC uses more complex and multi-operation instructions.Execution Speed: RISC aims for single-cycle execution per instruction, whereas CISC instructions can take multiple cycles but accomplish more per instruction.Pipeline Efficiency: RISC's simplicity enhances pipeline efficiency and minimizes bottlenecks, while CISC's complexity can lead to pipeline stalls and increased latency.Memory Usage: RISC relies heavily on register usage and minimizes memory access, whereas CISC might have more direct memory operations.Instruction Sets: RISC has fewer, more general registers, while CISC has specialized, powerful instructions catering to a wider range of tasks.Design Philosophy: RISC focuses on hardware efficiency and speed, following the principle that 'Smaller is faster'. In contrast, CISC targets ease of programming and reduced software complexity.Locker doors There are n lockers in a hallway, numbered sequentially from 1 to n. Initially, all the locker doors are closed. You make n passes by the lockers, each time starting with locker #1. On the ith pass, i = 1, 2,...,n, you toggle the door of every ith locker: if the door is closed, you open it; if it is open, you close it. After the last pass, which locker doors are open and which are closed? How many of them are open?
Answer:
// here is code in C++
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
int n,no_open=0;
cout<<"enter the number of lockers:";
// read the number of lockers
cin>>n;
// initialize all lockers with 0, 0 for locked and 1 for open
int lock[n]={};
// toggle the locks
// in each pass toggle every ith lock
// if open close it and vice versa
for(int i=1;i<=n;i++)
{
for(int a=0;a<n;a++)
{
if((a+1)%i==0)
{
if(lock[a]==0)
lock[a]=1;
else if(lock[a]==1)
lock[a]=0;
}
}
}
cout<<"After last pass status of all locks:"<<endl;
// print the status of all locks
for(int x=0;x<n;x++)
{
if(lock[x]==0)
{
cout<<"lock "<<x+1<<" is close."<<endl;
}
else if(lock[x]==1)
{
cout<<"lock "<<x+1<<" is open."<<endl;
// count the open locks
no_open++;
}
}
// print the open locks
cout<<"total open locks are :"<<no_open<<endl;
return 0;
}
Explanation:
First read the number of lockers from user.Create an array of size n, and make all the locks closed.Then run a for loop to toggle locks.In pass i, toggle every ith lock.If lock is open then close it and vice versa.After the last pass print the status of each lock and print count of open locks.
Output:
enter the number of lockers:9
After last pass status of all locks:
lock 1 is open.
lock 2 is close.
lock 3 is close.
lock 4 is open.
lock 5 is close.
lock 6 is close.
lock 7 is close.
lock 8 is close.
lock 9 is open.
total open locks are :3
Create a C++ program that declares, initializes, and outputs the values contained in a two-dimensional array
Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
int r_size,c_size;
cout<<"enter the number of row:";
// read the value of row
cin>>r_size;
cout<<"enter the number of column:";
// read the value of column
cin>>c_size;
// create a 2-d array
int arr[r_size][c_size];
// read the value of array
cout<<"enter the elements of array:"<<endl;
for(int x=0;x<r_size;x++)
{
for(int y=0;y<c_size;y++)
{
cin>>arr[x][y];
}
}
cout<<"elements of the array are:"<<endl;
// print the array
for(int a=0;a<r_size;a++)
{
for(int b=0;b<c_size;b++)
{
cout<<arr[a][b]<<" ";
}
cout<<endl;
}
return 0;
}
Explanation:
Here we have demonstrate a 2- dimensional array. In which, how to read the elements and how to print elements of array.Read the value of row and column from user.Create a 2-d array of size r_sizexc_size. then read the elements of array either row wise or column wise. Then print the elements.To print the elements, we can go either row wise or column.
Output:
enter the number of row:2
enter the number of column:3
enter the elements of array:
1 2 3
2 3 4
elements of the array are:
1 2 3
2 3 4
Describe the process of normalization and why it is needed.
Answer: Normalization is known as the process under which one organizes a database in order to improve data integrity and reduce redundancy. It also tends to streamlines database design in order to achieve optimal structure made up of the basic elements.
It is also referred to as data normalization, it is considered as a vital part of database design, since it helps with accuracy, speed and efficiency of database. By doing so, one can arrange data into columns and tables.
True or False: It is the CISO❝s responsibility to ensure that InfoSec functions are performed within an organization. A) True B) False
Answer: True
Explanation: CISO(Chief information security officer) is the officer that is responsible for the information security(Infosec) function to be implemented in the organization.He/she manages the procedures, protect from the threats in business, secures the enterprise communication.
The post of CISO is considered as a senior level officer .The responsibilities of the CISO also includes getting along with other section of the organization and assuring about the smooth and secured processing of the business work as the aspect of information security.Thus the statement given is true
______A computer program may only be constructed in a high level language. (T/F)
Answer:
False.
Explanation:
A computer program can not only constructed in a high level language but also in low level language such as assembly language used for microprocessor for ex-8085 microprocessor,8086 microprocessor ,ARM assembly language and there are many more.
High level languages are programmer friendly they are easily understood by the programmers because they uses english words while low level languages are difficult because they uses binary language 0's or 1's.
Hence the answer to this question is False.
Which of the following is false? (Points : 4)
All elements of the array have the same data type.
All elements in an array have the same name.
All elements in an array have the same subscript.
The first element of the array has a subscript of zero.
Answer:
All elements in an array have the same subscript.
Explanation:
The statement written above is false because every element in an array has different subscript or index.The index starts with 0 and ends at size -1 .You can access the array element if you write the subscript in the square brackets after the name of the array.
a[5];
You can access 6th element in the array by this statement.
. What is automated testing?
Answer: Automated testing is testing of the software by the means of automation by using special tools .These software tools are responsible for the testing of the execution process , functioning and comparing the achieved result with actual result.
It is helps in achieving the accuracy as compared with manual testing and also also function without any human interruption.It produces the test scripts that can be re-used.
How does the MAN (Metropolitan Area Network) fit into the networking model between a LAN (Local Area Network) and a WAN (Wide Area Network)?
Answer: Local area network(LAN) is the network works in the small area to create networking pattern such as an individual building. Wide area network(WAN) is the networking technology that covers a large geographical area to connect them such as any particular company.
MAN (metropolitan area network) is the area that falls in between the category of LAN and WAN.It is the networking pattern that can work in the geographical areas like towns,cities etc.WAN technology consist of both LAN and MAN networks to make a huge unit of network.Thus, MAN is the middle networking technology as it covers more area than LAN and Less area than WAN.
Write an if/else statement that assigns 0 to x when y is equal to 10; otherwise it should assign
1 to x.
Answer:
if(y==10)
{
x=0; // assigning 0 to x if y equals 10.
}
else
{
x=1; // assigning 1 to x otherwise.
}
Explanation:
In the if statement i have used equal operator == which returns true if value to it's right is equal to value to it's left otherwise false.By using this operator checking value of y and if it is 10 assigning 0 to x and if it is false assigning 1 to x.
Write a C++ program where Two or more strings are anagrams if they contain exactly the same letters, ignoring capitalization, punctuation, and spaces. For example, "Information superhighway" and "New utopia? Horrifying sham" are anagrams, as are "ab123ab" and "%%b b*aa". Note that two lines that contain no letters are anagrams.
Answer:
/*
Problem; to finf s2 strings are anagrams.
(s2 strings are anagrams if they contain exactly the same letters, ignoring capitalization, punctuation,)
and spaces.
Solution: we must take account wich letters are present in each string and how many times. To achieve that we
may create a struct with a char and a char count, some constructors, both geters and an equal operator.
*/
#include <iostream>
#include <vector>
using namespace std;
struct charCount {
private: // Internal data structure:
char letter; // letter (should be unique)
unsigned int letterCount; // and is present at least 1 time
public:
charCount() {} // Default Constructor
charCount(char l) {letter = l; letterCount = 1;} // Constructor
charCount(const charCount & other) {letter = other.letter;
letterCount = other.letterCount;} // Copy Constructor
void increments() {letterCount++;} // Counts other occurrence
char ltr() {return(letter);} // Geter
unsigned int ltrCount() {return(letterCount);} // Geter
bool operator ==(charCount other) {return(letter == other.letter // Equal means same char and
&& letterCount == other.letterCount);}// same count.
};
/*
We have to analyze each input string returning an ordered vector of charCount elements:
*/
vector<charCount> analysis(string s) { // Raw string data
vector<charCount> result; // Result vector
for(char c:s) { // For each char of string: we take a-z
if(isalpha(c)) { // only into account and we normalize it
char x = tolower(c); // to lowercase, store as x and we are
bool found = false; // ready to search
unsigned int pos = 0; // from first position to last
for(auto & y:result) { // for each vector's element
if(y.ltr() == x) { // if we find x, we must
y.increments(); // count this occurrence,
found = true; // turn on the found flag
break; // and exit from the loop.
} else if(y.ltr() < x) { // Otherwise may be we are not going to
result.emplace(result.begin()+(pos),(charCount(x))); // find it in the ordered vector: we insert
found = true; // it at current vector's position. It is
break; // present now: we should exit from loop.
} else pos++; // Otherwise we increment pos and go on.
}
if(!found) { // x doesn't belongs to vector's set: we
auto it = result.end(); // add it at last position, keeping order
result.insert(it,(charCount(x))); // and we may go on for another cycle if any.
}
}
}
return result;
}
template <typename T> // Generic code follows to implement
bool operator ==(vector<T> v1,vector<T> v2) { // 2 vectors comparison: they are
bool result = (v1.size() == v2.size()); // equals if their sizes match,
if(result) // and each element from first vector
for(unsigned int i = 0; i < v1.size();i++) // matches with each element from the
result = result && v1[i] == v2[i]; // second vector at the same position.
return(result);
}
template bool operator ==(vector<charCount>,vector<charCount>); // Orders compiler to generate a charCount version.
bool areAnagrams(string s1,string s2) { // Anagrams implies 2 identical analysis vectors.
return(analysis(s1) == analysis(s2));}
int main(int argc, char *argv[]) { // Test code folloes:
string s1,s2; // 2 strings to store input data.
cout << "Text 1:"; getline(cin,s1); // Reads string 1 till <Enter> key.
cout << "Text 2:"; getline(cin,s2); // Reads string 2 till <Enter> key.
cout << (areAnagrams(s1,s2)?"Are":"Are not") << " anagrams..." << endl; // Are they? We use the ternary operator.
return 0;
}
Explanation: included inside the code as comments.
Answer:
#include <iostream>
using namespace std;
void areAnagrams(char str1[], char str2[])
{
int i, flag = 1, count1[26] = {0}, count2[26] = {0};
for(i = 0; str1[i] != '\0'; i++) {
if (isalpha(str1[i])) {
str1[i] = tolower(str1[i]);
count1[str1[i] - 'a']++;
}
}
for(i = 0; str2[i] != '\0'; i++) {
if (isalpha(str2[i])) {
str2[i] = tolower(str2[i]);
count2[str2[i] - 'a']++;
}
}
for(i = 0; i < 26; i++) {
if (count1[i] != count2[i])
flag = 0;
}
if (flag == 0)
cout << "The two strings are NOT anagrams";
else
cout << "The two strings are anagrams";
}
int main ()
{
char str1[100], str2[100];
cout << "Enter the first string: ";
gets(str1);
cout << "Enter the second string: ";
gets(str2);
areAnagrams(str1, str2);
return 0;
}
Explanation:
Inside the function:
- In the first loop, each character of the first string is checked if it is a letter. If it is, lower the character and increment its frequency by 1.
- In the second loop, each character of the second string is checked if it is a letter. If it is, lower the character and increment its frequency by 1.
- In the third for loop, compare the frequencies
- If they are equal, that means the strings are anagrams
What are some of the benefits of a single language for all programming domains? Give me 3 or 4 benefits (pros not the cons)
Answer:
All the individual programming language have their individual important which is specific according to the their own style of leaning the programming language and simplicity to learn. The syntax should be in proper format and follow legacy.
Some of the benefit of the single programming language for all the domain are as follows:
By using the single language, it basically reduce the complexity of the program. The compiler maintenance cost would be reduced and easy to maintain. It increases the efficiency of the code and also the compilation efficiency in the system.Which command compiles the Java source code file Welcome.java?
cd Welcome.java
javac Welcome.java
java Welcome.java
compile Welcome.java
Answer:
javac Welcome.java
Explanation:
In order to the file to compile with the default compiler in the JDK, the instruction must be of the form:
javac filename
(Note: the filename with the .java extension)
We all know everything there is to know about the Fibonacci sequence, right?
Answer:
Yes.
Explanation:
Fibonacci Sequence is the series of numbers which are the sum of previous two number in the series.Two numbers are predefined in the Fibonacci sequence.The first number in the series is always 0 and the second number in the series is always 1.
We need atleast two numbers to start fibonacci sequence so that the series can be generated.
What is a split form?
Answer:
The split form is the type of feature which are introduced by the Microsoft access in 2007. This feature basically give two view of the data at the similar time that is:
Datasheet view Form viewThese two views are basically connected with the same source of the data and they are basically synchronize with the each other. From the datasheet view we can easily select the field in the record. We can also modify the data by using the functions such as add,delete and edit.
What is the purpose of a destructor? (g) What is the purpose of an accessor?
Answer:
Destructor:-To free the resources when lifetime of an object ends.
Accessor:-To access private properties of the class.
Explanation:
The purpose of a destructor is to free the resources of the object that it has acquired during it's lifetime. A destructor is called once in the lifetime of the object that is also when the ifetime of the object ends.
The purpose of the accessors is to access private properties of the class.Accessor cannot change the value of the private members.They are also called getters.
The sum of the binary numbers 0111+1001= 10000 which is equivalent to ________ in HEX numeration system.
A
10
F
D
Answer:
10
Explanation:
Adding two binary numbers 0111 and 1001 results in the sum as 10000.
The equivalent hex representation for the number is obtained by splitting the result into two quads and finding their individual hex representations.
00010000
Quad 1 : 0001 = 1 (HEX)
Quad 2 : 0000 = 0 (HEX)
So the equivalent result is obtained by concatenating the two digits one after the other : 10 (in Hex)
The database must be carefully planned to allow useful data manipulation and report generation.
True
False
Answer:
True.
Explanation:
When creating a database it should be carefully planned so that we can easily do data manipulation and report generation if not designed carefully these processes will become difficult.
Some mistakes in the creation of database.
No Normalization.Not treating the data model as a breathing or living organism.Not choosing primary keys carefully.No or little use of foreign Keys and check constrains.Data mining and __________ tools are used to find relationships that are not obvious, or to predict what is going to happen.
a. DSS
b. reporting
c. predictive analytic
d. queries
Answer:c)Predictive analytic
Explanation: Predictive analytics is the tool that is used for the prediction about the future situations.It is the advanced branch of the analytics where the present information considered for prediction The techniques followed by the predictive analytics are data mining, modelling etc.
Other option are incorrect because DSS(decision support system) is the system that helps in making decision in business field, reporting shows the low efficiency or performance and queries are the question or objection that arises regarding a concept.Thus the correct option is option(c).
As data traverses a network, what address changes with each connection?
A: network B: transport C: physical D: MAC address
Answer: (D) MAC address
Explanation:
MAC address is the media access control address that basically used as identification number in the hardware. It is uniquely identified in the network for the every devices.
Whenever the packet moves from source to the destination the MAC address changes and updated with new destination and source MAC address. But it does not change its IP address during this process.
Therefore, MAC address basically change with the connection when there is data transverse in the network.