Knowledge in programming languages

Prolog Language

Prolog is a high level language for programming basically in Artificial Intelligence concepts.

C paper

End semester paper for C language of 2018.

COMPUTER PROGRAMMING MID SEMESTER QUESTION PAPER 2019 {DBATU}

This pdf contains the COMPUTER PROGRAMMING mid semester question paper of 2019. Also the paper pattern is described in well defined manner . This paper covers all essential questions from syllabus. This is conducted during winter semester examination ia DR. BABASAHEB AMBEDKAR TECHNOLOGICAL UNIVERSITY by COMPUTER DEPARTMENT.

Python Function

Python FunctionsIn this article, you'll learn about functions, what a function is, the syntax, components, and types of functions. Also, you'll learn to create a function in Python.What is a function in Python?In Python, a function is a group of related statements that performs a specific task.Functions help break our program into smaller and modular chunks. As our program grows larger and larger, functions make it more organized and manageable.Furthermore, it avoids repetition and makes the code reusable.Syntax of Functiondef function_name(parameters): """docstring""" statement(s) Above shown is a function definition that consists of the following components.Keyword def that marks the start of the function header.A function name to uniquely identify the function. Function naming follows the same rules of writing identifiers in Python.Parameters (arguments) through which we pass values to a function. They are optional.A colon (:) to mark the end of the function header.Optional documentation string (docstring) to describe what the function does.One or more valid python statements that make up the function body. Statements must have the same indentation level (usually 4 spaces).An optional return statement to return a value from the function.Example of a functiondef greet(name): """ This function greets to the person passed in as a parameter """ print("Hello, " + name + ". Good morning!") How to call a function in python?Once we have defined a function, we can call it from another function, program or even the Python prompt. To call a function we simply type the function name with appropriate parameters.>>> greet('Paul') Hello, Paul. Good morning! Note: Try running the above code in the Python program with the function definition to see the output.def greet(name): """ This function greets to the person passed in as a parameter """ print("Hello, " + name + ". Good morning!") greet('Paul') Output:Hello, Paul. Good morning!DocstringsThe first string after the function header is called the docstring and is short for documentation string. It is briefly used to explain what a function does.Although optional, documentation is a good programming practice. Unless you can remember what you had for dinner last week, always document your code.In the above example, we have a docstring immediately below the function header. We generally use triple quotes so that docstring can extend up to multiple lines. This string is available to us as the __doc__ attribute of the function.For example:Try running the following into the Python shell to see the output.>>> print(greet.__doc__) This function greets to the person passed in as a parameter  To learn more about docstrings in Python, visit Python Docstrings.The return statementThe return statement is used to exit a function and go back to the place from where it was called.Syntax of returnreturn [expression_list] This statement can contain an expression that gets evaluated and the value is returned. If there is no expression in the statement or the return statement itself is not present inside a function, then the function will return the None object.For example:>>> print(greet("May")) Hello, May. Good morning! None

COMPUTER PROGRAMMING

SIMPLE BUT IMPORTANT NOTES OF COMPUTER PROGRAMMING BASED ON C LANGUAGE

COMPUTER PROGRAMMING

THIS PDF CONTAINS IMPORTANT NOTES BASED ON COMPUERT PROGRAMMING FOR C LANGUAGE

Recursion (computer programming )

This document contains short theory of Recursion (computer programming )

Java generics

Generics are a facility of generic programming that were added to the Java programming language in 2004 within version J2SE 5.0. They were designed to extend Java's type system to allow "a type or method to operate on objects of various types while providing compile-time type safety".

Object Oriented Programming- OOPS

As the name suggests, Object-Oriented Programming or OOPS refers to languages that uses objects in programming. Object-oriented programming aims to implement real-world entities like inheritance, hiding, polymorphism etc in programming. The main aim of OOPS is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function. In Object oriented programming we write programs using classes and objects utilising features of OOPs such as abstraction, encapsulation, inheritance and polymorphism. Some topics of OOPS for practice through C++ and these contains a variety of topics. Also it includes some of the practice problems. You practice more and score high in your exams as well as interviews.

ULTIMATE JAVA CHEAT SHEET

Java is the official language for Android mobile app development. In fact, the Android operating system itself is written in Java. Even though Kotlin has recently become an alternative to using Java for Android development, Kotlin still uses the Java Virtual Machine and can interact with Java code.