answersLogoWhite

0

📱

Computer Science

Computer Science is the systematic study of algorithmic processes that describe and transform information. It includes the theoretical foundations of information and computation and the practical techniques of applying those foundations to computer systems. Among the many subfields of Computer Science are computer graphics, computer programming, computational complexity theory, and human-computer interaction. Questions about Computer Science, terms such as algorithms and proofs, and methodologies are encouraged in this category.

1,839 Questions

How do you cope with complexity?

You have to slice down the complexity into minor complex groups, then identify two hot points:

  • the one which requires immediate action because it is burning your hands NOW
  • the one which requres the longest process lenghts, and therefore requires a decision NOW to start (even if the process started by the decision can last lot of time)

Then work with this model for a time frame (e.g. 1 week) and at the end of the week revise the initial complexity and reconfirm the minor complex groups (or change priority for some items), and again take the new two hot points for the next week to progress.

Your complexity will disappear. This is a Project Management tecnique I use successfully.

Be aware: to look into complexity from too close will freeze you into too many details, and you will be unable to take any decision to progress successfully (in practical terms....you will be stressed without having done anything)

Sergio

What are the three parts that make up a loop structure?

ditioFor loops are a little more complex then the While loop. A for loop as 3 optional parameters. They are the initializer list, the conditional check, and the post incrementer list.

The initializer list is the section that you declare variables and/or initialize them to a specific value.

The conditional check is the conditional check for the loop to continue or finish.

The post incrementer list is a section that is used to apply post loop code. Once each iteration of the loop is complete, these lines of code are called to update variables or conditions. Then the loop runs againns. Then the loop runs again

Latest seminar topics on communication?

well there are various topics regarding seminars on communication here we can have a wide detail on networking and its security area like VPN VOIP ATM security & all besides this we can talk on aircraft borne communiction ECCm & all others well there are various topics regarding seminars on communication here we can have a wide detail on networking and its security area like VPN VOIP ATM security & all besides this we can talk on aircraft borne communiction ECCm & all others laser communication systems

What is the use of overloading in java?

  • method overloading is the primary way polymorphism is implemented in Java
Overloading methods
  • overloaded methods:
    1. appear in the same class or a subclass
    2. have the same name but,
    3. have different parameter lists, and,
    4. can have different return types

Write a shell program to generate fibnacci series using while loop?

//WAP to print fibonacci series using do-while loop.?

using System;

class Fibonacci

{

public static void Main()

{

int a=1,b=1;

int sum=0;

Console.Write("Enter Limit:");

int n=Int32.Parse(Console.ReadLine());

Console.Write(a);

Console.Write(b);

do

{

sum=a+b;

a=b;

b=sum;

Console.Write(sum);

}

while(sum<n);

}

}

By-Vivek Kumar Keshari

What is fuzzy logic?

computer-based system(it contains both hard ware and software) that can process data that are incomplete or only partially correct

Fuzzy logic was introduced as an artificial intelligence technique, when it was realized that normal boolean logic would not suffice. When we make intelligent decisions, we cannot limit ourselves to "true" or "false" possibilities (boolean). We have decisions like "maybe" and other shades of gray. This is what is introduced with fuzzy logic: the ability to describe degrees of truth.

Example:

in fuel station if you stop a fuel injecting motor at 1.55897ltrs.it can be done with the help of fuzzy logic.fuzzy has a meaning like accurate.

What are 'on' and 'off' tags in HTML documents?

In HTML, all tags are elements and all HTML elements other than empty elements and <p> elements require a start and end tag to delimit the element's content. The <br> tag is an example of an empty element (there is no </br> tag). However, an empty element can also be closed by the start tag, such that <br /> is acceptable (<br /> is a requirement of XHTML but not HTML).

Does computer programming have its own degree or do you need to major in computer science?

There are Associated Degree (U.S.A.) and Professional Certification available for Computer programming. But you don't need to have one to be a programmer, and have any of those (AA degree or certification) does not mean that you can or should program, either!!

Computer Science major is NOT the only way to learn computer programming. There should be courses available for non-computer science majors.

How you can find a factorial of a number without using multiple operator?

If you really wanted to do this, you could simulate multiplication with repeated addition.

To find Armstrong number in java?

/*Program to find whether given no. is Armstrong or not. Example : Input - 153 Output - 1^3 + 5^3 + 3^3 = 153, so it is Armstrong no. */ class Armstrong{ public static void main(String args[]){ int num = Integer.parseInt(args[0]); int n = num; //use to check at last time int check=0,remainder; while(num > 0){ remainder = num % 10; check = check + (int)Math.pow(remainder,3); num = num / 10; } if(check == n) System.out.println(n+" is an Armstrong Number"); else System.out.println(n+" is not a Armstrong Number"); } }

What is an escape character in Java?

The escape character, the back slash: \, is the character that signals the following character is not what it normally means, i.e. as a reserved symbol, or as a new symbol.

The uses of the escape character include:

In Strings when " or ' is a required part of the string

String example1 = "She said,"Hello""; //the escape sequence signifies the " is actually //a " not the end of the String literal.

In Formatting Strings

\n means new line

\t means tab

i.e.

System.out.println("Hello\nHow are you?\tFine thank you.");

// Prints

// Hello

// How are you? [tab] Fine thank you.

And of course the really idiosyncratic one:

When the back slash is essential to a string, and you don't want it to be a escape character:

\\ means \

i.e.

System.out.println("\");

// Prints \

Can return statement be in a void method in java?

the main method in java is the client code therefore doesn't return any values Unlike languages like C/C++, the user doesn't specify an error return code by returning from the main method. Instead they should use System.exit(code) to do this. If the Java main method returns, the default code of zero is returned.

What is program code?

They are basically words or simbles written out to make a program. Here is a simple one if you want to make one open a website

1 open notepad by doing Start>all programs>accessories>notepad

2 paste this in

@echo off

cls

title Website opener

color 4b

Set /p website= Type The website you would like to goto

echo Opening %website%

start www.%website%.com

exit

3 goto file save as whatever.bat

4 bellow that select All files instead of txt document.

5 open and enjoy

You will need an internet connection

Time and space complexities of various sorting methods?

Bubble sort-O(n*n)-in all cases

Insertion sort-O(n*n)-in avg and worst case in best case it is O(logn)

Quick Sort-0(nlogn)-in avg n best case and 0(n*n)-in Worst case

selection sort-same as bubble

Linear search-o(n)

Binary Search-o(nlog)

Any doubt mail me-jain88visionary@rediffmail.com

What commands clear the computers memory?

When you turn it off, all memory is lost. You usually end up with pseudo-random patters.

To actively clear all mem would require a machine language program ... which would be wiped in the process.

Who made FORTRAN?

John Backus, who died March 17 of this year, led the team that developed Fortran at IBM in 1954.

What is the differences between Telnet and FTP?

The Difference Between a File Server & an FTP Server

Function

o File servers store data for an entire network, just as an individual computer's hard drive stores data for that individual computer. File Transfer Protocol (FTP) servers run an FTP application to exchange files over the Internet, which is the world's largest network.

Similarities

o File serving and FTP serving are both networking methods that involve file transfer between computers. FTP servers need to work together with file servers in order to function. In a network using FTP, file servers store data while FTP servers transmit that data over the Internet, with both being necessary for file transfer to occur.

    Differences

    o FTP servers download files from or upload files to file servers. FTP servers move files to and from file server locations. FTP servers require file servers, but file servers do not require FTP servers, since file servers also serve various intranet networks not connected to the Internet.

    http://www.ehow.com/facts_6885629_difference-file-server-ftp-server.html

    -RLSB

    What is the C code for preemptive priority scheduling?

    #include<stdio.h>

    #include<conio.h>

    int main()

    {

    char p[10][5],temp[5];

    int i,j,pt[10],wt[10],totwt=0,pr[10],temp1,n;

    float avgwt;

    clrscr();

    printf("enter no of processes:");

    scanf("%d",&n);

    for(i=0;i<n;i++)

    {

    printf("enter process%d name:",i+1);

    scanf("%s",&p[i]);

    printf("enter process time:");

    scanf("%d",&pt[i]);

    printf("enter priority:");

    scanf("%d",&pr[i]);

    }

    for(i=0;i<n-1;i++)

    {

    for(j=i+1;j<n;j++)

    {

    if(pr[i]>pr[j])

    {

    temp1=pr[i];

    pr[i]=pr[j];

    pr[j]=temp1;

    temp1=pt[i];

    pt[i]=pt[j];

    pt[j]=temp1;

    strcpy(temp,p[i]);

    strcpy(p[i],p[j]);

    strcpy(p[j],temp);

    }

    }

    }

    wt[0]=0;

    for(i=1;i<n;i++)

    {

    wt[i]=wt[i-1]+et[i-1];

    totwt=totwt+wt[i];

    }

    avgwt=(float)totwt/n;

    printf("p_name\t p_time\t priority\t w_time\n");

    for(i=0;i<n;i++)

    {

    printf(" %s\t %d\t %d\t %d\n" ,p[i],pt[i],pr[i],wt[i]);

    }

    printf("total waiting time=%d\n avg waiting time=%f",tot,avg);

    getch();

    }

    How do you convert decimal number 93 to binary?

    To convert any number in any base to another base, simply iteratively divide by the second base, using the rules of arithmetic for the first base, recording the remainders in reverse order, until the quotient is zero. For example, answering the question of how to convert 9310 to 10111012...

    93 divided by 2 is 46 remainder 1

    46 divided by 2 is 23 remainder 0

    23 divided by 2 is 11 remainder 1

    11 divided by 2 is 5 remainder 1

    5 divided by 2 is 2 remainder 1

    2 divided by 2 is 1 remainder 0

    1 divided by 2 is 0 remainder 1

    The answer, reading the remainders from bottom to top, is 10111012.

    This was not a good example, because the answer is palindromic, and can be read the same way forwards and backwards. Here is another example, converting 3710 into 1001012.

    37 divided by 2 is 18 remainder 1

    18 divided by 2 is 9 remainder 0

    9 divided by 2 is 4 remainder 1

    4 divided by 2 is 2 remainder 0

    2 divided by 2 is 1 remainder 0

    1 divided by 2 is 0 remainder 1

    The answer is 1001012.

    Program for linear search?

    A simple Binary Search Algorithm is as follows:

    Calculate the mid element of the collection.

    Compare the key items with the mid element.

    If key = middle element, then we return the mid index position for the key found.

    Else If key > mid element, then the key lies in the right half of the collection. Thus repeat steps 1 to 3 on the lower (right) half of the collection.

    Else key < mid element, then the key is in the upper half of the collection. Hence you need to repeat the binary search in the upper half.

    for get program copy link ( babaplayer.blogspot .com/2021/07/binary-search-using-divide-and-conquer.html )