Fundamentals of C and C++ Programming

Fundamentals of C and C++ Programming

University

15 Qs

quiz-placeholder

Similar activities

DAP225 Quiz 01

DAP225 Quiz 01

University

10 Qs

Mastering Python Loops

Mastering Python Loops

University

10 Qs

A & R Week 7 Industry session assessment

A & R Week 7 Industry session assessment

University

10 Qs

C Position Flashcards

C Position Flashcards

KG - University

16 Qs

Hopper Race Code Mastery Quiz

Hopper Race Code Mastery Quiz

4th Grade - University

10 Qs

Virtual Instrumentation

Virtual Instrumentation

University

20 Qs

EC - POP QUIZ CHAP 3

EC - POP QUIZ CHAP 3

University

12 Qs

Quiz Planet (Round-1)

Quiz Planet (Round-1)

University

15 Qs

Fundamentals of C and C++ Programming

Fundamentals of C and C++ Programming

Assessment

Quiz

Other

University

Easy

Created by

DILEEP KUMAR SAHU

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of a compiler?

To optimize high-level code for better performance.

To debug high-level code for errors.

To execute high-level code directly without translation.

The primary purpose of a compiler is to translate high-level code into machine code.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between C and C++.

C is a high-level language; C++ is a low-level language.

C supports classes; C++ does not support classes.

C is procedural; C++ is object-oriented.

C is used for system programming; C++ is only for web development.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in programming?

A variable is a command that executes a specific task in the program.

A variable is a symbolic name for a storage location in memory that can hold a value and can be changed during program execution.

A variable is a fixed value that cannot be changed during program execution.

A variable is a type of function that performs calculations.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in C/C++?

= ;

declare ;

= ;

To declare a variable in C/C++, use the syntax: ; = ;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function and why is it used?

A function is a reusable block of code that performs a specific task.

A function is a method for creating user interfaces.

A function is a graphical representation of data.

A function is a type of variable that stores data.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the main() function in C/C++?

The main() function is where all the functions are declared.

The main() function is responsible for memory management.

The main() function is used for defining global variables.

The main() function is the entry point of a C/C++ program.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are data types in C/C++?

Primitive types, composite types, functional types

Integer types, floating-point types, string types

Static types, dynamic types, abstract types

Basic types, derived types, user-defined types

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?