
Technical Quiz 2022-23
Authored by Rohan Kumar
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the syntax to declare a variable in C?
var x;
int x;
declare x;
define x;
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not a valid C data type?
int
float
char
string
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the size of the 'int' data type in C on most systems?
4 bytes
8 bytes
2 bytes
1 byte
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which operator is used for pointer-to-member access in C?
.
->
::
[]
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How is a single-line comment written in C?
// Comment
/* Comment */
# Comment
' Comment
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which function is used to allocate memory dynamically in C?
alloc()
malloc()
new()
allocate()
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the escape sequence for a newline character in C?
\n
\r
\t
\b
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?