Answer:
In the computer graphics, the vectors are basically used to compose various type of components. In the computer graphics it is basically known as vector graphics and it is composed of various types of components.
The operation of the vector in the computer vector is that it is basically used to create the digital images by the use of mathematical statement and command.
It is used to place the lines and the shape in the two- dimension and three- dimension spaces. IN the computer graphics, vectors are also used to represent the particular direction of the various objects.
Write a Scheme function called "sum" which takes an input function func and a nonnegative number n and outputs the value
func(1) + func(2) + .. + func(n)
Answer:
function sum(number) {
if (number == 1) {
return 1;
}
return number + sum(number -1);
}
Explanation:
This is a recursive function, it means that is a function that calls itself for example: if you call the function with sum(5) the process is :
sum(5)
|______ 5 + sum(4)
|_______ 4 + sum(3)
|______ 3 + sum(2)
|_____2 + sum(1)
|_____ 1
the result is 1+2+3+4+5 = 15
Write a C# Console application that converts a mile into its equivalent metric kilometer measurement. The program asks the user to input the value of miles to be converted and displays the original miles and the converted value . Test your code with inputs (1) 10 miles, (2) 3.25 miles.
Answer:
Following are the program in c#
using System; // namespace system
using System.Collections.Generic; // namespace collection
using System.Linq;
using System.Text;
namespace test // namespace
{
class Program1 // class
{
static void Main(string[] args) // Main function
{
double nMiles, nKm;
Console.Write("Enter Value In Miles : ");
nMiles =Convert.ToDouble(Console.ReadLine());
nKm = (nMiles / 0.62137);
Console.WriteLine("Output:");
Console.WriteLine("Value In Miles :" + nMiles);
Console.WriteLine("Value In KM :" + nKm);
Console.Read();
}
}
}
Output:
Case A-
Enter Value In Miles : 10
Value In Miles : 10
Value In KM : 16.09347
Case B-
Enter Values In Miles : 3.25
Value In Miles : 3.25
Value In KM : 5.230378
Explanation:
Here we take a input value in "nMiles" variable and converted into a Km. that will stored in "nkm" variable . To convert miles into km we use calculative formula Km=(miles/0.62137). This formula convert the entered value into km and finally print the value of miles and km miles variable.
.What are signals, how can they be used?
Answer:
The signal is the function which that carry information about the particular phenomenon in the signal processing. A signal is also define as the change in the quantity which is observable.
In terms of telecommunication, a signal is the varying current, voltage and the electromagnetic wave which basically carries data or information. Signal can be in the form of audio, image and radar related.
A signal can be used be various signal processing system and telecommunication fr the transmission of information from one device to another device.
An extract report lists ____________.
(Points : 2) records that satisfy selection criteria
summary information only
every record read and processed
only records that are sorted
Answer: Summary information only
Explanation:
The extract report is basically design to create the various output files and contain only summary information. In the extract report we can listed and modify the data sets according top the specific requirements.
The extract report is basically used to describe the summary and specif pattern of the information or data.
The extract report is basically generated when the overall extract job is executed and submitted.
Some worms are specifically written to take advantage of newly discovered ____ in operating systems and e-mail programs before the security patch to correct that vulnerability is available.
scripts
applets
file indexes
security holes
Answer: Security holes
Explanation: Security holes are the patches in the form of vulnerabilities that occur in the antivirus software and other such software that can lead to the hacking or attacking of the system. Security holes are filled in with update as quick repair solution. During this repairing, worms as a malicious element attacks the system.
Other options are incorrect because scripts is type of language ,applets are small applications and the files index is the index holding the data of files.Thus the correct option is security holes.
Program 1: I’m buyin’ a Ferrari! If you’ve ever travelled to another country, you know that working with different currencies takes a while to get used to. As of the date of making this assignment, there are 9,240.00 Guinean Francs to $1 USD. For this program, design (pseudocode) and implement (source code) a program that prompts the user for the amount of U.S. currency they have, and converts it into Ginean Francs.
Answer:
// here is code in c++.
#include <bits/stdc++.h>
using namespace std;
int main()
{
// initialize one Guinean_Francs
double Guinean_Francs=9240.00;
int u_s_d;
double tot_Guinean_Francs;
cout<<"enter the amount in U.S dollar:";
// read the dollar
cin>>u_s_d;
// conver it into Guinean_Francs
tot_Guinean_Francs=u_s_d*Guinean_Francs;
print the output
cout<<"total Guinean Francs is :"<<tot_Guinean_Francs<<endl;
return 0;
}
Explanation:
Declare and initialize a variable "Guinean_Francs" with 9240.00.Then read the U S dollar from user and assign it to variable "u_s_d".Then multiply u_s_d with Guinean_Francs and assign it to tot_Guinean_Francs. This will be the total Guinean Francs.
Output:
enter the amount in U.S dollar:25
total Guinean Francs is :231000
Write a procedural programming loop.. Your loop should start variable n with a value of 10 and count down to zero. The loop should terminate when n reaches the value of zero.
Answer:
//Here is the for loop in C.
for(n=10;n>0;n--)
{
printf("count =%d \n",n);
}
Explanation:
Since C is a procedural programming language.Here if a loop that starts with n=10; It will run till n becomes 0. When n reaches to 0 then loop terminates otherwise it print the count of n.
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{ // variables
int n;
// for loop that runs 10 times
// when n==0 then loop terminates
for(n=10;n>0;n--)
{
cout<<"count ="<<n<<endl;
}
return 0;
}
Output:
count =10
count =9
count =8
count =7
count =6
count =5
count =4
count =3
count =2
count =1
Layer 3 of the Transmission Control Protocol/Internet Protocol (TCP/IP) is called the Internet Layer. Describe the functions of this layer.
Answer: Internet layer in TCP/IP stack is used for the transmitting and exchanging of information or message between the source and destination in computer systems.The main functions performed by this layer are as follows:-
It transfers the message to the network interface layer The correct information route and destination is establishedPrefers intelligent routing technique by choosing the shortest route among all paths If any error case of transmission arises then another alternate path for datagram transmission is used.
What are the two possible stereotypes allowed for package: (Points : 6) framework and private
modelLibrary and protected
framework and modelLibrary
framework and protected
Answer: framework and modelLibrary
Explanation: Stereotypes helps in the providing the control action to the class that is providing support to the other class in the UML(Unified modeling language) model. For the package as the model element the stereotypes allowed are framework and modelLibrary.
framework stereotype applied on the package for providing due to reusable components it persist. modelLibrary is the stereotype for the package that has reusable model elements.
Other options are incorrect because "private" and "protected" are not the stereotypes for the model element package.Thus the correct option is framework and modelLibrary.
Summarize who you believe cyber criminals are, and why?
Answer:
The cyber criminals are the people that are engaged with getting the data in an unapproved way and furthermore mischief to the association henceforth are considered as cyber criminals.
Cyber criminals are people or groups of individuals who use innovation to committed the malicious exercises on computerized frameworks or systems with the aim of taking the organization data or individual information and producing benefit.
There are many types of cyber criminals that are:
Internet stalkersCyber terrorist Identity thieves
If the variable letter has been defined as a char variable, which of the following are not valid assignment statements to assign letter w to the variable?
A) letter = w;
B) letter = 'w';
C) letter = "w";
Answer:
The correct answer for the given question is option(A) and option(C) .
Explanation:
To declared any variable of character we using following syntax
char variable=' value';
char letter='w';
In option(A) their is no single quotes between character w .So this is not a valid assignment.
In option(C) their is double quotes between character w,no single quotes between character w .So this is not a valid assignment.
In option(B) their is single quotes between character w .So this is a valid assignment.
So option(A) and option(C) are are not valid assignment statement.
A) Valid if `w` is a `char` variable.
B) Valid (`'w'` is a `char` literal).
C) Invalid (`"w"` is a `String`, not a `char` literal).
In Java, a `char` variable can only be assigned a single character enclosed in single quotes (e.g., `'a'`, `'b'`, `'w'`). Therefore, valid assignment statements must adhere to this rule.
Let's analyze each option:
A) `letter = w;`
- This statement assumes `w` is a variable holding a `char` value. If `w` is not declared as a `char` and does not represent a valid character literal, this assignment will cause a compilation error.
B) `letter = 'w';`
- This is a valid assignment statement. `'w'` is a character literal representing the character 'w'. It matches the type `char`.
C) `letter = "w";`
- This statement uses double quotes, which in Java denote a `String` literal, not a `char` literal. Therefore, this assignment will cause a compilation error because you cannot directly assign a `String` to a `char` variable.
Conclusion:
The assignment statement that is not valid to assign the letter 'w' to a `char` variable in Java is **C) `letter = "w";`**.
Write c++ function that receives input a person’s first name and surname, and then just displays the initials. For example: John Peter Joe, the initials JPJ must be displayed
Answer:
void Initials(string firstName,string lastName)
{
cout<<firstName[0];
for(int i=1;i<firstName.length();i++)
{
if(firstName[i-1]==' ')
{
cout<<firstName[i];
}
}
cout<<lastName[0];
for(int i=1;i<lastName.length();i++)
{
if(lastName[i-1]==' ')
{
cout<<lastName[i];
}
}
cout<<endl;
}
Explanation:
The above written code is the function Initials which prints the full name.Parameters provided in the function are firstname and lastname in the format of string.You should include string header file for this code to run.
Write a program that prints to the screen all the ASCII characters from 33 to 126. 33! 34''
Answer:
#include <iostream>
using namespace std;
int main() {
for(int i=33;i<=126;i++)//Using loop to print ASCII characters.
{
cout<<i<<char(i<<" ";//statement to print integer and it's ASCII characters with values.
}
return 0;
}
Explanation:
Put a closing parenthesis i char(i after doing that code will run .Since the answer was not getting posted hence i have to come to this resort.
I have used for loop for values 33 to 126 and for printing the ascii characters I have used typecasting converting the integer to corresponding char forcefully.
How is a microkernel architecture different from a monolithic architecture?
Answer:
The monolithic kernel is a bigger process that run in a unique memory address. All the kernel services run over the kernel space.
In micro kernel it get split in services in different memory spaces. Each one run in it own space.
Explanation:
Advantages:
1. Monolithic:
Faster processing2. Micro:
crash proofAdd a script element into your HTML page that prints ‘hello’ to the browser’s JavaScript developer console.
Answer:
<!DOCTYPE html>
<html>
<body>
<h2>My Webpage</h2>
<script>
console.log("hello");
</script>
</body>
</html>
Explanation:
The above written is the HTML code which contains a script tag in which javascript code is written to print hello on the javascript developer console.The script element contains the statement console.log("hello"); which is used to print the argument provided in the console.log on the console of the javascript.
To see hello on the console you have open javascript console in the browser.Otherwise it will not be visible to you.
Create a program in java that calculates area and perimeter of a square - use a class and test program to calculate the area and perimeter; assume length of square is 7 ft.
Answer:
Following are the program in Java
class abc // class abc
{
public void area(int s) // function area
{
s=s*s;// calculate area
System.out.println(" The area is:" +s + " ft"); // display the area
}
public void perimeter(int s) //function perimeter
{
s=4*s;//calculate perimeter.
System.out.println(" The perimeter is:" +s + " ft"); //display the perimeter
}
}
public class Main //class main
{
public static void main(String[] args) // main function
{
abc ob=new abc(); // creating instance of class abc
ob.area(7); // calling function area
ob.perimeter(7); // calling function perimeter
}
}
Output:
The area is: 49 ft
The perimeter is:28 ft
Explanation:
In this program we create the class "abc" .We declared two function in the class "abc" i.e "area" and "perimeter" which is calculating the area and perimeter of a square and print them , from the main function we create a object of class "abc" i.e "ob" which called the function area and perimeter .
What is meant by ""responsive design""?
Answer:
Supported by all devices,screen sizes and orientation.
Explanation:
Responsive design mostly used in Web designs.It is the approach in which the design of the web app must respond to behavior of user and the environment also based on the platform,screen size and orientation.
This should be done by using flexible grids,layouts and some smart use of CSS .
You can also use Bootstrap for responsive designs.
A common measure of transmission for digital data is the number of bits transmitted per second. Generally, transmission is accomplished in packets consisting of a start bit, a byte (8 bits) of information, and a stop bit. Using these facts, answer the following:
a. Compute the time required to transmit an image of 1200x800 pixels with 8 bits for gray of each pixel using a 50 M bits/sec. modem?
b.What would the time be at 3 M bits/sec, a representative of download speed of a DSL connection?
(c) Repeat a and b when the image is RGB colored with 8 bits for each primary color. f 20 colored frames per second
Answer: a) 0,19 seg. b) 3,2 seg. c) 11,5 seg. d) 192 seg.
Explanation:
a) For each pixel in the image, we use 8 bits + 1 start bit + 1 stop bit= 10 bits.
Number of Pixels: 800*1200= 960,000.Bits transmitted: 960,000 x 10 = 9.6 * 10⁶ bits = 9.6 Mbitsif the modem is able to transmit up to 50 Mbits in a second, we can calculate how much time it will be needed to transmit 9.6 Mbits, using this equality:50 Mbit = 1 sec9.6 Mbit = x ⇒ t= 9.6 / 50 = 0.19 secb) If the modem speed changes to 3 Mb/s, all we need to do is just use the same equality, as follows:
3 Mbit = 1 sec9.6 Mbit = x ⇒ t= 9.6 / 3 = 3.2 secc) Now, if we need to transmit a colored image , at a rate of 20 f/sec, we need to calculate first how many bits we need to transmit, as follows:
1 Frame= 800*1200* (24 bits + 3 start bits + 3 stop bits)= 28.8 Mbits1 Second= 20 frames/ sec = 28.8 Mbits *20 = 576 Mbits.If the modem speed is 50 Mb/s, we can use the same formula that we used for a) and b), as follows: 50 Mbit = 1 sec576 Mbits = x ⇒ t= 576 / 50 = 11.5 secd) Same as c) replacing 50 Mb/s by 3 Mb/s, as follows:
3 Mbit = 1 sec576 Mbits = x ⇒ t= 576 / 3 = 192 sec
The time that's required to transmit an image of 1200x800 pixels with 8 bits for gray is 151.6 million seconds.
How to calculate the time taken?The time required to transmit an image of 1200x800 pixels with 8 bits for gray will be:
= (1200 × 800 × 8) / 50
= 151.6 million seconds.
The time needed to be at 3 M bits/sec, a representative of download speed of a DSL connection will be:
= 7.68/3
= 2.56 seconds.
Learn more about time on:
https://brainly.com/question/4931057
Create a single line comment that says ""Print results to screen""
Answer:
//""Print results to screen""
Explanation:
In c,c++,java,javascript // is used for the single line comment.
syntax:- // comment.
Whatever text that is followed after // is commented means this line will not get executed by the compiler.
Comments are used to explain the code to other person who is working on the code or trying to understand that code.
Which of the following are not valid assignment statements? A) total = 9;
B) 72 = amount;
C) yourAge = myAge;
Final answer:
Option B (72 = amount;) is not a valid assignment statement because a constant value cannot be assigned to another value, whereas valid statements involve assigning values to variables.
Explanation:
The question is asking which of the given assignment statements in the context of a programming language is not valid. An assignment statement typically involves assigning a value to a variable.
The correct answer among the options provided is:
B) 72 = amount; This is not a valid assignment statement because in most programming languages, the value or expression on the right is assigned to the variable on the left. Since '72' is a constant value and not a variable, it cannot be assigned a value.On the other hand, options A and C are valid assignment statements:
A) total = 9; - This is valid because 'total' is a variable that can be assigned the value of '9'.C) yourAge = myAge; - This is also valid as one variable, 'yourAge', is being assigned the value of another variable, 'myAge'.an index purports to speed data retrieval. you, therefore, index every attribute in each table. select the likely consequence.
a. you optimize data retrieval by using a WHERE statement in your SELECT query.
b. data entry slows as every INSERT , UPDATE, or DELETE statement must also update every index.
c. data retrieval on the Gender column is optimized
d. this technique eliminates the need for a primary key
Answer:
b. data entry slows as every INSERT , UPDATE, or DELETE statement must also update every index.
Explanation:
This process help to improve the speed of get data , it takes each element in the indexed column and save the location to get faster the data. But if you index every attribute in a table it going to take a lot of time locating each column in the respective index in each query(update, delete and insert). For that reason is necesary be carefull with this process and only put index in the relevant columns
Which of the following is a/are question(s) that you should ask before you create an Access report?
What is the purpose of the report?
Who will use the report?
How will the report be distributed?
All the above questions should be asked
Answer: All the above questions should be asked
Explanation: Access report are the reports in access which provides the summarized and formatted information display in database. The information in the database is extracted from tables.The access report requires purpose of the report before preparation and the accessing users information to be known .
It is asked to make sure about that no unauthorized access of the report can take place. Distribution of the report among the other user or client is also a major question to be asked as to keep the record of the accessing of access report..Thus, all the question mentioned in the options are correct.
Index addressing is for traversing arrays.
True
False
Answer:
False.
Explanation:
Index addressing is not for only traversing the arrays but to also access the element,manipulate them.Though indexing is also used in traversing but it is not solely for that.Indexing in an array starts from 0 to size-1.
for example:-
We have an array a of size 10.So to access the element at position 6.We have to write.
a[5];
Manipulating it
a[5]=6;
Subtract the following the Hex numbers:
67h
2Ah
Result is =
Answer:
3D ( in hexadecimal )
Explanation:
Converting the given hexadecimal numbers to decimal:
67 (HEX) = 16*6 + 7 = 103 (Decimal)
2A (HEX) = 2*16 + 10 = 42 (Decimal)
Subtracting the two numbers: 103 - 42 = 61 (Decimal)
Converting the result to Hexadecimal format:
61 = 16* 3 + 13
13 corresponds to D in hexadecimal.
So result in hex is 3D.
To summarize, the subtraction result for the two given hexadecimal numbers is 61 in decimal format or 3D in hexadecimal.
."How is social media influencing web applications and development?"
Answer:
Social media plays a vital role in today's era, it tends to influence the web applications and their development in several ways possible, such as:
Most of the business organizations tend to have a presence on a social media platform and that is considered to be a great way of letting individuals know about your commodities, since most of the people have access to internet. This is considered one of the reasons that most of the websites created have icons of different social media platforms that the organization has presence on. The tendency to use icons in order to project which social platform an organization is on is turning out to be more vital for many websites today.
Final answer:
Social media platforms like are reshaping web development, with a strong influence on the dissemination of information, including political discourse.
Explanation:
Social media is significantly influencing web applications and development, reshaping how they interact with users and how content is delivered. Platforms like Face-book and Twi-tter have become central to disseminating information, including political discourse, news, and general public communication. The extensive reach of these platforms raises critical questions about their influence on political information, elections, and public policy.
Social media's impact on web development is evident in the proliferation of features that promote social sharing and connectivity. Features such as liking, sharing, and comments sections are now standard on various web applications, driven by the desire to increase user engagement and time spent on sites. Beyond these features, the backbone technologies of the internet, like Cloud Computing, are being harnessed to support the massive amounts of data generated and shared via social media.
Which of the following is true of two-factor authentication?
A. It uses the RSA public-key signature based on integers with large prime factors.
B. It requires two measurements of hand geometry.
C. It does not use single sign-on technology.
D. It relies on two independent proofs of identity.
Answer: D)It relies on two independent proofs of identity.
Explanation: Two factor authentication is technique which uses two steps/stage for the verification or authentication.It is done for the extra security maintenance.IT is also known as 2FA. It consist of two different authentication component so that it penetrates through double protection layer .
Other options are incorrect because It RSA public key cannot be used for the authentication of private content. It does not use both hand geometry at same time for both the levels and It does not utilize only single sign-on technology. Thus, the correct option is option(D).
______The statement #include < math.h > defines the name of the current program you are writing as "math". (T/F)
Answer:
False.
Explanation:
The statement #include<math.h> means it is telling the compiler to include the the C language library math.h. It contains different math mathematical functions such as pow,ceil,floor,log,log10 etc.
#include is a preprocessor directive and it is used to paste the code the file that is provided in the #include to the current file.
Answer:
The statement #include<math.h> means it is telling the compiler to include the the C language library math.h. It contains different math mathematical functions such as pow,ceil,floor,log,log10 etc.
#include is a preprocessor directive and it is used to paste the code the file that is provided in the #include to the current file.
Explanation:
there is the link https://study.com/academy/lesson/variability-in-statistics-definition-measures-quiz.html
To copy a list you can use this. list2 = list1[ : ]
True or False
Answer:
True.
Explanation:
The colon in square brackets is used to subsetting the list.
for example list1=[1,2,4,6,2,5]
print(list1[3:5])
This will print 6 ,2
Because it means the list from index 3 to 4 the last value is not inclusive.So if you write [:] it means the whole list and in the question we are assigning it to list2.So all the values from list1 will be copied to list2.
Write code to print the location of any alphabetic character in the 2-character string passCode. Each alphabetic character detected should print a separate statement followed by a newline. Ex: If passCode is "9a", output is: Alphabetic at 1 Hint: Use two if statements to check each of the two characters in the string, using Character.isLetter().
Final answer:
To find the location of any alphabetic character in a 2-character string, use two if statements to check both characters with Character.isLetter(), consider 0-based indexing while displaying a 1-based output.
Explanation:
The student is asked to write Java code that prints the location of any alphabetic character in a 2-character string called passCode. In Java, the method Character.isLetter() can be used to determine if a given character is a letter. To accomplish this task, two if statements can be used, one for each character in the string, and the indexes are 0-based. If an alphabetic character is found, the program outputs the location of the character using a 0-based index, but since users usually expect a 1-based index, we'll add one to the index before printing. Here is an example of how to write the code:
public class Main {
public static void main(String[] args) {
String passCode = "9a";
if (Character.isLetter(passCode.charAt(0))) {
System.out.println("Alphabetic at " + (0 + 1));
}
if (Character.isLetter(passCode.charAt(1))) {
System.out.println("Alphabetic at " + (1 + 1));
}
}
}
For the string "9a", the output of this code would be "Alphabetic at 2" because 'a' is an alphabetic character at the second position (index 1).
Write a small program basic c++, that defines a negative integer (between ‐1 and ‐255), converts it to a positive value and then displays it on the console window.
Answer:
#include <iostream>
using namespace std;
int main() {
int a=-156;//negative integer between -1 and -255.
a*=-1;//multiplying a to -1 so that it can become positive.
cout<<a;//printing a.
return 0;
}
Explanation:
The above written program is in C++ and in the program an integer a is defined with a negative value in the program it is -156.Then to convert it to positive integer we have to multiply a to -1 after that printing the value of a on the screen.