Shared Flashcard Set

Details

C++
Revision for C++
12
Computer Science
Undergraduate 1
02/07/2025

Additional Computer Science Flashcards

 


 

Cards

Term
The program execution in C++ begins with the ______ function.
Definition
main
Term
True or False: C++ is a case-sensitive programming language.
Definition
True
Term

Which header file is required for basic input/output operations in C++?

A) <cstdio>

B) <iostream>

C) <stdlib.h>

D) <conio.h>

Definition

B) <iostream>

Term
The symbol << is used for ______ in C++.
Definition
output
Term

Which of the following correctly declares an integer variable named age?

A) int age;

B) integer age;

C) Age int;

D) int: age;

Definition
A) int age;
Term
True or False: A variable in C++ must be declared before it is used.
Definition
True
Term

Which operator is used to assign a value to a variable in C++?

  • A) ==
  • B) =
  • C) :=
  • D) =>
Definition
B) =
Term
The expression 5 % 2 = ?
Definition
1
Term
A C++ statement ends with a ______.
Definition
semicolon (;)
Term
The logical AND operator in C++ is represented by ______.
Definition
&&
Term
The logical OR operator in C++ is represented by ||
Definition
True
Term
To insert a single-line comment in C++, you begin the line with ______.
Definition
//
Supporting users have an ad free experience!