C++ klases (1)

Quiz
•
Computers
•
University
•
Medium
Vija Vagale
Used 2+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Funkcija, kas neko neatgriež sākas ar
int
void
iekavām
funkcijas nosaukumu
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Funkcija, kas atgriež veselu skaitli, sākas ar
int
string
void
funkcijas nosaukumu
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class Monkey{
string name;
int age;
public:
void setName(string n){
name = n;
}
};
Kuru variantu jāizvēlas, lai klases Monkey objektam mon piešķirtu vārdu "Sir Monkey"?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ko jāievieto funkcijas sākumā, lai tā strādātu pareizi?
_____ function ( ) {
string greeting = "Welcome to my game";
return greeting;
}
string
void
int
char
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class Player{
string name;
int age;
Player(string n, int a){
name = n;
age = a;
}
};
int main(){
_________________
}
Izveidot jaunu Player objektu
player name();
Player user("John", 13);
Player user(John, "13");
Player user(name, age);
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ko jāieraksta funkcijas sakumā?
_____ function ( int num) {
return num * 2;
}
string
void
int
char
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class Banana{
string color;
Player(string c){
color = c;
}
};
int main(){
_________________
}
Izveidot klases Banana objektu:
banana name(color);
Banana sample("yellow", 1);
Banana sample("yellow");
Banana sample();
Similar Resources on Wayground
10 questions
Latihan1

Quiz
•
University
10 questions
Java Programming Basics

Quiz
•
University
11 questions
Java Quizz 2

Quiz
•
University
10 questions
Pemrograman C++ - 1

Quiz
•
University
6 questions
Tec 1 Quiz 1

Quiz
•
University
10 questions
C++ Fundamentals

Quiz
•
University
10 questions
Java quiz 1

Quiz
•
University
10 questions
AFP Midtvejsevaluering

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University