Search Header Logo

Topic 1

Authored by Norhasliza Nor

Computers

University

Used 1+ times

Topic 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax used for input in C++?

printf

cin<<

cout>>

scanf

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for declaring a variable in C++?

int x;

variable x;

declare x as integer;

x = int;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which header file is used for input and output in C++?

iostream.h

stdio.h

inputoutput.h

io.h

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to include a library in C++?

#include <library>

include.library

library.include

<library>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

C++ is a

Case sensitive language

Case insensitive language

Only lowercase letter identifier

None of them

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A programmer can create custom header files that must be end with

.ios extension

.h extension

.l extension

.head extension

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An error that causes the program to terminate immediately without having successfully performed its job, is called

syntax error

runtime error

logical error

None of them

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?

Discover more resources for Computers