Topic 1

Topic 1

University

10 Qs

quiz-placeholder

Similar activities

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Java Methods & Constructors

Java Methods & Constructors

University

15 Qs

CD QUIZ S6 25-3-22

CD QUIZ S6 25-3-22

University

10 Qs

C Quiz

C Quiz

University

12 Qs

Python

Python

University

8 Qs

NME - Programming Languages

NME - Programming Languages

University

10 Qs

Common errors in C programming

Common errors in C programming

University

15 Qs

PF101 - Pretest 1

PF101 - Pretest 1

University

10 Qs

Topic 1

Topic 1

Assessment

Quiz

Computers

University

Easy

Created by

Norhasliza Nor

Used 1+ times

FREE Resource

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

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?