Care dintre următoarele variante de mai jos, declară corect o variabilă x ce poate memora valori reale?
ELEMENTE DE BAZA ALE LIMBAJULUI C++

Quiz
•
Specialty, Computers
•
10th Grade
•
Hard
Nataly Madan
Used 36+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
float x;
double x;
unsigned float x;
x: float;
x: double;
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Care dintre liniile de program realizează inițializarea corectă a variabilei x la declarare?
int x==2;
x:int=2;
int x=2;
int x 2;
x=2:int;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Care dintre următoarele variante de mai jos definește o constantă simbolică PI cu valoarea 3.14, folosind directive-preprocesor “#define” .
#define 3.14 PI;
#define PI 3.14;
#define float PI 3.14;
#define PI=3.14;
#define float PI=3.14;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Care dintre programele de mai jos nu conțin erori și afișează cuvintele pe câte un rând?
#include <iostream.h>
void main() ;
{cout<<”Program”;
cout<<” \n”<<”simplu”;}
#include <iostream.h>
void main ()
{cout<<”Program \n”;
cout<<”simplu”;}
#include <iostream.h>
void main ()
{cout<<”Program \nsimplu”;
cout<<” \n”;}
#include <iostream.h>
void main ()
{cout<<”Program”;
cout<<simplu”<<” \n”;}
nici unul din programele anterioare.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Care dintre valorile de mai jos sunt constante întregi scrise corect ?
123
‐17
+843
0154
‐ ‐ 67
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fie variabilele întregi a=1, b=2, c=3, d=4. Care dintre construcțiile de mai jos sunt expresii scrise corect, cu valoarea zero ?
!d
a+b<d
a*b+c
a=b<c
(a<b) != (b<c)
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Care dintre următoarele afirmații sunt adevărate ?
operatorul de atribuire este " == ";
operatorul care realizează "SAU logic" între două expresii este " || ";
" != " este un operator logic;
a%b reprezintă restul împărțirii întregi a lui a la b;
într‐o expresie, operatorii relaționali se execută înaintea celor aritmetici;
Create a free account and access millions of resources
Similar Resources on Quizizz
17 questions
C++ kvizić

Quiz
•
10th Grade
17 questions
Elementele de bază ale limbajului C++

Quiz
•
10th Grade
15 questions
Structuri neomogene

Quiz
•
9th - 12th Grade
20 questions
BAC_Info_Stiinte_01

Quiz
•
9th - 12th Grade
10 questions
Prezentări (Google Slides)

Quiz
•
6th - 12th Grade
20 questions
Documente Web. Formatul HTML

Quiz
•
9th Grade - University
12 questions
C++ References

Quiz
•
6th - 12th Grade
16 questions
Structuri repetitive în C++

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Specialty
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University