What will be the output of the following C++ program?
#include <stdio.h>
#include<iostream>
using namespace std;
int array1[] = {1200, 200, 2300, 1230, 1543};
int array2[] = {12, 14, 16, 18, 20};
int temp, result = 0;
int main()
{
for (temp = 0; temp < 5; temp++)
{
result += array1[temp];
}
for (temp = 0; temp < 4; temp++)
{
result += array2[temp];
}
cout << result;
return 0;
}
علم البيانات | DS2 Quizes
What will be the output of the following C++ program? #include <stdio.h> #include<iostream> using namespace std; int array1[] = {1200, 200, 2300, 1230, 1543}; int array2[] = {12, 14, 16, 18, 20}; int temp, result = 0; int main() { for (temp…
What will be the output of the following C++ program?
Anonymous Quiz
2%
6522
24%
12200
42%
6533
32%
6553
What is the scope of the variable declared in the user defined function?
Anonymous Quiz
5%
whole program
17%
the main function
17%
header section
61%
only inside the {} block
👍2🤔1
Which of the following is important in a function?
Anonymous Quiz
11%
Function name
6%
Return type
35%
Both return type and function name
49%
The return type, function name and parameter list
What will be the output of the following C++ program?
#include <iostream>
using namespace std; int fun(int=0, int = 0); int main() { cout << fun(5); return 0; } int fun(int x, int y) { return (x+y); }
#include <iostream>
using namespace std; int fun(int=0, int = 0); int main() { cout << fun(5); return 0; } int fun(int x, int y) { return (x+y); }
Anonymous Quiz
2%
-5
62%
5
22%
0
14%
10
What's the output of the following code?
#include <iostream>
using namespace std; int main(int argc, char *argv[]) { char s0[4]={'D','r','.'}; char s1[5]="Musa"; char s2[7]={"Ghorab"}; cout << s0 << " " << s1 << " " << s2 << "\n"; return 0; }
#include <iostream>
using namespace std; int main(int argc, char *argv[]) { char s0[4]={'D','r','.'}; char s1[5]="Musa"; char s2[7]={"Ghorab"}; cout << s0 << " " << s1 << " " << s2 << "\n"; return 0; }
Anonymous Quiz
7%
Ghorab
10%
Musa
80%
Dr. Musa Ghorab
3%
Dr.
كل هذه الأسئلة من نماذج سابقة للدكتور #موسى_غراب
❤1
What is the primary goal of Data Science?
Anonymous Quiz
34%
Data Visualization
18%
Data Cleaning
32%
Predictive Analytics
16%
Extracting Data from APIs
Which programming language is commonly used for Data Science tasks?
Anonymous Quiz
13%
Java
53%
Python
33%
C++
3%
JavaScript
Which step in the Data Science process involves understanding and preparing the data for analysis?
Anonymous Quiz
38%
Data Collection
25%
Data Visualization
22%
Data Cleaning
16%
Model Building
What is the term for a data point that falls far from the rest of the data in a dataset?
Anonymous Quiz
21%
Median
14%
Mean
50%
Outlier
14%
Variance
Which of the following is NOT a type of machine learning algorithm commonly used in Data Science?
Anonymous Quiz
8%
Linear Regression
32%
K-Means Clustering
24%
Decision Trees
36%
Object-Oriented Programming
Which technology is often used to process and analyze large-scale data sets in Data Science?
Anonymous Quiz
28%
Hadoop
28%
SQL
31%
Python
14%
HTML
What does the acronym EDA stand for in Data Science?
Anonymous Quiz
48%
Exploratory Data Analysis
28%
Effective Data Algorithms
16%
Extracted Data Aggregation
8%
Efficient Data Assessment
Which of the following is NOT a key skill required for a Data Scientist?
Anonymous Quiz
56%
Storytelling
12%
Database Administration
20%
Machine Learning
12%
Data Visualization
Which step in the Data Science process involves selecting the appropriate model and algorithm for analysis?
Anonymous Quiz
4%
Data Cleaning
32%
Data Visualization
36%
Data Collection
28%
Model Building
In Data Science, what is the term for a dataset that contains both input features and output labels?
Anonymous Quiz
26%
Test Data
35%
Training Data
32%
Validation Data
6%
Unlabeled Data
What is the primary focus of Data Science?
Anonymous Quiz
21%
Data Cleaning
14%
Data Visualization
48%
Data Analysis
17%
Data Storage
❤1