Search Header Logo

Programming Fundamentals

Authored by Jahanzeb Hafeez

Information Technology (IT)

University

Used 1+ times

Programming Fundamentals
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

2value

value_2

int

for

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which header file is required for cout and cin?

A) stdio.h

B) iostream

C) conio.h

D) stdlib.h

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the default value of an uninitialized local variable in C++?

0

Garbage value

NULL

-1

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which data type is best for storing a single character?

string

char

char[]

bool

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will sizeof(int) typically return?

1

2

4

Depends on compiler

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which type conversion is done automatically?

Explicit

Implicit

Manual

Casting only

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the result of 10 / 3 in integer division?

A) 3.33

B) 3

C) 4

D) Error

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?