stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Algorithmization quiz 50 questions Flashcards | StudBud
Explore
/
Algorithmization quiz 50 questions
Which of these is a composite data type?
What is an algorithm?
Algorithmization quiz 50 questions
51 terms
·
StudBud Administration
·
32 plays
Imported from external platform
Flashcards
51 cards
F
Practice quiz
P
Host live
L
Questions
51
Answers
1
What is an algorithm?
A sequence of actions to solve a problem
A data file
A description of a sequence of actions to solve a problem
A high-level programming language
2
Which of these is a composite data type?
char
int
float
record
3
Which keyword is used to create a loop in C++?
repeat
loop
for
foreach
4
Which file extension is standard for a Python script
.cpp
.py
.java
.txt
5
Which property must an algorithm have?
Ambiguity
Definiteness
Infinity
Randomness
6
What type of loop repeats a block of code while a condition is true?
switch
while loop
do-while loop
for loop
7
Which keyword is used for branching in C++?
if
break
continue
goto
8
Which keyword is used to terminate a loop in Python?
break
end
exit
stop
9
Which of the following is a mutable data type in Python?
tuple
string
list
int
10
What is the output of 3 + 2 * 2 in Python?
9
7
10
12
11
What does SQL stand for
Strong Query Language
Structured Query Language
Sequential Query Language
Simple Query Language
12
Which data type is used to store a sequence of characters in C++?
string
int
float
char
13
Which of these is NOT a database?
MongoDB
MySQL
SQLite
Matplotlib
14
Which command is used to retrieve data from a database?
FETCH
SELECT
EXTRACT
GET
15
Which data type is used to store decimal numbers in Python?
int
bool
float
str
16
Which of the following is a correct way to represent an algorithm?
Pseudocode
Verbal description only
Machine code
Syntax rules
17
Which one is a Python library for creating graphs?
Matplotlib
NumPy
Pandas
Seaborn
18
In C++, which symbol is used for comments?
/*
//
*/
#
19
What is the output type of the input() function in Python?
float
int
bool
str
20
What is a record?
A type for functions
A group of related data items
A SQL command
A Python library
21
Which of these is a conditional operator in Python?
<
*
+
&
22
Which loop executes at least once regardless of the condition?
do-while
for
while
foreach
23
Which keyword is used for exception handling in Python?
handle
catch
exception
except
24
Which statement correctly closes a file in Python?
shutdown(file)
file.close()
file.shutdown()
close(file)
25
Which type of algorithm involves decision making?
Sequential
Cyclic
Branching
Linear
26
What is Matplotlib used for?
Data visualization
Web development
Networking
Database management
27
Which operator is used to compare two values in Python?
:=
=>
=
==
28
What is a key feature of MongoDB?
Compiled queries
Relational tables
Document-based storage
Flat file database
29
Which operator is used for conditional branching in C++?
if
goto
break
continue
30
Which database uses tables and rows?
MongoDB
MySQL
Neo4j
Cassandra
31
What is the purpose of debugging
Creating new algorithms
·Compiling code
Writing pseudocode
Finding and fixing errors
32
Which keyword is used to define a function in Python?
func
define
def
function
33
What is the size of an int in C++ (typically)?
16 bytes
2 bytes
4 bytes
8 bytes
34
Which of the following is a valid variable name in Python?
1variable
variable-1
variable_1
variable.1
35
Which operator is used for logical AND in Python?
&&
and
&
&&&
36
Which of the following is a correct Python list?
(1, 2, 3)
[1, 2, 3]
{1, 2, 3}
<1, 2, 3>
37
Which of the following is NOT a looping structure?
while
for
do-while
if
38
Which function is used to get the length of a list in Python?
len()
count()
length()
size()
39
Which of the following is a valid loop in C++?
loop
during
repeat
while
40
Which keyword creates a loop in Python?
iterate
repeat
while
loop
41
Which library is commonly used for data science in Python?
Flask
Django
Tkinter
NumPy
42
What is a tuple in Python?
Mutable dictionary
Mutable sequence
Immutable sequence
Immutable dictionary
43
Which type of file is used to permanently store data?
Object file
Header file
Text file
Source code
44
Which C++ keyword is used for defining constants?
constant
const
define
static
45
What does IDE stand for?
Integrated Debugging Environment
Integrated Development Environment
Internal Development Execution
Interface Development Environment
46
Which function is used to read input from the user in Python?
scanf()
read()
get()
input()
47
Which data type is used to store a single character in C++?
char
string
float
int
48
What is the purpose of a flowchart?
To debug code
To execute code
To describe algorithm steps visually
To compile programs
49
Which type of error is caused by incorrect syntax?
Compilation error
Logical error
Runtime error
Syntax error
50
Which of the following is NOT a Python data type?
array
tuple
list
dictionary
51
What does CSV stand for?
Comma Separated Values
Critical Simple Variable
Complex Separated Vector
Centralized Server Variable