Data science and event programming Flashcards

1
Q

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

A

b) Machine Learning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which cloud platforms provide machine learning services? a) AWS b) Azure c) IBM Cloud d) All of the above

A

d) All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the main task of NLP services? a) Text Translation b) Object Detection c) Sentiment Analysis d) Data Storage

A

c) Sentiment Analysis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

d) All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

b) Streamline the end-to-end machine learning lifecycle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What tool is mentioned for tracking experiments in MLOps? a) Weights & Biases b) TensorFlow c) PyTorch d) Keras

A

a) Weights & Biases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the purpose of large language models like GPT? a) Text summarization b) Image recognition c) Code generation d) Both a and c

A

d) Both a and c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

A

b) Models do not generalize well and have hallucinations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

b) API hangs the thread until the answer is ready

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the role of Node.js? a) Frontend JavaScript development b) Backend JavaScript runtime c) Database management d) Text analytics

A

b) Backend JavaScript runtime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

b) The browser becomes unresponsive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

b) Use async functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

b) Nested callbacks making code harder to read

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which programming model is introduced to solve callback hell? a) Promises b) Async/Await c) Multithreading d) Both a and b

A

d) Both a and b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which function is used to handle tasks asynchronously in JavaScript? a) setTimeout b) async function c) promise d) forEach

A

a) setTimeout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

A

b) Handle asynchronous callbacks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is the purpose of TensorFlow in machine learning? a) Data collection b) Model training c) Data visualization d) Model deployment

A

b) Model training

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Which of the following is NOT a cloud platform mentioned for machine learning? a) AWS b) Azure c) IBM Cloud d) Heroku

A

d) Heroku

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What kind of analysis is typically done using NLP? a) Sentiment Analysis b) Image Classification c) Video Analysis d) Network Traffic Monitoring

A

a) Sentiment Analysis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

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

A

d) All of the above

21
Q

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

A

c) AI making false statements

22
Q

What programming language is commonly used for backend development with Node.js? a) Java b) JavaScript c) Python d) Ruby

A

b) JavaScript

23
Q

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

A

c) Multi-threaded processing

24
Q

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

A

b) Allows multiple tasks to run simultaneously without blocking

25
Q

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

a) Single-threaded execution

26
Q

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

A

b) Using nested callbacks which make code hard to maintain

27
Q

What feature in modern JavaScript can resolve ‘callback hell’? a) Async/Await b) Promises c) Generators d) Both a and b

A

d) Both a and b

28
Q

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

A

b) Manages asynchronous tasks

29
Q

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

a) To delay the execution of a function

30
Q

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

A

b) ‘World’ then ‘Hello’

31
Q

What type of programming is associated with Node.js? a) Object-oriented programming b) Functional programming c) Event-driven programming d) Procedural programming

A

c) Event-driven programming

32
Q

What library does Node.js use to handle HTTP requests? a) Express b) Koa c) Axios d) React

A

a) Express

33
Q

Which of the following is NOT an event-driven library for Python? a) Tornado b) asyncio c) Flask d) Twisted

34
Q

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

a) It can handle multiple tasks simultaneously without blocking

35
Q

In which framework is ‘asyncio’ mainly used? a) Node.js b) Tornado c) Python d) Go

36
Q

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

A

d) All of the above

37
Q

What does the ‘Event Loop’ in JavaScript handle? a) Processing synchronous code b) Managing asynchronous code execution c) Memory allocation d) Security tasks

A

b) Managing asynchronous code execution

38
Q

Which function is used in JavaScript to handle a delay before executing code? a) setInterval b) setTimeout c) delayFunction d) asyncFunction

A

b) setTimeout

39
Q

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

a) Async/await simplifies syntax and improves readability

40
Q

What tool is commonly used for event-driven programming in Python? a) Flask b) Django c) Tornado d) Keras

A

c) Tornado

41
Q

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

A

b) The API returns immediately without waiting for the result

42
Q

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

a) To provide a way to work with asynchronous code in Python

43
Q

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

a) Code readability

44
Q

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

A

d) Image processing

45
Q

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

a) Set a delay to execute code asynchronously

46
Q

Which of the following helps to manage concurrent tasks in Python? a) asyncio b) threading c) multiprocessing d) All of the above

A

d) All of the above

47
Q

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

a) setTimeout

48
Q

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

A

b) Asynchronous