Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
21 views
3 pages
Study-Guide-for-Creative-Tech
Uploaded by
Donald richie Cubero
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download now
Download
Save Study-Guide-for-Creative-Tech For Later
Download
Save
Save Study-Guide-for-Creative-Tech For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
21 views
3 pages
Study-Guide-for-Creative-Tech
Uploaded by
Donald richie Cubero
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download now
Download
Save Study-Guide-for-Creative-Tech For Later
Carousel Previous
Carousel Next
Download
Save
Save Study-Guide-for-Creative-Tech For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 3
Search
Fullscreen
Study Guide
1. Which of the following is the correct way to start a C++ program?
Programs start with #include <iostream> to include the input/output library.
The main() function is required as the entry point.
2. What is the file extension of a C++ program?
C++ source files typically use the .cpp extension.
3. Which library is used for input and output in C++?
The iostream library is used for input (cin) and output (cout).
4. What is the standard namespace in C++?
The std namespace is the standard namespace and avoids prefixing std:: for objects like
cout and cin.
5. How do you print text in C++?
Use cout << "Text"; for outputting text.
6. Which symbol is used to end a statement in C++?
Statements in C++ end with a semicolon (;).
7. What does "int" represent in C++?
The int data type represents integer numbers.
8. What does the keyword "return" do in a function?
It sends a value back to the caller and ends the function.
9. What is the output of the following code snippet?
cout << "Hello, World!";
The output is Hello, World!.
10. Which of the following is a valid C++ comment?
Use // for single-line comments or /* */ for multi-line comments.
11. What is "cin" used for?
The cin object is used for taking input from the user.
12. How do you declare a variable in C++?
Declare variables with the syntax dataType variableName;.
13. Which of the following is NOT a valid data type in C++?
word is not a valid data type in C++.
14. What is the default value of an uninitialized variable in C++?
Uninitialized variables have a garbage value.
15. Which loop is guaranteed to execute at least once?
The do-while loop executes at least once.
16. How do you create a constant in C++?
Use const variableName; to declare constants.
17. What does "bool" represent in C++?
The bool data type represents Boolean values (true or false).
18. What is the use of the "if" statement in C++?
It is used to make decisions based on conditions.
19. How do you start a block of code in C++?
Use curly braces {} to define a block of code.
20. What is the output of the following code snippet?
int x = 5;
cout << x;
The output is 5.
21. Which header file is essential for input/output operations in C++?
The iostream header file is required for input/output operations.
22. What does the following code do?
int arr[5];
Declares an integer array of size 5.
23. Which keyword is used to define a function in C++?
Functions can be defined using the syntax returnType functionName().
24. What is the output of the following code snippet?
int a = 10, b = 20;
cout << a + b;
The output is 30.
25. What will the following code produce?
int x = 10;
x++;
cout << x;
The output is 11.
26. Which keyword is used to allocate memory dynamically in C++?
Use new to allocate memory dynamically.
27. Which of the following is NOT a feature of C++?
C++ is not platform-independent.
28. What symbol is used to declare a pointer in C++?
Use * to declare pointers.
29. What is the purpose of the "break" statement?
It terminates a loop or switch statement.
30. What is the output of the following code?
for (int i = 0; i < 3; i++) {
cout << i;
}
The output is 012.
31. Which of the following is a valid way to declare a string in C++?
Strings can be declared as string s = "Hello"; or char s[] = "Hello";.
32. What keyword is used to create an object in C++?
Use the new keyword to create objects dynamically.
33. What is the typical size of an "int" variable in most systems?
The size of an int is typically 4 bytes.
34. What does the keyword "class" define in C++?
A class is a blueprint for creating objects.
35. What is the purpose of the "continue" statement in a loop?
It skips the current iteration and moves to the next one.
36. Which operator is used to access members of a class in C++?
Use the dot operator (.) or arrow operator (->) for accessing class members.
37. How do you write an exception handler in C++?
Use try and catch blocks for exception handling.
38. What is the correct syntax for a "for" loop in C++?
Use the syntax for (int i = 0; i < n; i++) { // code }.
39. What is the purpose of the "delete" keyword in C++?
The delete keyword frees dynamically allocated memory.
40. What is the purpose of the "private" access specifier in C++?
The private access specifier restricts access to class members.
You might also like
Economics of Artificial Intelligence in Cybersecurity
PDF
No ratings yet
Economics of Artificial Intelligence in Cybersecurity
5 pages
BP 2073 Oracle On AHV
PDF
No ratings yet
BP 2073 Oracle On AHV
31 pages
ICT Questions
PDF
No ratings yet
ICT Questions
2 pages
Structured_Programming_Exam_New
PDF
No ratings yet
Structured_Programming_Exam_New
4 pages
C++ Viva Questions
PDF
No ratings yet
C++ Viva Questions
6 pages
C++ Questions With Answers by Clinton
PDF
No ratings yet
C++ Questions With Answers by Clinton
17 pages
C++ MCQ - qb
PDF
No ratings yet
C++ MCQ - qb
31 pages
QUESTION_BANK_C++
PDF
No ratings yet
QUESTION_BANK_C++
22 pages
List of C++ Multiple-choice Questions and Answers
PDF
No ratings yet
List of C++ Multiple-choice Questions and Answers
63 pages
Pretest (Finals)
PDF
No ratings yet
Pretest (Finals)
18 pages
Who Invented C++
PDF
No ratings yet
Who Invented C++
11 pages
Basic Programming Questions
PDF
No ratings yet
Basic Programming Questions
7 pages
CS UNIT 2
PDF
No ratings yet
CS UNIT 2
8 pages
New DOC Document
PDF
No ratings yet
New DOC Document
8 pages
C++ Task2
PDF
No ratings yet
C++ Task2
5 pages
C++ Q paper with answer
PDF
No ratings yet
C++ Q paper with answer
2 pages
CSC201 past questions and answers
PDF
No ratings yet
CSC201 past questions and answers
17 pages
Quiz 1 C++
PDF
No ratings yet
Quiz 1 C++
8 pages
Computer Studies Viva Voce
PDF
No ratings yet
Computer Studies Viva Voce
7 pages
c++++++++.docx.86feb0f717e192e5a7ccdea52957ce35.bak-1
PDF
No ratings yet
c++++++++.docx.86feb0f717e192e5a7ccdea52957ce35.bak-1
21 pages
Basic C++ Quiz
PDF
No ratings yet
Basic C++ Quiz
2 pages
C++_CBT_Practice_Questions
PDF
No ratings yet
C++_CBT_Practice_Questions
5 pages
C++ Interview Questions & Answers: BY HK2002
PDF
No ratings yet
C++ Interview Questions & Answers: BY HK2002
13 pages
MCQS C++
PDF
No ratings yet
MCQS C++
57 pages
C++ Viva Questions
PDF
No ratings yet
C++ Viva Questions
8 pages
C++ Question Bank
PDF
100% (1)
C++ Question Bank
32 pages
Practice Questions Computer Programing II
PDF
No ratings yet
Practice Questions Computer Programing II
9 pages
Structured Programming Exam Full
PDF
No ratings yet
Structured Programming Exam Full
4 pages
C++ OOP MCQ
PDF
No ratings yet
C++ OOP MCQ
3 pages
Exit Exam CPP - 2
PDF
No ratings yet
Exit Exam CPP - 2
23 pages
reviewer for comp programming 1 final exam
PDF
No ratings yet
reviewer for comp programming 1 final exam
5 pages
ICT Unit-6 Worksheet 3rd Round C++
PDF
No ratings yet
ICT Unit-6 Worksheet 3rd Round C++
10 pages
Important Question
PDF
No ratings yet
Important Question
39 pages
mcq c--
PDF
No ratings yet
mcq c--
119 pages
C++ Question Bank
PDF
No ratings yet
C++ Question Bank
8 pages
C++ Test
PDF
No ratings yet
C++ Test
3 pages
C - C++ by Mahad
PDF
No ratings yet
C - C++ by Mahad
33 pages
C++
PDF
No ratings yet
C++
5 pages
MCQ of CPP
PDF
No ratings yet
MCQ of CPP
12 pages
C++ common questions
PDF
No ratings yet
C++ common questions
11 pages
C++ Interview
PDF
No ratings yet
C++ Interview
6 pages
Home C++ Q & A
PDF
No ratings yet
Home C++ Q & A
80 pages
MCQs On C++
PDF
No ratings yet
MCQs On C++
7 pages
C++ MCQ Based On Learning Outcomes
PDF
No ratings yet
C++ MCQ Based On Learning Outcomes
8 pages
MCQ 2022
PDF
No ratings yet
MCQ 2022
16 pages
I.Choose The Correct Answer: 35 X 1 35: Optim Test - 3
PDF
No ratings yet
I.Choose The Correct Answer: 35 X 1 35: Optim Test - 3
3 pages
C++ MCQs
PDF
No ratings yet
C++ MCQs
21 pages
Model Exam - Introduction To Computing
PDF
No ratings yet
Model Exam - Introduction To Computing
12 pages
Document
PDF
No ratings yet
Document
19 pages
C++
PDF
No ratings yet
C++
9 pages
Loki Oop
PDF
No ratings yet
Loki Oop
4,280 pages
C++
PDF
No ratings yet
C++
2 pages
MCQ and T (Or) F C++
PDF
No ratings yet
MCQ and T (Or) F C++
10 pages
SBL Part 1 Viva Questions
PDF
100% (2)
SBL Part 1 Viva Questions
11 pages
Chapter 1 To 4
PDF
No ratings yet
Chapter 1 To 4
50 pages
Here Are 1000 MCQs On C
PDF
No ratings yet
Here Are 1000 MCQs On C
18 pages
Pynux Soft Solutions
PDF
No ratings yet
Pynux Soft Solutions
2 pages
California Baptist University, Online & Professional Studies
PDF
No ratings yet
California Baptist University, Online & Professional Studies
9 pages
Pfmcqs
PDF
No ratings yet
Pfmcqs
8 pages
Programming Fundamentals Exit Exam (2)
PDF
No ratings yet
Programming Fundamentals Exit Exam (2)
11 pages
C++ Learn in 24 Hours
From Everand
C++ Learn in 24 Hours
Alex Nordeen
No ratings yet
C Programming
From Everand
C Programming
Netra
No ratings yet
gamification
PDF
No ratings yet
gamification
10 pages
Research C1
PDF
No ratings yet
Research C1
3 pages
gamification (5)
PDF
No ratings yet
gamification (5)
10 pages
MATH Q3 M1
PDF
No ratings yet
MATH Q3 M1
5 pages
Creating Research Title
PDF
No ratings yet
Creating Research Title
12 pages
Game
PDF
No ratings yet
Game
1 page
central_pneumatic_93785_air_compressor_pump_manual
PDF
No ratings yet
central_pneumatic_93785_air_compressor_pump_manual
20 pages
Aes-Tag: Small and Secure Transponder For Vehicle Keys
PDF
No ratings yet
Aes-Tag: Small and Secure Transponder For Vehicle Keys
2 pages
Testing Best Practice
PDF
No ratings yet
Testing Best Practice
14 pages
SAP ABAP RAP Reshaping Inventory Management 1702971397
PDF
No ratings yet
SAP ABAP RAP Reshaping Inventory Management 1702971397
24 pages
Living in Information Technology Era
PDF
No ratings yet
Living in Information Technology Era
14 pages
AIRE-Platform-White-Paper-final-draft-2.6
PDF
No ratings yet
AIRE-Platform-White-Paper-final-draft-2.6
48 pages
Hospital Management System
PDF
No ratings yet
Hospital Management System
50 pages
HEF4060B: 1. General Description
PDF
No ratings yet
HEF4060B: 1. General Description
14 pages
Honeywell PW6K1R2Br
PDF
No ratings yet
Honeywell PW6K1R2Br
4 pages
ICMEM 2016 Paper 219
PDF
No ratings yet
ICMEM 2016 Paper 219
20 pages
Syll Aids
PDF
No ratings yet
Syll Aids
57 pages
Final Mini V3 VINO
PDF
No ratings yet
Final Mini V3 VINO
45 pages
Titmus 2s Aparato de Revisin de La Vista
PDF
100% (1)
Titmus 2s Aparato de Revisin de La Vista
3 pages
Nitesh CET Admit Card
PDF
No ratings yet
Nitesh CET Admit Card
3 pages
E-commerce
PDF
No ratings yet
E-commerce
2 pages
Online Homework Guru Reviews
PDF
100% (2)
Online Homework Guru Reviews
4 pages
Sample Resume
PDF
No ratings yet
Sample Resume
3 pages
Cycle 1 Only 10 Programs
PDF
No ratings yet
Cycle 1 Only 10 Programs
1 page
Capitulo 8 Testing The Programs Pfleeger 4aed
PDF
No ratings yet
Capitulo 8 Testing The Programs Pfleeger 4aed
50 pages
crash_report
PDF
No ratings yet
crash_report
110 pages
July2024 Marathi
PDF
No ratings yet
July2024 Marathi
36 pages
Chennai Mathematical Institute: For Office Use Only
PDF
No ratings yet
Chennai Mathematical Institute: For Office Use Only
7 pages
Research Methodology
PDF
No ratings yet
Research Methodology
2 pages
Greenfoot Debuglog
PDF
No ratings yet
Greenfoot Debuglog
33 pages
6.DC Motor Interface
PDF
No ratings yet
6.DC Motor Interface
51 pages
Lec 1
PDF
No ratings yet
Lec 1
32 pages
Japan AuditReport Umlaut
PDF
No ratings yet
Japan AuditReport Umlaut
8 pages
Open Source Intelligence (OSINT)
PDF
No ratings yet
Open Source Intelligence (OSINT)
4 pages