Professional Documents
Culture Documents
الممنوعات
الممنوعات
الممنوعات
a) 1 b) 2 c) 3 d) 4
[3] The example of a house that may be predicted to sell for a specific dollar value is
T F
considered a classification problem. Regression
[4] Data engineers use the data mining field to extract useful and hidden information from
T F
raw data.
[5] Data availability, scalability, management, and data draft are some of the most
T F
important issues facing artificial intelligence in production.
[6] The problem, whether a person is suffering from a disease X (answer in Yes or No) can
T F
be termed as a regression problem. Binary classification
P a g e |1 Quiz AI
CNN & Association Rules
1- CNN
[1] What is the primary task that Convolutional Neural Networks (CNNs) are commonly used for?
b) Natural language
a) Speech recognition c) Image classification d) Regression analysis
processing
[2] How do CNNs differ from other neural networks?
a) CNNs only have a single layer of neurons
b) CNNs are not capable of handling large amounts of data
c) CNNs use convolutional layers for feature extraction
d) CNNs are only able to perform binary classification tasks
[3] What are the main advantages of CNNs?
a) They are very efficient at extracting features
b) They are very robust to overfitting
from images.
c) They are very easy to train. d) They are very accurate at classifying images.
[4] What are the two main types of layers in a CNN?
a) Convolutional layers and pooling layers b) Fully connected layers and convolutional layers
c) Pooling layers and dense layers d) Convolutional layers and dense layers
[5] Which of the following is an example of a real-world application of CNNs?
c) Object detection in d) Stock price
a) Text summarization b) Spam detection
images prediction
2- Association Rules
[1] Which of the following statements about association rules is true?
a) Association rules are used primarily in image recognition.
b) Association rules measure the accuracy of a classification model.
c) Association rules are a data mining technique used to discover patterns within large datasets.
d) Association rules are used exclusively for time series forecasting.
[2] What is the purpose of the Apriori algorithm in association rule mining?
a) To generate frequent itemsets by iteratively pruning infrequent ones.
b) To classify data instances into predefined categories
c) To perform feature selection for machine learning models.
d) To visualize association rules using graph networks
[3] Which measure indicates the strength of the association between items in an association rule?
a) Support b) Confidence c) Lift d) Accuracy
[4] In association rules, support measures:
a) The frequency of an itemset in the dataset. b) The reliability or strength of an association rule.
c) The significance of a feature in a classification model d) The number of clusters in a clustering algorithm
[5] What are the limitations of association rules?
a) Association rules require a deep understanding of neural networks.
b) Association rules are computationally complex for large datasets.
c) Association rules can only be applied to numerical data.
d) Association rules can identify causation between variables.
[7] Association rules are a data mining technique used to discover interesting relationships or
T F
patterns within large datasets.
[8] The support measure in association rules indicates the reliability or strength of an association T F
rule.
[9] The Apriori algorithm is commonly used to mine association rules and generates frequent
T F
itemsets by iteratively pruning infrequent ones.
[10] Association rules can only be applied in market basket analysis and are not relevant in other
T F
domains.
[3] Using your experience in linear algebra, help the player to determine
the direction of the bullet to hit the target. This direction will equal
(8,2) – (6,4) = (6,2)
a) 4 b) 2 c) 1 d) 0
[6] The study of computer algorithms that have the ability to automatically learn and improve from
experience without being explicitly programming.
a) Machine learning
P a g e |3 Mid Term AI
[8] What this operation means?
a) 4 b) 6 c) 9 d) 7
[11] Which of the following figures indicates overfitting problem
a b c
b) Appropirate-fitting c) Over-fitting
a) Under-fitting
P a g e |4 Mid Term AI
حاجه كدهerror ] ايه افضل اتجاه عشان نقلل ال12[
a) b) c) d)
[13] The global maximum according to the following figure is a point number …………
1
2
3
4
a) 1 b) 2 c) 3 d) 4
a) 0.5 b) 1 c) 1.5 d) 2
[16] The global maximum according to the following figure is a point number …………
1
2
3
4
a) 1 b) 2 c) 3 d) 4
P a g e |5 Mid Term AI
[17] What be the output of the following python expression?
Round (4,576)
a) 4.5 b) 4.6 c) 4 d) 5
[18] Which of the following is a Python tuple?
a) {} b) (1,2,3) c) {1,2,3} d) [1,2,3]
[19] string = "abcd" print منغي كلمة
ر output يف بايثون مينفعش يطلع
"a" in string print("a" in string) الصح
a) True b) False
a) True b) False
a) True b) False
P a g e |6 Mid Term AI
[25] The problem of detecting stock_index_price from the
four input data features (year, month interest_rate,
unemployment_rate) is considered a single variable
linear regression problem.
c) True d) False
[26] A color feature With the values: “red”,”grean”,blue”, and “black”. Can be considered a
T F
numerical quantitative variable.
[27] Al is heavily dependent on ML. T F
[28] Ai is subfield of machine learning العكس T F
[29] A color feature with the values ( red green blue black ) can be considered a numerical
T F
quantitative variable
[30] Learning step decrease, even fixed learning rate T F
[31] ChatGPT is application of ai T F
[32] Extract useful and hidden information from raw data. T F
[33] Data engineers use the data mining field to extract useful and hidden information from raw
T F
data
[34] only type of activation function is a step function T F
[35] The problem of classifying the email as spam or not spam is considered a binary
T F
classification problem
[36] Data preparation (also referred to as “data processing”) is the process of transforming raw
data so that data scientists and analysts can run it through machine learning algorithms to T F
uncover insights or make predictions
[37] The completeness of data equality attributes can be measured by number of missing values
T F
in the recorded data
[38] In the real world data is noisy because it may contain errors or outliers T F
[39] Before applying the machine learning model to the preprocessed data we use feature scaling
T F
in order to make sure that all feature are on similar scale
P a g e |7 Mid Term AI
Old Quizzes (Lec)
[6] The existence of a domain expert is very important in any artificial intelligence project
because he or she has professional experience in the application domain, for example, T F
medical expert
[7] A machine learning model uses instructions to train the model, estimate the fine-
T F
tuning parameters and answer a specific question. AI
[8] The problem, whether a person is suffering from a disease X (answer in Yes or No) can
T F
be termed as a clustering problem
[9] The example of a house that may be predicted to sell for a specific dollar value is
T F
considered a classification problem.
[10] In Deepfakes, a person in an existing image or video is replaced with someone else's
T F
likeness,
[11] Using your experience in linear algebra, help the player to
determine the direction of the bullet to hit the target. This direction
will equal
a) 3 b) 7 c) -1 d) 3.87
[13] A human can do all things better than a computer because the computer would have
T F
difficulty in identifying the flower picture or matching it to another picture of a flower.
[14] Which of the following figures indicates that we face an overfitting problem
[15] Data availability, scalability, management, and data draft are some of the most
T F
important issues facing artificial intelligence in production.
[16] If you predict house price from a one-variable linear regression model, the number of
bedrooms is considered as an input feature. What's the model prediction if the model
parameters θ0= 100 and θ1 = 750, and the number of bedrooms = 2?
a) 1600 b) 850 c) 1500 d) 1750
For the following decision tree if the color: yellow,
shape = round and size: small, the output class
will be
P a g e |8 Old Quiz AI
[17] If you know the equation for the perceptron line (2x1+ 3x2 - 27=0), and similarly the "score"
(2x1+ 3x2 - 27), what is the score of the student who got 5 on the test and 9 for grades
a) 7 b) 5 c) 10 d)
a) True b) False
a) 8 b) 2 c) 4 d) 6
P a g e |9 Old Quiz AI
[21] The mean absolute error is considered the best form of a cost function, and it is used
to minimize the error between the true and predicted value in a linear regression model T F
[22] In a gradient descent optimization algorithm, we can use a high learning rate such as
.5 or .7 to reach the minimum point quickly. T F
[23] The problem of classifying the email as spam or not spam is considered a mufti-
T F
classification problem,
[24] You can implement the OR gate using a single perceptron. T F
[26] Which is the correct syntax for importing linear regression algorithm
a) from sklearn.linear_model import LinearRegression
b) from sklearn.feature_selection import SelectFromModel
c) None
d) from sklearn.ensemble import RandomForestClassifier
[27] For the following line code, what is the common value of the "n_jobs" argument means
a) 1 b) 2 c) 3 d) 4
[36] The global maximum according to the following figure is a point number …………
a) 1 b) 2 c) 3 d) 4
a) 4.6 b) 4 c) 4 d) 5
[5] The following python program can work with _________ parameters.
def f (x):
def f1 (*args, **kwargs):
print ( "Sanfoundry" )
return x (*args, **kwargs)
return f1
a) 2 b) 0 c) 1 d) any number of
[6] What will be the output of the following Python code?
x — ‘abcd’
for i in x:
print(i upper( ) , end=' ')
a) ABCD b) Error c) abcd d) aBCD
[7] What will be the output of the following Python function?
Len(["hello", 2, 4, 6])
a) 3 b) 6 c) Error d) 4
[8] What will be output for the following code?
Import numpy as np
a = np.array ([[1,2,3],[0,1,4]])
Print (a, size)
a) 4 b) 1 c) 5 d) 6
[9] wthat will be the output of the following Python code?
i=1
while true;
if i%3==0;
break
print (i)
i+1=0
c) None of the
a) 123 b) 12 d) Error
mentioned
a) True b) False
[23] What is a correct syntax to return the first row in a Pandas dataframe?
a) df.add(“City”)
b) df[“city”]=[“Mans”,”cairo”,”Alex”]
c) df[“city”]=[“Mans”,”cairo”,”Alex”,”Aswan”]
d) df.iloc[“city”]=[“ Mans”,”cairo”,”Alex”]
[26] For the following code:
What is the correct syntax to create a dataframe?
a) df=pd.dataframe(data)
b) df=pd.read(data)
c) df=pd.DataFrame(data,index=[1,2,3,4],columns==[“A”,”B”,”C”])
d) df=pd.DataFrame(data)
[27] For a dataframe df, what is the output of the following command df.head()
a) Returns information about the dataframe b) Returns total number of rows in the dataframe
c) Returns the first 5 rows of the dataframe d) Returns columns names in the dataframe
[28] for the following dataframe df:
What is the output of the following code?
New_df=df.drop(“city”,inplace=”False”) ≤1
a) Error
b) drop City column and save the result in both df and new_df
c) delete only the content of City column
d) drop City column and save the result in new_df
P a g e |14 Old Quiz AI
[29] What is a correct method to find relationships between column in a dataframe?
a) 1 b) 0.5 c) 0 d) 5
️ شكرا لكل اليل ساعدنا يف تجميع امتحان الميدتيرم وان شاء الله ناليق األسئلة كلها ف االمتحان