1. What is Activate of Windows?
Activation helps verify that your copy of Windows is genuine and hasn’t been used on more devices than the Microsoft Software License Terms allow. A Windows product key is a 25-character code used to activate Windows 7 or Windows 8.1 or Windows 10
2. Write a function that returns the factorial of a number.
def fact(n): return 1 if (n==0 or n==1) else n*fact(n-1) fact(3)
3. What are data structures?
Data structure is a data organization, management, and storage format that enables efficient access and modification. More precisely, a data structure is a collection of data values, the relationships among them, and the functions or operations that can be applied to the data.
4. What are condition statements?
Conditional statements, conditional expressions and conditional constructs are features of a programming language, which perform different computations or actions depending on whether a programmer-specified Boolean condition evaluates to true or false.
5. What is CD-ROM?
CD-ROM, abbreviation of compact disc read-only memory, type of computer memory in the form of a compact disc that is read by optical means.
6. Define exception handling with example.
Exception handling ensures that the flow of the program doesn’t break when an exception occurs. For example, if a program has bunch of statements and an exception occurs mid way after executing certain statements then the statements after the exception will not execute and the program will terminate abruptly.
try: # do something pass except ValueError: # handle ValueError exception pass except (TypeError, ZeroDivisionError): # handle multiple exceptions # TypeError and ZeroDivisionError pass except: # handle all other exceptions pass
7. Name the operating systems you are familiar with.
Tell your view but be clear with your view.
8. What is the difference between a bug and a virus?
A computer virus is a small software program that spreads from one computer to another computer and that interferes with computer operation. A computer virus may corrupt or delete data on a computer, use an e-mail program to spread the virus to other computers, or even delete everything on the hard disk.
An error or defect in software or hardware that causes a program to malfunction. Often a bug is caused by conflicts in software when applications try to run in tandem. According to folklore, the first computer bug was an actual bug. Discovered in 1945 at Harvard, a moth trapped between two electrical relays of the Mark II Aiken Relay Calculator caused the whole machine to shut down.
9. What is hyper threading (HT technology)?
Hyper-threading is Intel’s proprietary simultaneous multithreading implementation used to improve parallelization of computations performed on x86 microprocessors. It was introduced on Xeon server processors in February 2002 and on Pentium 4 desktop processors in November 2002.
10. Which programming language would you choose to make accounting software and why?
This depends a bit on the purpose of that software. You have to tell your view
11. What is Clipboard?
Clipboard is a buffer that some operating systems provide for short-term storage and transfer within and between application programs. The clipboard is usually temporary and unnamed, and its contents reside in the computer’s RAM. The clipboard is sometimes called the paste buffer.
12. What is a database? How does it differ from data marts and data warehouses?
Database is an organized collection of data, generally stored and accessed electronically from a computer system. Where databases are more complex they are often developed using formal design and modeling techniques.
The main difference between Data warehouse and Data mart is that, Data Warehouse is the type of database which is data-oriented in nature. while, Data Mart is the type of database which is the project-oriented in nature. The other difference between these two the Data warehouse and the Data mart is that, Data warehouse is large in scope where as Data mart is limited in scope.
13. Explain the projects undertaken by you.
Tell what are all the projects that you have done
14. Write the code to sort an array of integers.
b = [6, 3, 8, 2, 7, 3, 9] b.sort() print(b) [2, 3, 3, 6, 7, 8, 9] # Sorted!
15. What is the difference between recursion and iteration?
|BASIS FOR COMPARISON||RECURSION||ITERATION|
|Basic||The statement in a body of function calls the function itself.||Allows the set of instructions to be repeatedly executed.|
|Format||In recursive function, only termination condition (base case) is specified.||Iteration includes initialization, condition, execution of statement within loop and update (increments and decrements) the control variable.|
|Termination||A conditional statement is included in the body of the function to force the function to return without recursion call being executed.||The iteration statement is repeatedly executed until a certain condition is reached.|
|Condition||If the function does not converge to some condition called (base case), it leads to infinite recursion.||If the control condition in the iteration statement never become false, it leads to infinite iteration.|
|Infinite Repetition||Infinite recursion can crash the system.||Infinite loop uses CPU cycles repeatedly.|
|Applied||Recursion is always applied to functions.||Iteration is applied to iteration statements or “loops”.|
|Stack||The stack is used to store the set of new local variables and parameters each time the function is called.||Does not uses stack.|
|Overhead||Recursion possesses the overhead of repeated function calls.||No overhead of repeated function call.|
|Speed||Slow in execution.||Fast in execution.|
|Size of Code||Recursion reduces the size of the code.||Iteration makes the code longer.|
16. What are constructors?
In class-based object-oriented programming, a constructor is a special type of subroutine called to create an object. It prepares the new object for use, often accepting arguments that the constructor uses to set required member variables.