
C++ klases (1)
Authored by Vija Vagale
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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();
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?
Similar Resources on Wayground
10 questions
Pengantar Coding
Quiz
•
University
12 questions
OOP- Class+Object
Quiz
•
University
10 questions
Control Operations and Instruction Sets Quiz
Quiz
•
University
10 questions
Unit 24 - Java Basics
Quiz
•
University
10 questions
Adobe Photoshop
Quiz
•
University
11 questions
Access
Quiz
•
10th Grade - University
10 questions
Relational Database Model
Quiz
•
University
10 questions
Emerging technologies
Quiz
•
6th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade