bac INFO - teste de antrenament nr. 4 + 5 - 2021 - subiect I
Quiz
•
Education, Computers
•
12th Grade
•
Practice Problem
•
Medium
Emilia Felicia
Used 19+ times
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Indicați o expresie C/C++ care are valoarea 1 dacă şi numai dacă numerele naturale memorate în variabilele întregi x și y sunt pare, consecutive.
(x-y==2) && (y-x==2)
(x==2) && (y==4)
x-y==2
((x-y==2) || (y-x==2)) && (x%2==0)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Subprogramul f este definit mai jos. Indicați ce se afișează în urma apelului de mai jos. f(7552021,1);
void f (int n, int k)
{ if (n!=0)
{ f(n/10,k+1);
if(n%10==k) cout<<k; | printf(”%d”,k);
}
}
7521
1257
21
1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Utilizând metoda backtracking se generează toate posibilitățile de a scrie numărul 10 ca sumă de numere prime. Soluțiile generate sunt, în această ordine: 2+2+2+2+2, 2+2+3+3, 2+3+5, 3+7, 5+5. Folosind aceeași metodă se generează toate posibilitățile de a scrie numărul 9 ca sumă de numere prime. Indicați a treia soluție generată.
2+2+2+3
2+2+5
2+7
3+3+3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Un arbore cu rădăcină, cu 9 noduri, numerotate de la 1 la 9, este reprezentat prin vectorul de „tați” (8,7,6,5,7,7,8,0,8). Indicați toți descendenții nodului 7.
2,5,6
2,3,5,6
2,4,5,6
2,3,4,5,6
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Un graf neorientat are 6 noduri, numerotate de la 1 la 6, și muchiile [1,2], [1,3], [2,3], [2,4], [2,5], [2,6], [3,4], [4,5]. Indicați numărul nodurilor care au gradul un număr impar.
5
4
3
2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Variabilele x și y sunt de tip întreg, x memorând valoarea 8, iar y valoarea 6. Indicați expresia C/C++ care are valoarea 0.
3*x-4*y==0
(x+y)/2 > x%y+1
!(x/2+2==y)
x-y+3!=0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Subprogramul f este definit mai jos. Indicați valoarea f(38627).
int f(int n)
{ int c;
if (n==0) return 9;
c=f(n/10); if (n%10<c) return n%10;
return c;
}
2
3
7
8
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Introducción Redes Tele1 IB
Quiz
•
10th Grade - University
13 questions
citación apa
Quiz
•
9th Grade - Professio...
10 questions
costituzione
Quiz
•
5th - 12th Grade
10 questions
Carpon
Quiz
•
12th Grade
10 questions
What is water
Quiz
•
KG - Professional Dev...
11 questions
Test evaluation word SP3S1
Quiz
•
12th Grade
10 questions
scratch
Quiz
•
11th - 12th Grade
12 questions
Υλικό Υπολογιστή - Κεφ.2
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Education
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
34 questions
Geometric Terms
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
16 questions
Proportional Relationships And Constant Of Proportionality
Quiz
•
7th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
15 questions
Identify Triangle Congruence Criteria
Quiz
•
9th - 12th Grade
