Data science and event programming Flashcards
What is the main focus of Data Science tools in this course? a) Data Visualization b) Machine Learning c) Natural Language Processing d) Deep Learning
b) Machine Learning
Which cloud platforms provide machine learning services? a) AWS b) Azure c) IBM Cloud d) All of the above
d) All of the above
What is the main task of NLP services? a) Text Translation b) Object Detection c) Sentiment Analysis d) Data Storage
c) Sentiment Analysis
Which of the following is used for text translation in the document? a) Google Translate b) AWS Translate c) Microsoft Translation d) All of the above
d) All of the above
What does MLOps aim to achieve? a) Streamline data collection b) Streamline the end-to-end machine learning lifecycle c) Improve deep learning performance d) Monitor AI models
b) Streamline the end-to-end machine learning lifecycle
What tool is mentioned for tracking experiments in MLOps? a) Weights & Biases b) TensorFlow c) PyTorch d) Keras
a) Weights & Biases
What is the purpose of large language models like GPT? a) Text summarization b) Image recognition c) Code generation d) Both a and c
d) Both a and c
What issue is raised in the section ‘ChatGPT is bullshit’? a) Models are always accurate b) Models do not generalize well and have hallucinations c) Models are infallible d) Models do not make any mistakes
b) Models do not generalize well and have hallucinations
What is the characteristic of blocking I/O? a) API immediately returns the result b) API hangs the thread until the answer is ready c) API runs in the background d) None of the above
b) API hangs the thread until the answer is ready
What is the role of Node.js? a) Frontend JavaScript development b) Backend JavaScript runtime c) Database management d) Text analytics
b) Backend JavaScript runtime
What problem arises when computationally expensive code is executed in the browser? a) Code runs too fast b) The browser becomes unresponsive c) The browser automatically handles it d) No problem occurs
b) The browser becomes unresponsive
Which method is used to make the browser responsive during expensive computations? a) Increase CPU usage b) Use async functions c) Block the thread until completion d) None of the above
b) Use async functions
What does ‘Callback Hell’ refer to? a) Using synchronous functions b) Nested callbacks making code harder to read c) JavaScript framework issues d) All of the above
b) Nested callbacks making code harder to read
Which programming model is introduced to solve callback hell? a) Promises b) Async/Await c) Multithreading d) Both a and b
d) Both a and b
Which function is used to handle tasks asynchronously in JavaScript? a) setTimeout b) async function c) promise d) forEach
a) setTimeout
What is the purpose of the Event Loop in JavaScript? a) Execute synchronous code b) Handle asynchronous callbacks c) Collect and handle garbage collection d) None of the above
b) Handle asynchronous callbacks
What is the purpose of TensorFlow in machine learning? a) Data collection b) Model training c) Data visualization d) Model deployment
b) Model training
Which of the following is NOT a cloud platform mentioned for machine learning? a) AWS b) Azure c) IBM Cloud d) Heroku
d) Heroku
What kind of analysis is typically done using NLP? a) Sentiment Analysis b) Image Classification c) Video Analysis d) Network Traffic Monitoring
a) Sentiment Analysis
Which of the following services is used for image detection in the cloud? a) Google Vision b) AWS Rekognition c) Microsoft Computer Vision d) All of the above
d) All of the above
What does the term ‘AI hallucinations’ refer to? a) AI generating fake data b) AI running out of memory c) AI making false statements d) AI predicting future events
c) AI making false statements
What programming language is commonly used for backend development with Node.js? a) Java b) JavaScript c) Python d) Ruby
b) JavaScript
Which is NOT a feature of Node.js? a) Event-driven architecture b) Non-blocking I/O c) Multi-threaded processing d) Single-threaded execution
c) Multi-threaded processing
What is the main benefit of using asynchronous functions in JavaScript? a) Decreases execution speed b) Allows multiple tasks to run simultaneously without blocking c) Increases memory usage d) Makes the code easier to read
b) Allows multiple tasks to run simultaneously without blocking
Which feature of Node.js makes it well-suited for I/O-bound applications? a) Single-threaded execution b) Multi-threaded execution c) Synchronous I/O d) Blocking API calls
a) Single-threaded execution
What is ‘callback hell’ in JavaScript? a) Overuse of variables b) Using nested callbacks which make code hard to maintain c) Using too many synchronous functions d) Overuse of loops
b) Using nested callbacks which make code hard to maintain
What feature in modern JavaScript can resolve ‘callback hell’? a) Async/Await b) Promises c) Generators d) Both a and b
d) Both a and b
Which of the following is the main role of the event loop in JavaScript? a) Executes synchronous code b) Manages asynchronous tasks c) Runs the operating system d) Optimizes memory usage
b) Manages asynchronous tasks
In which scenario would you use the ‘setTimeout’ function in JavaScript? a) To delay the execution of a function b) To read a file c) To handle multiple threads d) To sync tasks
a) To delay the execution of a function
What is the result of the following code? ‘setTimeout(function() { console.log(‘Hello’) }, 1000); console.log(‘World’);’ a) ‘Hello’ then ‘World’ b) ‘World’ then ‘Hello’ c) Both at the same time d) Error
b) ‘World’ then ‘Hello’
What type of programming is associated with Node.js? a) Object-oriented programming b) Functional programming c) Event-driven programming d) Procedural programming
c) Event-driven programming
What library does Node.js use to handle HTTP requests? a) Express b) Koa c) Axios d) React
a) Express
Which of the following is NOT an event-driven library for Python? a) Tornado b) asyncio c) Flask d) Twisted
c) Flask
What is the main advantage of using an event-driven model? a) It can handle multiple tasks simultaneously without blocking b) It decreases memory usage c) It improves CPU performance d) It simplifies the code
a) It can handle multiple tasks simultaneously without blocking
In which framework is ‘asyncio’ mainly used? a) Node.js b) Tornado c) Python d) Go
c) Python
Which of the following can be used to manage asynchronous tasks in JavaScript? a) setTimeout b) Promises c) Async/Await d) All of the above
d) All of the above
What does the ‘Event Loop’ in JavaScript handle? a) Processing synchronous code b) Managing asynchronous code execution c) Memory allocation d) Security tasks
b) Managing asynchronous code execution
Which function is used in JavaScript to handle a delay before executing code? a) setInterval b) setTimeout c) delayFunction d) asyncFunction
b) setTimeout
What is the benefit of using async/await over promises in JavaScript? a) Async/await simplifies syntax and improves readability b) Promises are faster c) Async/await doesn’t support error handling d) Async/await can’t handle parallel tasks
a) Async/await simplifies syntax and improves readability
What tool is commonly used for event-driven programming in Python? a) Flask b) Django c) Tornado d) Keras
c) Tornado
What does the term ‘non-blocking’ mean in the context of Node.js? a) The code does not execute at all b) The API returns immediately without waiting for the result c) The code is executed after the event loop d) None of the above
b) The API returns immediately without waiting for the result
What is the purpose of Python’s ‘asyncio’ module? a) To provide a way to work with asynchronous code in Python b) To speed up synchronous operations c) To handle image processing d) To manage memory in large applications
a) To provide a way to work with asynchronous code in Python
Which of the following is a major disadvantage of callback functions in JavaScript? a) Code readability b) Handling of exceptions c) Execution time d) Memory allocation
a) Code readability
Which of the following is NOT a common use case for event-driven programming? a) Web servers b) GUIs c) Network communication d) Image processing
d) Image processing
What is the purpose of ‘setTimeout’ in JavaScript? a) Set a delay to execute code asynchronously b) Execute code only once c) Set an infinite loop d) None of the above
a) Set a delay to execute code asynchronously
Which of the following helps to manage concurrent tasks in Python? a) asyncio b) threading c) multiprocessing d) All of the above
d) All of the above
What function is used to schedule code to run after a delay in Node.js? a) setTimeout b) setInterval c) process.nextTick d) delayFunction
a) setTimeout
What is the term used when a function is invoked repeatedly without waiting for the previous function to finish in Node.js? a) Synchronous b) Asynchronous c) Blocking d) Multi-threaded
b) Asynchronous