
AppsLab_Q2
Authored by Peter Milovcik
Computers
10th Grade - Professional Development
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pomocou ktorého príkazu je možné vytvoriť prázdny zoznam reťazcov?
var list = new List<string>{ "A", "B", "C" };
var list = new List<string>;
var list = new List<string>();
var list = new List<string>{};
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ktorá odpoveď správne zapisuje foreach cyklus?
foreach (item in items) { /* .. */ }
foreach (var item of items) { /* .. */ }
foreach (var item in items) { /* .. */ }
foreach (item of items) { /* .. */ }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Akým príkazom je možne pridať reťazec do listu, ktorý je typu List<string>?
list.AddRange("A");
list += "A";
list.Insert("A");
list.Add("A");
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pomocou akého príkazu je možné zistiť v liste typu List<string> index reťazca "A"?
list.IndexOf("A");
list.Index("A");
list["A"];
list.GetIndex("A");
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Akým spôsobom je možné zistiť počet záznamov v liste, ktorý je typu List<int>?
int n = list.Length;
int n = list.Count();
int n = list.Count;
int n = list.Length();
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Akým spôsobom je možné vyprázdniť zoznam, ktorý je typu List<double>?
list.Destroy();
list.RemoveAll();
list.Clear();
list.Clean();
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Akým spôsobom je možné zistiť, či zoznam obsahuje zadaný záznam?
list.Has(item);
list.Contains(item);
list.Exists(item);
list.Contain(item);
Access all questions and much more by creating a free account
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
Already have an account?