C++ Pre-Test

C++ Pre-Test

University

25 Qs

quiz-placeholder

Similar activities

OOP - Pretest

OOP - Pretest

University

20 Qs

Quiz Pemrograman Lanjut 2022/2023

Quiz Pemrograman Lanjut 2022/2023

University

20 Qs

C - Structures

C - Structures

University

20 Qs

Java - Revisão I

Java - Revisão I

University

20 Qs

C++ Quiz

C++ Quiz

University

20 Qs

ITSA Selection Round 1

ITSA Selection Round 1

University

27 Qs

Tecnologías de programación-Competencia 1-Introducción-Métodos

Tecnologías de programación-Competencia 1-Introducción-Métodos

University

20 Qs

Java Coding Questions

Java Coding Questions

University

20 Qs

C++ Pre-Test

C++ Pre-Test

Assessment

Quiz

Computers

University

Hard

Created by

AMBILI S

Used 1+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to output "Hello World" in C++?


System.out.println("Hello World");

print ("Hello World");

cout << "Hello World";

Console.WriteLine("Hello World");

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is C++?

a) C++ is an object oriented programming language

b) C++ is a procedural programming language

c) C++ supports both procedural and object oriented programming language

d) C++ is a functional programming language

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used for comments in C++?

a) /* comment /

b) // comment /

c) // comment

d) both // comment or /* comment */

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct identifier in C++?

a) VAR_1234

b) $var_name

c) 7VARNAME

d) 7var_name

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable with the numeric value 5?


x = 5;

double x = 5;

num x = 5

int x = 5;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if the following program is executed in C and C++?

#include <stdio.h> int main(void) { int new = 5; printf("%d", new); }

a) Error in C and successful execution in C++

b) Error in both C and C++

c) Error in C++ and successful execution in C

d) A successful run in both C and C++

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following type is provided by C++ but not C?

a) double

b) float

c) int

d) bool

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?