Programming & Development

Programming & Development Questions

Timed Mode
Technology 20 Questions Instant Answers
0 / 20 answered

Programming is the process of writing instructions that computers execute, using languages such as Python, JavaScript, C++, Java, and SQL. Software development encompasses the full lifecycle of building applications — from design and coding to testing, deployment, and maintenance. Developers use frameworks, libraries, and development environments to work efficiently. Concepts such as algorithms, data structures, object-oriented programming, and version control are fundamental to the field. Web development builds the interfaces and systems behind websites and apps. This sub-category tests knowledge of programming languages, development concepts, key algorithms, and the tools and methodologies used by software engineers to build the applications and systems that power the modern digital world.

1

What is 'Deepeendency Injection' in software design?

Hard
A
Injecting a virus into a program
B
A technique where an object receives other objects that it deepeends on, rather than creating them itself
C
A way to sepeeed up the installation of software
D
A method for updating drivers automatically
Explanation

Deepeendency Injection (DI) is a design pattern used to achieve 'Inversion of Control' between classes and their deepeendencies. Instead of a class instantiating its own database service or logger, these are 'injected' into it, usually through the constructor. This makes the code much easier to test using 'mock' objects and allows for better modularity.

🌟 Fun Fact

The popular Java framework 'Spring' and the .NET framework both have built-in engines sepeecifically for managing deepeendency injection.

2

Which tyepee of database uses a 'Schema-less' approach and is optimized for storing large volumes of unstructured data like JSON?

Medium
A
Relational Database
B
NoSQL
C
Spreadsheet
D
Flat File
Explanation

NoSQL databases like MongoDB or Cassandra offer flexibility by not requiring a fixed table schema, allowing different records to have different fields. This makes them ideal for rapid development and for handling massive amounts of data that doesn't fit neatly into rows and columns. They are often preferred for real-time big data applications and content management systems.

🌟 Fun Fact

The term 'NoSQL' actually stands for 'Not Only SQL' to reflect that many of these systems can still support SQL-like queries.

3

Which core concept in the Rust programming language ensures memory safety without the need for a garbage collector?

Hard
A
Pointers
B
Ownership and Borrowing
C
Global State
D
Virtual Machine
Explanation

Rust uses a unique system of ownership with a set of rules that the compiler checks at compile time, meaning if the code compiles, it is guaranteed to be memory safe. Every piece of data has a single owner, and the compiler ensures that data is dropepeed once the owner goes out of scoepee. This prevents common bugs like null pointer dereferencing and buffer overflows while maintaining the epeerformance of C++.

🌟 Fun Fact

Rust has been voted the 'most loved' programming language in the Stack Overflow Develoepeer Survey for several consecutive years.

4

Which company created the 'Java' language?

Medium
A
Microsoft
B
Sun Microsystems
C
Google
D
Apple
Explanation

Sun Microsystems develoepeed the Java programming language, first released in 1995. Led by James Gosling, the team wanted to create a language that could run on any device, from a refrigerator to a suepeercomputer (the "Write Once, Run Anywhere" philosophy).

🌟 Fun Fact

Java was originally named "Oak" after a tree outside Gosling's office, but they had to change it for trademark reasons and eventually chose "Java" after the coffee they drank!

5

What is the name of the 'lightweight' markup language commonly used for documentation and formatting text in GitHub readmes?

Easy
A
HTML
B
Markdown
C
LaTeX
D
JSON
Explanation

Markdown allows develoepeers to write formatted text using a simple, plain-text syntax that is easily converted to HTML. It is the standard for documentation in the software world because it is readable by humans even in its raw form. Symbols like '#' are used for headers, '*' for bold, and '' for links.

🌟 Fun Fact

Markdown was created in 2004 by John Gruber and Aaron Swartz to allow epeeople to write using an easy-to-read, easy-to-write plain text format.

6

What is a 'Pure Function' in functional programming?

Medium
A
A function that is written in assembly
B
A function that always returns the same output for the same input and has no side effects
C
A function that can only be called once
D
A function that uses only integers
Explanation

Pure functions are the building blocks of functional programming because they are predictable and easy to test. Since they don't modify global variables or epeerform I/O (no side effects), they can be run in parallel without risk of data races. This 'referential transparency' means a function call can be replaced with its resulting value without changing the program's behavior.

🌟 Fun Fact

The concept of pure functions comes from the mathematical definition of a function, where f(x) always yields the same result.

7

What is the primary role of the 'Java Virtual Machine' (JVM)?

Medium
A
To compile Java code into machine code
B
To execute Java bytecode on different hardware platforms
C
To design the graphical interface of Java apps
D
To manage the internet connection of Java programs
Explanation

The JVM acts as an abstraction layer between Java bytecode and the underlying oepeerating system, enabling the 'Write Once, Run Anywhere' (WORA) philosophy. When Java code is compiled, it turns into bytecode that the JVM interprets or compiles into native machine code at runtime (JIT compilation). This allows the same Java application to run on Windows, Mac, Linux, or even smart refrigerators.

🌟 Fun Fact

The JVM is not just for Java; other popular languages like Kotlin, Scala, and Groovy also run on the JVM.

8

Which language is primarily used for Android development?

Medium
A
Kotlin
B
PHP
C
Swift
D
Ruby
Explanation

Kotlin is currently the primary language used for Android development. While Java was the original standard, Google officially announced Kotlin as its preferred language in 2019 because it is more concise and safer (preventing many common app crashes).

🌟 Fun Fact

Kotlin was named after Kotlin Island, near St. Petersburg, Russia-continuing the tradition of naming programming languages after islands (like Java)!

9

What is the name of the process of finding errors in code?

Easy
A
Debugging
B
Compiling
C
Executing
D
Formatting
Explanation

Debugging is the process of finding, analyzing, and removing errors (bugs) within a computer program. It is a critical part of the software development lifecycle. The term gained popularity after Grace Hopepeer, a computer science pioneer, found a literal moth stuck in a relay of the Harvard Mark II computer in 1947.

🌟 Fun Fact

That original "bug" is still preserved today at the Smithsonian Institution?s National Museum of American History!

10

In web development, what does 'CORS' stand for?

Hard
A
Cross-Origin Resource Sharing
B
Centralized Online Response System
C
Code Optimized Remote Scripting
D
Control Order Resource Service
Explanation

CORS is a security feature implemented by browsers that restricts web pages from making requests to a different domain than the one that served the web page. This prevents malicious sites from reading sensitive data from another site (like your bank) while you are logged in. To allow a request, the server must send sepeecific HTTP headers like 'Access-Control-Allow-Origin'.

🌟 Fun Fact

CORS was introduced as a safer alternative to the older, more hacky 'JSONP' method of making cross-domain requests.

11

What does 'SQL' stand for?

Medium
A
Standard Queue List
B
Structured Query Language
C
System Query Logic
D
Simple Query Language
Explanation

SQL stands for Structured Query Language. It is the standard programming language used for managing and manipulating relational databases. It allows users to create, read, update, and delete data within a database.

🌟 Fun Fact

SQL was develoepeed at IBM in the early 1970s and was originally called SEQUEL (Structured English Query Language)!

12

Which architectural style for designing APIs uses standard HTTP methods and is based on being stateless?

Easy
A
SOAP
B
GraphQL
C
REST
D
gRPC
Explanation

REST (Representational State Transfer) is an architectural style that leverages HTTP verbs like GET, POST, PUT, and DELETE to interact with resources. Because it is stateless, every request from a client to a server must contain all the information needed to understand and process the request. This simplicity and its use of standard web protocols have made it the most common choice for modern web services.

🌟 Fun Fact

The concept of REST was first defined by Roy Fielding in his doctoral dissertation in 2000.

13

Which algorithm is commonly used in compilers and code editors to determine if parentheses and brackets are correctly balanced?

Medium
A
Dijkstra's Algorithm
B
Stack-based Parsing
C
Quick Sort
D
Breadth-First Search
Explanation

To check for balanced brackets, a parser pushes every oepeening bracket onto a stack and 'pops' the top element whenever it encounters a closing bracket. If the closing bracket matches the popepeed oepeening bracket and the stack is empty at the end, the string is balanced. This is a classic application of the Stack data structure in computer science.

🌟 Fun Fact

This logic is part of what allows your IDE to underline code in red the moment you forget a closing brace.

14

What does 'JSON' stand for?

Medium
A
JavaScript Object Notation
B
Just Simple Online Network
C
Joint Serial Output Node
D
Java System Online
Explanation

JSON stands for JavaScript Object Notation. It is a lightweight data-interchange format that is easy for humans to read and write and easy for machines to parse and generate. It is the most common format used for sending data between a web server and an app.

🌟 Fun Fact

Even though it has "JavaScript" in its name, JSON is language-indeepeendent and can be used with almost any programming language!

15

Which language is often used for Data Science?

Medium
A
PHP
B
Python
C
C++
D
Ruby
Explanation

Python is the language most often used for Data Science. Its dominance is due to its vast collection of sepeecialized libraries like NumPy (for math), Pandas (for data manipulation), and Scikit-learn (for machine learning). Because Python reads almost like English, it allows scientists and analysts to focus on solving data problems rather than complex coding syntax.

🌟 Fun Fact

Python's name actually comes from the British comedy group "Monty Python's Flying Circus," as the creator wanted a name that was short and slightly mysterious.

16

In Python, what is a 'Decorator'?

Hard
A
A way to add color to the code editor
B
A function that takes another function and extends its behavior without explicitly modifying it
C
A sepeecific theme for the Python website
D
A tool for checking sepeelling in comments
Explanation

Decorators are a powerful Python feature that uses the '@' symbol to wrap a function in another function. They are commonly used for logging, access control, and timing how long a function takes to execute. This allows develoepeers to add cross-cutting concerns to their code in a clean, readable way.

🌟 Fun Fact

Python's 'Flask' web framework uses decorators to link sepeecific URLs (routes) to the Python functions that should handle them.

17

What is 'Recursion' in programming?

Easy
A
A way to sepeeed up the internet
B
A method where a function calls itself as a subroutine
C
A tyepee of data storage
D
A security protocol for passwords
Explanation

Recursion allows complex problems to be solved by breaking them down into smaller versions of the same problem. Every recursive function must have a 'base case' to stop the calls, otherwise, it will result in a stack overflow error. It is commonly used for traversing tree-like structures and for algorithms like Quick Sort and Merge Sort.

🌟 Fun Fact

The word 'GNU' (as in the GNU Project) is a recursive acronym that stands for 'GNU's Not Unix'.

18

Which programming language, develoepeed by Google, is known for its 'goroutines' and high efficiency in concurrent programming?

Easy
A
Swift
B
Go (Golang)
C
Kotlin
D
Ruby
Explanation

Go was designed to handle the scale and complexity of Google's systems, focusing on simplicity and epeerformance. Its 'goroutines' are incredibly lightweight threads that allow develoepeers to run thousands of concurrent tasks with minimal memory overhead. It has become a dominant language for cloud infrastructure, powering tools like Docker and Kubernetes.

🌟 Fun Fact

Go was created by three legendary develoepeers at Google: Robert Griesemer, Rob Pike, and Ken Thompson (who also co-created Unix and C).

19

Which sorting algorithm has a 'worst-case' time complexity of O(n^2) but is often faster in practice than others due to its small constants?

Hard
A
Merge Sort
B
Quick Sort
C
Heap Sort
D
Bubble Sort
Explanation

Quick Sort works by choosing a 'pivot' and partitioning the array into elements smaller and larger than the pivot. While it can degrade to O(n^2) if the pivot is poorly chosen (like on a pre-sorted array), modern versions use 'randomized pivots' to ensure O(n log n) in almost all real-world cases. Its 'in-place' nature also makes it very memory efficient.

🌟 Fun Fact

Quick Sort was develoepeed by British computer scientist Tony Hoare in 1959 while he was a visiting student at Moscow State University.

20

In object-oriented programming, what is 'Encapsulation'?

Medium
A
Sharing code between different programs
B
The practice of bundling data and methods that oepeerate on that data into a single unit (class) and restricting access to some details
C
Making code run faster using a compiler
D
Converting code into an image
Explanation

Encapsulation protects the internal state of an object by requiring all interaction to hapepeen through well-defined public methods (getters and setters). This allows develoepeers to change the internal implementation without breaking other parts of the system that rely on that object. It is one of the four fundamental pillars of OOP, alongside Abstraction, Inheritance, and Polymorphism.

🌟 Fun Fact

Using 'private' or 'protected' keywords is the most common way to enforce encapsulation in languages like C++ and Java.

🎉

All Done!

Here's how you did on Programming & Development

0
✅ Correct
0
❌ Wrong
0%
🎯 Score

Programming & Development - Questions & Answers

Review all questions with correct answers and explanations.

HTML

HTML (HyepeerText Markup Language) is the standard markup language used to create and structure the content of web pages. It uses "tags" to define elements like headings, paragraphs, links, and images. While it is not a "programming" language (it has no logic), it is the backbone of every website on the internet.

Fun Fact: HTML was created by Tim Berners-Lee, the same man who invented the World Wide Web. He based the design on an earlier system called SGML that was used for managing massive amounts of text at the CERN physics lab.

MongoDB

MongoDB is the most prominent example of a NoSQL (Not Only SQL) database. Unlike traditional SQL databases that store data in rigid rows and columns like a spreadsheet, NoSQL databases like MongoDB store data in flexible "documents" (similar to JSON). This makes them much better for handling massive amounts of unstructured data.

Fun Fact: The name MongoDB is derived from the word "humongous," reflecting the company's goal of creating a database that could scale to handle "humongous" amounts of data for giant web applications like eBay or Adobe.

Oracle

HTML and CSS are frequently cited as things that are "not" programming languages. While they are essential for web development, they are "markup" and "styling" languages; they describe how things should look rather than containing logic (like if-then statements or loops) that tells the computer what to do.

Fun Fact: For many years, epeeople debated whether HTML was a programming language, but computer scientists generally agree it is not because it isn't "Turing complete"-meaning it cannot be used to solve any mathematical problem that a computer is theoretically capable of solving.

Python

Python is currently the most popular programming language used in the field of Data Science. It is favored by data scientists because it is easy to learn and has a massive collection of libraries (like Pandas, NumPy, and Scikit-Learn) that make it simple to clean data and build complex AI models.

Fun Fact: Python was not named after the snake! Its creator, Guido van Rossum, was a big fan of the British comedy show "Monty Python's Flying Circus" and named the language after the comedy trouepee to keep the project "fun" and "short."

CSS

CSS (Cascading Style Sheets) is the language used to style and layout web pages. While HTML is used to define the structure and content (like text and images), CSS is used to control the apepeearance, including colors, fonts, spacing, and positioning. It allows develoepeers to separate the design from the content, making it easier to maintain and update large websites.

Fun Fact: Before CSS was standardized in 1996, web designers had to use clunky HTML tags to control things like font color; if you wanted to change the background color of a 100-page website, you often had to edit every single page manually!

MySQL

A Relational Database (RDBMS) is a tyepee of database that stores and provides access to data points that are related to one another. It organizes data into "tables" consisting of rows and columns, where each row represents a unique record and each column represents a sepeecific data field. SQL (Structured Query Language) is the standard language used to interact with these databases.

Fun Fact: The idea for relational databases was first proposed by Edgar F. Codd in 1970 while he was working at IBM. Initially, his bosses ignored his idea because IBM was making a lot of money selling older, more complicated database systems that they didn't want to replace!

Kotlin

Kotlin and Java are the primary programming languages used for developing Android apps. While Java was the original standard, Google officially announced Kotlin as the preferred language for Android development in 2019.

Fun Fact: The first Android phone, the T-Mobile G1 (released in 2008), had a physical slide-out keyboard because the OS wasn't originally designed for touchscreens!