Variables and cin

Variables and cin

University

10 Qs

quiz-placeholder

Similar activities

Cuestionario sobre Formularios en HTML

Cuestionario sobre Formularios en HTML

11th Grade - University

11 Qs

QuizIzz

QuizIzz

University

10 Qs

Search questions from Quizizz Library

Search questions from Quizizz Library

University

13 Qs

Эльвира

Эльвира

University

15 Qs

SOAL SUMATIF 1_SMA NEGERI 1 KOTA TERNATE

SOAL SUMATIF 1_SMA NEGERI 1 KOTA TERNATE

10th Grade - University

5 Qs

Bend Lang

Bend Lang

University

8 Qs

C++ Structuri repetitive

C++ Structuri repetitive

8th Grade - University

7 Qs

Week2 上周知识点回顾

Week2 上周知识点回顾

University

10 Qs

Variables and cin

Variables and cin

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Fatma Metwally

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following is a valid C++ variable name?

my_variable

1var

student name

var1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid C++ keyword?

int

myvariable

123

hello

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid C++ comment?

a. // This is a comment

b. / This is a multi-line comment /

c. # This is a comment

Both a) and b)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of cin in C++?

The purpose of 'cin' is to display output to the user.

'cin' is used to declare variables in C++.

'cin' is a function that performs calculations.

The purpose of 'cin' in C++ is to read input from the user.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly takes input for two integers a and b?

cin(a, b);

cin >> a >> b;

cin << a, b;

cin >> a, b;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Predict the Output

  1. if input: x=4 y =7

You entered: 7 and 4

You entered: 4 and 7

13

error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for assignment in C++?

-=

+=

=

==

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?