1. If s="XYUFGHK". What is the results of run, cout<
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
![Q3. (A) Answer Five questions only of the following.
1. If s="XYUFGHK". What is the results of run, cout<<s[3);
(C) U
2. If two arrays are declared x [23] and z [100]. What is the code to add the 16th
(A) F
(B) XY
(D) 3
element in X with 35th element in z.?
(A) x [16] +z [35]; (B) x[23]+ z[100]; (C) x[15]+z[35]; (D) x[15]+z[34];
3. What is the code to implement a OR gate with two inputs?
(A) for (i=0; i<4; ++)
(z[)=x[i]|lyl):}
(B) for(i=0; į<4;i++)
(2[)=x[] | yl):}
(C) for(i=0; i<4;i++)
(z[)=x[] OR yli);}
(D) for(i=0; i<=4;i++)
(z[j)=x[]&y[]);}
4. If x is declared as integer variable x= 313. How long would be the length of x in
memory?
(C) 6 bytes
(A) 2 bytes
5. If the function below is implemented. What is the type of return value?
int(float x)
(B) 4 bytes
(D) 8 bytes
{x=x+1; return x;}
(A) float
(B) integer
(C) Boolean
(D) no-return value
6. K and T are string variables, K ="1234" and T="1235", what is the result of Itk?
(A) 2479
(B) 12351234
(C)12341235
(D) 2468
Q3. (B) Write a program to add the 1st quarter with 4th quarter of the same matrix
called Gx[12][12] and stored the addition result in a matrix called Ax[6][6]
(15M)](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F4048851e-53ac-4e10-ad55-b268ec6a898b%2F9a9236de-9462-4e4c-9afa-836499cd5545%2Fdud60hv_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Q3. (A) Answer Five questions only of the following.
1. If s="XYUFGHK". What is the results of run, cout<<s[3);
(C) U
2. If two arrays are declared x [23] and z [100]. What is the code to add the 16th
(A) F
(B) XY
(D) 3
element in X with 35th element in z.?
(A) x [16] +z [35]; (B) x[23]+ z[100]; (C) x[15]+z[35]; (D) x[15]+z[34];
3. What is the code to implement a OR gate with two inputs?
(A) for (i=0; i<4; ++)
(z[)=x[i]|lyl):}
(B) for(i=0; į<4;i++)
(2[)=x[] | yl):}
(C) for(i=0; i<4;i++)
(z[)=x[] OR yli);}
(D) for(i=0; i<=4;i++)
(z[j)=x[]&y[]);}
4. If x is declared as integer variable x= 313. How long would be the length of x in
memory?
(C) 6 bytes
(A) 2 bytes
5. If the function below is implemented. What is the type of return value?
int(float x)
(B) 4 bytes
(D) 8 bytes
{x=x+1; return x;}
(A) float
(B) integer
(C) Boolean
(D) no-return value
6. K and T are string variables, K ="1234" and T="1235", what is the result of Itk?
(A) 2479
(B) 12351234
(C)12341235
(D) 2468
Q3. (B) Write a program to add the 1st quarter with 4th quarter of the same matrix
called Gx[12][12] and stored the addition result in a matrix called Ax[6][6]
(15M)
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY