Lab 2 Activity

Lab 2 Activity

University

10 Qs

quiz-placeholder

Similar activities

C Quiz

C Quiz

University

15 Qs

Mindzone Season-3

Mindzone Season-3

University

15 Qs

C Language Basic Quiz

C Language Basic Quiz

7th Grade - Professional Development

10 Qs

Java Lesson 8

Java Lesson 8

5th Grade - University

13 Qs

Bài tập biến mảng

Bài tập biến mảng

1st Grade - University

10 Qs

funciones en c++

funciones en c++

University

10 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

University

12 Qs

JSP

JSP

University

10 Qs

Lab 2 Activity

Lab 2 Activity

Assessment

Quiz

Other

University

Medium

Created by

Saif Eldeen Radwan

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first line of a C program that includes the standard I/O library?

#include <conio.h>

#include <stdio.h>

#include <stdlib.h>

#include <math.h>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a basic component of a C program?

Preprocessor commands

Functions

Variables

HTML tags

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for declaring an integer variable in C?

int var;

integer var;

var int;

variable int;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store floating-point numbers in C?

int

char

float

void

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following statement?
printf("Hello World!");

HelloWorld!

Hello World!

"Hello World!"

Compilation Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which format specifier is used to read an integer input in C?

%d

%c

%f

%s

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the range of a signed 2-byte integer in C?

0 to 65535

-32768 to 32767

-65535 to 65535

-127 to 128

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?