Search Header Logo

10th-1 TEST Q1

Authored by Random Student

Instructional Technology

10th Grade

10th-1 TEST Q1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Who developed the C++ programming language?

Linus Torvalds
Guido van Rossum
James Gosling
Dennis Ritchie
Bjarne Stroustrup

2.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

C++ is an extension of which programming language?

Swift
Python
Ruby
Java
C

3.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

What symbol is used to end a statement in C++?

.
:
!
?
;

4.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which of the following is the correct header for every C++ program?

#include <stdio.h>

#include <iostream>

using namespace std;

#import <iostream>

using namespace std;

#include conio.h

5.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

What does the line using namespace std; do?

It restricts access to the standard library names.
It creates a new namespace called std.
It allows access to the standard library names without the 'std::' prefix.
It imports all libraries from the C++ standard.
It defines a new standard for C++ programming.

6.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which of the following displays “Hello World” on the screen in C++?

int main() { printf('Hello World'); return 0; }

int main() { cout << 'Hello World'; }

int main() { cout << "Hello World"; return 1; }

int main() { print('Hello World'); return 0; }

int main() { cout << 'Hello World'; return 0; }

7.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which of the following is a single-line comment in C++?

$Comment

# comment
/* comment */

// This is a comment

//

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?