stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
BASIC-II Flashcards | StudBud
Explore
/
BASIC-II
BASIC-II
15 terms
·
StudBud Administration
·
80 plays
Imported from external platform
Flashcards
15 cards
F
Practice quiz
P
Host live
L
Questions
15
Answers
1
What is the output of the following code?
16
10
15
15.6
2
What is the output of the following C code snippet?
23
22
21
20
3
Identify the error in this C program:
No error
Incorrect function name
Missing #include statement
Syntax error in return statement
4
What is the main function of a compiler in programming?
To interpret code
To write code
To convert code into machine language
To debug code
5
What will be the output of the following C code?
None of these
65
Syntax Error
A
6
In a switch statement, what happens if a break statement is omitted from a case?
Syntax error
The case is skipped
Fall-through to the next case
The program exits
7
Which operator has higher precedence, '+' or '*'?
*
+=
Both are same
None
8
Which of the following is not an arithmetic operation?
a % = 10;
a ! = 10;
a * = 10;
a / = 10;
9
What is the primary purpose of writing a "Hello World" program when learning a new programming language?
To learn complex programming concepts
To test if the language supports string operations
To introduce advanced programming features
To demonstrate basic syntax and output
10
The #include <stdio.h> is a ______________.
Inclusion directive
Preprocessor directive
File inclusion directive
None of the above
11
Which of the following are C preprocessors?
#endif
#ifdef
all of the mentioned
#define
12
output? int a = 1; int b = a++ + ++a;
2
4
3
5
13
What is the difference between 'float' and 'double' data types in C?
Syntax only
Precision
Usage
No difference
14
Identify the error in this C code:
Syntax error
No error
Wrong printf format
Assigning float to int
15
Who is the father of C language?
James Gosling
Dennis Ritchie
Rasmus Lerdorf
Steve Jobs