answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What is an expanded data processing cycle?

The data processing cycle is used anywhere data has to be input and processed in order to achieve a desired output. That output may be then used as input for additional processing, repeating the cycle. During processing, data is also stored for later use, whether to be processed along with new input or to provide input for other processes, thus creating new output.

The expanded cycle is the same, the only difference being that data has to be originated before being input, while the output has to be distributed. The originated data is known as the source document, which could be something as simple as an appointment booking form that you fill in. The data from that document is then input and processed (and stored), and the output is distributed in the form of report documents, which could be as simple as a letter telling you when your appointment is, a copy of which will be kept on file along with the source document. When you come to attend your appointment, your report document becomes the source document, which is then input and processed, and the output distributed, confirming your attendance for the appointment. During the appointment, new data is originated, thus starting the cycle all over again.

What is Thread Synchronization?

Thread synchronization requires that a running thread gain a "lock" on an object before it can access it. The thread will wait in line for another thread that is using the method/data member to be done with it. This is very important to prevent the corruption of program data if multiple threads will be accessing the same data. If two threads try to change a variable or execute the same method at the same, this can cause serious and difficult to find problems. Thread synchronization helps prevent this.

What is programming syntax?

programming syntax is defined as a predefined pattern in which the program is written. for example:-

the programming syntax in c is as:

#include<headerfile or prototype> as per need.

global declaration.

main function or(void main)

{

body of coding; //comments

}

user defined functions()

{

coding; //comments

}

What are threads?

Many programming languages, operating systems, and other software development environments support what are called "threads" of execution. Threads are similar to processes, in that both represent a single sequence of instructions executed in parallel with other sequences, either by time slicing or multiprocessing. Threads are a way for a program to split itself into two or more simultaneously running tasks. (The name "thread" is by analogy with the way that a number of threads are interwoven together)

Can you define a constructor as private?

I dont think we can have Protected Constructors but yes we can have Private constructors.

We can declare the constructor as Private to ensure that no other class can instantiate it. We use this in the singleton design pattern

What is the minimum number of comparisons in bubble sort?

A bubble sort may have a range from O(n-1) for a pre-sorted array, to O(n2-n) for a poorly implemented bubble sort algorithm.

Given 20 elements, a best case scenario is 19 comparisons, and the worst case is 380 comparisons.

Name 2 errors that can occur during meiosis?

They include: incorrect copying of the DNA sequence when the DNA is replicated before division, and errors during recombination. If an error occurs in a sperm or an egg, the individual created from that gamete will have the change in every cell of their body.

What is class in oops concept?

Classes are the integral part of the all-important programming paradigm known as Object-Oriented Programming(OOP). In OOP, a programming problem is perceived as a problem in a real-life scenario, as an interaction between objects. The problem is tackled by having a system of interacting objects, that interact among themselves to solve the programming problem. Objects in OOP bear semblance to real-life objects. Classes serve as templates for the creation of objects of the same type. For instance, students may be thought to be objects of the human-being class, cars may be thought to be objects of the Automobile class. Classes are defined as collection of methods(functions) and data members(variables), additionally defined by scope rules. In addition, classes also achieve the OOP principles of encapsulation, abstraction, polymorphism and inheritance. Encapsulation refers to binding data and code together, with data controlling access to code. Abstraction refers to the hiding the implementation details of a class from outside functions and exposing only necessary details. Polymorphism refers to the scenario when a class can play more than one role. Inheritance is used when one or more classes must include properties of another set of classes, and also have properties of their own.

Count the number of nodes of a binary tree having depth n?

Use the following formula: (2^n)-1. E.g., if the depth is 3, the number of nodes is (2^3)-1 = 8-1 = 7. Note that 7 is the maximum number of nodes, not the actual number of nodes. To count the actual nodes you must traverse the tree, updating an accumulator as you go.

Provide to programming example of multithreading that improve performance over a single threaded solutions?

Any kind of sequential program is not a good candidate to be threaded. An example

of this is a program that calculates an individual tax return. (2) Another example is a

"shell" program such as the C-shell or Korn shell. Such a program must closely

monitor its own working space such as open files, environment variables, and

current working directory.

What is the programming language used in SAP-ABAP?

Hi All,

SAP's ABAP programming language is used to create business applications in the SAP environment. Object-oriented programming is made feasible by the ABAP Objects component. ABAP is the programming interface of SAP NetWeaver's Application Server ABAP (AS ABAP).

In the ever-changing world of enterprise software, one technology has stood the test of time and remains in high demand: SAP ABAP. SAP Advanced Business Application Programming (ABAP) Is A Programming Language Used Within The SAP Ecosystem To Develop And Customise Applications. Despite the emergence of new programming languages and technologies, there is still a high need for SAP ABAP Course. And by obtaining legitimate training, you will understand its implementation in a much more detailed manner.

For More Information, Contact at - +91-9711526942

List three situations in which you might want to create a restore point?

1. Before you make major chages 2. Before you install a new program (incase it doesn't run, that way u can go back to the way the coputer was be for program was installed) 3. Before you replace a old program with a new one (the new one may not work as well as the old one)

How would you define artificial intelligence?

Hi All,

The replication of human intelligence functions by machines, particularly computer systems, is known as artificial intelligence. Expert systems, natural language processing, speech recognition, and machine vision are some examples of specific AI applications.

As you can see, employing AI/ML techniques has a tonne of advantages. For instance, using them makes it simple to address difficult issues. They are also capable of working without stopping and for an infinite amount of time. So, if you also want these advantages, you must implement AI tools in your business.

To learn about different ML tools in the market that you can use for doing recruitment of employees feel free to join our AI Courses Delhi.

For More Information, Contact at - +91-9711526942

What is state space search in artificial intelligence?

State space search in artificial intelligence refers to the systematic exploration of all possible states and transitions within a problem to find a solution. It involves navigating through a problem's state space, which represents the set of all possible states, using various search algorithms such as breadth-first search, depth-first search, uniform cost search, and A* search. The goal is to find an optimal or satisfactory solution by evaluating different paths and transitions in the state space.

Definition of pointer in C?

In C programming, a pointer is a variable that stores the memory address of another variable. Pointers allow for indirect access to the value stored at the memory location pointed to by the pointer. They are commonly used for dynamic memory allocation, as well as for passing arguments to functions by reference. Pointers are declared using the '' operator, and the value stored in a pointer can be accessed using the '' operator as well.

Why use long tail keywords?

Long tail keywords get targeted traffic, though the volume is low. Site visitors genuinely interested in a product or service, type in long tail keyword. Long tail traffic converts better than the generic Keywords.

How many fiber-optic cores are typically associated with an FDDI connector?

It actually depends on the type of fiber optic connector. LC connectors, ST connectors, SC connectors, FC, MPO etc. there are many varieties. So if you want to adopt fiber optic connector which is cost friendly and popular as well, ST connectors are good for you. If your need small size fiber optic connector LC connectors are good which is approximately half the size of an ST connector.

americancableassemblies. com/fiber-optic-cables/tactical-fiber-reels/

What are the relationship between utilities and libraries programs?

Libraries are not technically programs, but instead reusable program fragments used by applications to reduce redundant code and provide a central API for common functions, such as reading a JPEG or decoding MP3 audio. Utilities are programs used to manage the system, such as formatting disk drives or adjust the power performance settings. There is little relation to the two, except that utilities may use libraries to reduce their overall code size.

Programming language used for hacking?

Top 10 programming language used for hacking:

  1. Python
  2. C++
  3. C Programming
  4. SQL
  5. Javascript
  6. PHP
  7. JAVA
  8. Ruby
  9. Perl
  10. Bash

How system analysis and design is different from object oriented analysis and design?

System analysis and design (SA&D) and object-oriented analysis and design (OOAD) are two different approaches to the development of computer-based information systems.

SA&D is a traditional approach that focuses on understanding the requirements of the system, analyzing the current system, and designing a new system that meets those requirements. It is a process-oriented approach that typically involves creating a detailed specification of the system before beginning development.

On the other hand, OOAD is a modern approach that focuses on modeling the system as a collection of objects that interact with each other to achieve the desired functionality. It is a more object-oriented approach that involves designing a system by first identifying the objects in the system, their properties, and the relationships between them.

Some of the key differences between SA&D and OOAD are:

Focus: SA&D focuses on the process of designing a system, while OOAD focuses on the objects in the system and their interactions.

Design: SA&D is typically a top-down design approach, while OOAD is a bottom-up design approach.

Requirements gathering: SA&D emphasizes the gathering of requirements and creating detailed specifications before beginning development, while OOAD emphasizes rapid prototyping and iterative development.

Abstraction: OOAD relies heavily on abstraction, while SA&D relies more on specific details and processes.

Overall, both SA&D and OOAD are valid approaches to the development of computer-based information systems, and the choice between them depends on the specific needs and requirements of the project.

Is CPP a high level language?

C++ (CPP) is a computer programming language developed by Bjarne Stroustrup in the early 1980s. C++ is an extended version of the C programming language for systems programming and high-performance applications.

C++ is often called a high-level language, but what does that mean?

In general, computer programming languages can be divided into two categories: low-level languages and high-level languages. Low-level languages, such as assembly language, are very close to a computer's machine code to execute instructions. These languages give programmers much control over the hardware but are also very difficult to learn and use.

On the other hand, high-level languages are designed to be more user-friendly and easier to learn. They abstract away some of the hardware details and provide more robust and expressive constructs for writing programs. High-level languages often use more English-like syntax and are easier to read and write.

C++ is considered a high-level language because it provides a wide range of programming constructs that abstract away some of the hardware details. These constructs include objects, classes, templates, and exceptions. C++ also includes memory management features, making it easier for programmers to allocate and deallocate memory without worrying about the underlying hardware.

Another reason why CPP is considered a high-level language is its extensive use of libraries. It has many standard libraries that provide solutions for everyday programming tasks, such as string manipulation, file I/O, and network programming. These libraries abstract away the hardware details and provide a higher-level interface for programmers.

Despite being a high-level language, C++ still provides low-level features that allow programmers to write code that can interact directly with the hardware. For example, CPP provides a way to write inline assembly code, which can perform low-level operations impossible with high-level constructs.

Here are dome features of CPP:

Object-oriented programming: C++ supports object-oriented programming, which means you can organize your code into reusable modules that can be easily modified and extended.

Platform independence: C++ code can be compiled and run on a vast variety of platforms, including Windows, macOS, Linux, and mobile devices.

Memory management: C++ gives you direct control over memory allocation and deallocation, which can help optimize the performance of your applications.

High performance: C++ is a compiled language, which means that it can be optimized for high performance. It also has a number of low-level features that allow you to write efficient code.

Compatibility with C: C++ is mainly compatible with C, which means that you can easily incorporate existing C code into your C++ projects.

To sum up, C++ is considered a high-level language because it provides powerful and expressive programming constructs that abstract away some of the hardware details. C++ also provides extensive libraries that make it easier for programmers to write code without worrying about the underlying hardware.

Despite being a high-level language, C++ still provides low-level features that allow programmers to interact directly with the hardware when necessary.