Answer: True
Explanation:
Functional policies are referred to as a system or units of standardized procedures, processes and guidelines for employees which tends to state how exactly an employee has to provide services and commodities. The stages to go undergo this are usually formalized in organizations guide which usually will describe the respective processes. It also lies as the ground of franchising and thus tend to guarantee both the adherence to the process and the accomplishment of standards set .
Which method call converts the value in variable stringVariable to an integer?
Integer.parseInt( stringVariable );
Convert.toInt( stringVariable );
Convert.parseInt( stringVariable );
Integer.toInt( stringVariable );
Answer:
The correct answer for the given question is Integer.parseInt( string variable );
Explanation:
Integer.parseInt( string variable ); is the method in a java programming language that convert the string into the integer value. It takes a string variable and converted into the integer.
Following are the program in java which convert the string value into an integer value.
class Main
{
public static void main(String []args) // main function
{
String str1 = "10009";
// variable declaration
int k = Integer.parseInt(str1);
// convert the string into integer.
System.out.println("Converted into Int:" + k);
}
}
Output:
Converted into Int:10009
Convert.toInt( stringVariable );
Convert.parseInt( stringVariable,Integer.toInt( stringVariable ); are not any method to convert the string into integer .
Therefore the correct answer is :Integer.parseInt( stringVariable );
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 proofWhat is your understanding of the difference between an unconditionally secure cipher and a computationally secure cipher?
Answer:
The unconditionally secured is basically define as, the cipher content produced by the plan that doesn't contain enough data to decide the comparing plain message ,regardless of what number of figure content is accessible.
It is basically used to determine the uniquely plain content without knowing the actual availability of the cipher.
The computationally secure cipher is the encryption scheme which is basically required the time for breaking the cipher which exceeds the helpfulness lifetime of that data. The expense of breaking the figure surpasses the estimation of scrambled data
What is the Matlab command to create a vector of the even whole numbers between 29 and 73?
Answer:
x = 29:73;
x_even = x(2:2:end);
Explanation:
In order to create a vector in Matlab you can use colon notation:
x = j:k
where j is 29 and k is 73 in your case:
x = 29:73
Then you can extract the even numbers by extracting the numbers with even index (2,4,6,etc.) of your vector:
x_even = x(2:2:end);
In the line of code above, we define x_even as all the elements of x with even index from index 2 till the end index of your vector, and an increment of 2 in the index: 2,4,6,etc.
If you want the odd numbers, just use the odd indices of your vector:
x_odd = x(1:2:end);
where x_odd contains all the elements of x with odd index from index 1 till the end index, and an increment of 2: 1,3,5,etc.
."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.
Write a program that converts a temperature in Fahrenheit to temperature in Centigrade. The program will ask the user to enter a temperature in Fahrenheit as a decimal number. It will then display the same temperature in Centigrade as a decimal number. See Testing section below for test data.
Answer:
// here is program in java to convert Fahrenheit to equivalent Centigrade.
// import package
import java.util.*;
// class definition
class Main
{
// main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// object to read value from user
Scanner scr=new Scanner(System.in);
// ask to enter temperature in Fahrenheit
System.out.print("enter rented minutes: ");
// read temperature in Fahrenheit
int temp_f=scr.nextInt();
// convert Fahrenheit to Centigrade
double cen=(temp_f-32)/1.8;
// print the temperature
System.out.println(temp_f+" Fahrenheit is equal to "+cen+" Centigrade");
}catch(Exception ex){
return;}
}
}
Explanation:
Read temperature in Fahrenheit from user and assign it to variable "temp_f". To convert the temperature to equivalent Centigrade, first subtract 32 from Fahrenheit and then divide it by 1.8 .This will give equivalent temperature in Centigrade.
Output:
enter rented minutes: 100
100 Fahrenheit is equal to 37.77777777777778 Centigrade
Consider a class ClassName whose methods are listed below. What class is it?
ClassName(){...}
boolean isEmpty(){...}
void display(){...}
boolean search(int x){...}
void insert(int i){...}
void remove(int x){...}
Answer:
An implementation of java.util.List interface
Explanation:
Given class consists of the following constructs:
ConstructorisEmpty,search, displayinsert,removeIt supports inserting and removing an element at a specified index. It also supports search and display operations.
These are characteristics of an object which implements the java.util.List interface ( For example: ArrayList or user-defined customList ).
Optimally, the __________ guides investment decisions and decisions on how ISs will be developed, acquired, and/or implemented.
a. network infrastructure
b. SWOT
c. level of IT expertise
d. IT strategy
Answer: IT strategy
Explanation: IT(Information technology) strategy is the planning that is used in any particular organization for the management of the resources, functions, operation etc to make sure that stakeholders, employees etc have the same aim of working. This method helps in sustainability and achieving the goals.
Other options are incorrect because network infrastructure is the structure made by the network nodes, SWOT(strength, weakness, opportunities and threats) analysis for the analyzation of organization or person, IT expertise level defines the stages persisting particular skills.Thus the correct option is IT strategy.
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 .
Discuss the purpose of Javadoc.
Answer: Javadoc is type of tool that is used for reading the comments that are formatted in Java source code. It helps in the production of the Java code documentation from these java codes in the HTML(hyper test markup language).
The purpose it serves is changing the API documents into the HTML code documentation or HTML web pages.This service is used while programming takes place.
Which of the following describes a poor design consideration for a form?
Arrange controls closely together or in a sequence that is easy to read by the user.
Each form should have a different theme.
Make labels descriptive and clear.
Right-align labels followed by a colon and left-align bound controls.
Answer: Each form should have a different theme.
Explanation: Form is display of requirement for presenting the application having a specific data in it with label.It is made with certain specifications to fulfill the purpose .
The considerations for the designing of form are accessing by the client,clear requirement for designing,layout ,security access provision, purposes like read only etc.
All the considerations mentioned in the question are correct except the different theme belonging to form.The theme or subject depends on the information that the form is based on.The data provided by the form should be precise, sequential and labeled in order to make it informative. So, different theme is the poor consideration for form designing.
A logical DFD shows:
Select one:
a. how a process is performed.
b. the groups of entities logically involved in a business process.
c. the methods for performing activities in a process.
d. the logical grouping of activities in a business process.
e. none of the above.
Answer:d)the logical grouping of activities in a business process.
Explanation: The logical data flow diagram is the diagram that displays or represents the business related activities.They has easily understandable concept which can be acknowledged by technical as well as non-technical people.They help in providing the data/information by connecting and communicating.
Other options are incorrect because it does not show the process or methods for performing activities neither it works in the form of entities collection in a business..Thus the correct option is option (d).
What is the management part of a dashboard?
Answer:
The management dashboard is the visual and display the KPI ( Key performance indicator) and metrics for monitoring the specific process and department.
It is basically used for checking whether the organization achieve or meet its specific goals not as per the requirement of the particular department in the organization.
The main part of the management dashboard is that it provide the visibility and alignment in the particular organization so that it meets according to the requirements of the organization. The basic requirement in the organization are:
Business user Organization needsInformation technology (IT) needsFinal answer:
The management part of a dashboard offers tools for monitoring, analyzing, and reporting on business performance, including real-time data, customizable widgets, and interactive features to strategically manage operations.
Explanation:
The management part of a dashboard is critical to business operations as it provides a visual representation of key performance indicators (KPIs) and metrics to help managers make informed decisions. This component typically includes tools and functionalities that allow for monitoring, analyzing, and reporting on various aspects of business performance.
Dashboards can also feature real-time data updates, customizable widgets, and interactive capabilities to manage operations effectively. For instance, a sales dashboard may contain management features like tracking sales targets, customer acquisition costs, and response times to customer inquiries, which enable leaders to manage their teams and resources strategically.
___ causes pain in the forearms due to swelling and pressure on the median nerve passing through the wrist.
Carpal tunnel syndrome
CVS
Tunnel syndrome
RSI
Answer:
Carpal Tunnel Syndrome.
Explanation:
Carpal Tunnel Syndrome is a very common condition in human beings.If you have carpal tunnel syndrome then you are very likely to feel pain ,tingling,numbness in the arm and hand.
Carpal Tunnel Syndrome happens because of swelling and pressure on one of the major nerves to the hand called the median nerve.
. The __________ is a set of recommended or best practices for organizations using payment cards.
Answer: Payment card industry data security standard (PCI DSS)
Explanation:
The PCI DSS is the set of standard policies that basically used in the organization for the purpose of payment cards.
The PCI DSS was basically created in the 2004 by the major credit card company that is american express ,visa and master card. It provide the procedure for optimize the credit and debit card security. It also protect the cardholders from the misuse for their personal data or information.
It basically maintain the secure network so that the transaction can be easily conducted.
-Define three types of user mode to kernel mode transfers?
Answer:
The three types of user mode to the kernel mode transferred occurred due to the:
It is mainly occurred due to the interrupt when, it send to the central processing unit (CPU).It also occurs due to the hardware exception and when the memory is access illegally as it is divided by the zero. It is mainly implemented or executed by the trap instruction as the system are basically executed by the program.User mode to kernel mode transfers can happen through system calls, hardware interrupts, and software interrupts, allowing a user-level program to request kernel-level operations.
Explanation:User Mode to Kernel Mode TransfersIn computer systems, user mode to kernel mode transfers can occur through three primary mechanisms. These are system calls, hardware interrupts, and software interrupts. A system call is a programmed request to the kernel for a service performed by the operating system that a normal user program is not allowed to do. This is an intended interaction. A hardware interrupt is an asynchronous signal from hardware to the processor requesting attention; it causes the CPU to switch from user mode to kernel mode to handle the event. Lastly, a software interrupt is triggered by executing a specific instruction which intentional causes the processor to enter kernel mode for executing low-level routines that are not accessible in user mode.
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 is the return type of writeDouble( double d ), a method of RandomAccessFile.
a) void b) int c) float d) double f ) boolean g) file object h) none
Answer:
The answer is h) none.
Explanation:
The RandomAccessFile.writeDouble(double d) method does not return any value, it converts the double d value into a long type and then, writes it into a file as an eight-byte quantity. So, the method does not return any value but creates a file object.
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.
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 uses of the tracrt and ping commands and what information is provided by each.
Answer:
The ping command is used to test the ability of a source computer to reach a specified destination computer. This command is used to verify if the sender computer can communicate with another computer or network device in the network.
The tracert command is used to show the details about the path sending a packet from the computer to whatever destination you specify.
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
Write a complete Java program called Stewie2 that prints the following output. Use at least one static method besides main. ////////////////////// || Victory is mine! || \\\\\\\\\\\\\\\\\\\\\\ || Victory is mine! || \\\\\\\\\\\\\\\\\\\\\\ || Victory is mine! || \\\\\\\\\\\\\\\\\\\\\\ || Victory is mine! || \\\\\\\\\\\\\\\\\\\\\\ || Victory is mine! ||
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{
// declare and initialize string pattern
String patt1="//////////////////////";
// declare and initialize string pattern
String patt2="|| Victory is mine! ||";
// both patterns are printed alternatively
for(int x=0;x<10;x++)
{
// first print pattern 1
if(x%2==0)
System.out.println(patt1);
// then print second pattern
else
System.out.println(patt2);
}
}catch(Exception ex){
return;}
}
}
Explanation:
Declare and initialize two strings patterns.As there are first pattern on every even line and second pattern on odd line. Run the loop for 10 time and print the pattern based on the position of lines.
Output:
//////////////////////
|| Victory is mine! ||
//////////////////////
|| Victory is mine! ||
//////////////////////
|| Victory is mine! ||
//////////////////////
|| Victory is mine! ||
//////////////////////
|| Victory is mine! ||
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
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).
. A collection of programs designed to create and manage databases is called a(n))
Answer:
Database Management System.
Explanation:
Database Management System is the collection of programs and data used to create ,define and manipulate the database.
There are several database management systems present and some of them are as following:-
RDBMS (Relational Database Management System)No SQL DBMSCDBMS(Columnar Database Management System).IMDBMS(In-Memory Database Management System).. How do you find and remove files whose names contain embedded spaces? What would the Linux command(s) be?
Answer:
The Linux command is find.
Explanation:
The Linux command find suffices for finding and removing files whose names contain embedded spaces.
The command find supports tests of different kinds and predefined (and user-defined) actions in conjunction like that one looking for files with embedded spaces and then delete them.
We can achieve this using the following piece of code (as example):
find . -regex '.* +.*' -delete
The command find will look for files in the current working directory ( . ), execute the test -regex, to evaluate files in the current directory using the case-sensitive regular expression test (regex) (it could be also -iregex) that evaluates those files having names with one or more embedded spaces ( +) between zero or more characters before (.*) and after (.*) of these embedded space(s) ( +).
Look carefully that one or more embedded spaces is (are) represented in regular expressions using a space before the metacharacter (+), and characters are represented using the metacharacter (.) before (*), that is, (.*)
In other words, the quantifier (+) represents one or more occurrences (or matches) and quantifier metacharacter (*) zero or more times cases for that evaluation.
So, after testing all files available in the current directory with -regex test, find will execute the action -delete for all files matching the result of such an evaluation (and finally obtaining what we are looking for).
The command find has several other tests (-name, -iname, -ctime, and many more) that can be used with logical operators (-and, -or, -not), some predefined actions like -delete (aforementioned), -ls (list), -print and -quit, and also offers possibilities for user-defined actions, as mentioned before.
Write a function named delete Letter that has 2 parameters. The first parameter is a string, the second parameter is an integer. The function removes the character located at the position specified by the integer parameter from the string. For example, if the function is being called with the following statement: deleteLetter ("timetable", 3); the string will become "tietable", where the third character, 'm' has been removed.
Answer:
//import package
import java.util.*;
// class name
class Solution
{
// method to remove the character at given index
public static void deleteLetter(String st,int in)
{
// remove the character at index in
st=st.substring(0,in-1)+st.substring(in);
System.out.println(st);
}
// main method of class
public static void main (String[] args) throws java.lang.Exception
{
try{
//scanner object to read input
Scanner scr=new Scanner(System.in);
// read string
System.out.print("Enter the string:");
String st=scr.nextLine();
// read index
System.out.print("Enter the index:");
int in=scr.nextInt();
// call method
deleteLetter(st,in);
}catch(Exception ex){
return;}
}
}
Explanation:
Read a string with the help of Scanner object.Then read the index of character to be remove.Call the method deleteLetter() with parameter string and index.It will make substring from 0 to "in-1" and "in" to last of the string.Then add both the string.This will be the required string.
Output:
Enter the string:timetable
Enter the index:3
tietable
. Write a short program that asks the user to input a string, and then outputs the
number of characters in the string.
Answer:
// program in java.
// package
import java.util.*;
// class definition
class Main
{
// main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// object to read input from user
Scanner scr=new Scanner(System.in);
System.out.print("Enter a string:");
// read input
String myString=scr.nextLine();
// variable to store characters count
int char_count=0;
// count the characters
for(int i = 0; i < myString.length(); i++) {
if(myString.charAt(i) != ' ')
char_count++;
}
// print the number of character
System.out.println("total characters in the String: "+char_count);
}catch(Exception ex){
return;}
}
}
Explanation:
Read a string from user with the help of Scanner object and assign it to variable "myString".Iterate over the string and if character is not space (' ') then char_count++. After the loop print the number of characters in the string.
Output:
Enter a string:hello world
total characters in the String: 10
Implements the sequential search method that takes and array of integers and the item to be search as parameters and returns true if the item to be searched in the array, return false otherwise
Answer:
// here is code in java.
import java.util.*;
// class definition
class Solution
{
// function to perform sequential search
public static boolean item_search(int [] arr,int k)
{
boolean flag=false;
for(int a=0;a<arr.length;a++)
{
// if item found then return true,else false
if (arr[a]==k)
{
flag=true;
break;
}
}
return flag;
}
// main method of the classs
public static void main (String[] args) throws java.lang.Exception
{
try{
// variables
int size,item;
// scanner object to read input from user
Scanner scr=new Scanner(System.in);
//ask user to enter size
System.out.println("size of array:");
// read the size of array
size=scr.nextInt();
// create an array of given size
int inp_arr[]=new int[size];
System.out.println("enter the elements of array:");
// read the elements of the array
for(int x=0;x<size;x++)
{
inp_arr[x]=scr.nextInt();
}
System.out.println("enter the item to search:");
// read the item to be searched
item=scr.nextInt();
// call the function with array and item as arguments
System.out.println(item_search(inp_arr,item));
}catch(Exception ex){
return;}
}
}
Explanation:
Read the size of array.Then create an array of the given size.Read the elements of the array.Then read the item to be searched.Call the method item_search() with array and item as arguments.Here check all the elements, whether the item is equal to any of the element of array or not.If any element is equal to item then method will return true otherwise return false.
Output:
size of array:5
enter the elements of array:3 6 1 8 9
enter the item to search:8
true