Theory Flashcards
What are some aspects of programming language that influence other aspects of it?
What is the first language to introduce OO
Simula
What is the first language to formalize the concept of OO
Smalltalk
What is the difference between C++ and Objective-C?
What is the unique aspect of Earlang?
What are scripting languages?
Scripting languages are programming languages designed to automate tasks, manipulate data, and control other software or systems. They are often interpreted rather than compiled, which means they are executed line by line by an interpreter at runtime. Scripting languages are commonly used for tasks like web development, system administration, and application scripting.
Key Characteristics:
1. Interpreted: Typically executed without requiring prior compilation, making them suitable for rapid development and testing. 2. High-level Syntax: Often easier to write and understand compared to low-level programming languages. 3. Dynamic Typing: Variables are not explicitly declared with a type, allowing more flexibility during coding. 4. Automation: Frequently used to automate repetitive tasks, such as file manipulation or testing. 5. Integration: Designed to work well with other programming languages or environments.
Examples of Scripting Languages:
• JavaScript: For interactive web development. • Python: General-purpose scripting for web, data analysis, machine learning, and automation. • Ruby: Web development and general-purpose scripting. • PHP: Server-side web development. • Bash: Shell scripting in Unix/Linux systems. • Perl: Text processing and system administration.
Uses:
• Automating repetitive tasks (e.g., file processing). • Writing short programs or scripts to control applications. • Developing dynamic web pages. • Prototyping and testing larger software applications.
Would you like a deeper dive into a specific scripting language?
What is the difference between procedural programming and functional programming?
What is Scheme used for? Describe its uniqueness. What is it good for?
What is the main particularity in function structure in Scheme
How do we write “x == y + 3*x + Z;” in Scheme?
How the basic types of Scheme (Boolean, Int, Nums, Chars, Vectors, Strings, Lists, Pairs) are written?
What is the difference between statements and expressions?
What does “call by value” means?
What is let used for? How?
How would a lambda function such as “x^2 + y^2” written?
What is static scope rules? What about dynamic scope rules?
What is the result of the following expression:
(let ((a 1))
(let ((f (lambda ()
(display a))))
(let ((a 2))
(f))))
1
What does it means that schema let binds in parallel?
What is the result of the following expression:
(let ((x 1)
(y 2)
(let ((x y)
(y x))))
Schema is homoiconic. What does it means?
There is no distinction between data and code
How can you add syntax to Scheme?
What does the “quote” command does in Scheme? Why do we need it?
What is the “eval” command used for in Scheme?
What is the “begin” command used for in Scheme?
What is the “define” command used for in Scheme and what is the difference from the “let” command?
How can we use define to define a function in Scheme?
How can we change the value of a variable in Scheme?
What the char ! Indicates?
How can we define list in scheme?
‘(…)
(list (…))