wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

coding

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

If you print a variable with post-increment,

what value shows first?

a)

New value

b)

Old value

c)

Undefined

d)

Error

2.

If one condition is TRUE and another if FALSE in logical AND , result is.....?

a)

1

b)

0

c)

First condition

d)

Second condition

3.

Correct way to declare a pointer to an int:

a)

int **p = &x;

b)

pointer p = &x;

c)

int *p = &x;

d)

int p = &x;

4.

If a loop runs while i < 3 and increments i each time, the final value of i is:

a)

0

b)

1

c)

2

d)

3

5.

An array of 4 integers has how many elements?

a)

4

b)

8

c)

32

d)

16

6.

I speak in 1s and 0s, but I am not a robot. What am I?

a)

Computer

b)

Binary

c)

Loop

d)

Algorithm

7.

I can repeat your work again and again without getting tired. Who am I?

a)

Variable

b)

Loop

c)

Array

d)

Keyboard

8.

I store data, but I am not a cupboard. What am I?

a)

Class

b)

Array

c)

Variable

d)

Operator

9.

I remove mistakes from code but I am not an eraser. Who am I?

a)

Compiler

b)

Debugger

c)

Interpreter

d)

Algorithm

10.

I decide what to do when conditions are true or false. Who am I?

a)

Loop

b)

If -else

c)

Array

d)

Variable

11.

join two strings together, but I am not glue. What am I?

a)

Condition

b)

Concatenation

c)

Operator

d)

Keyword

12.

I change high-level language into machine code. Who am I?

a)

Interpreter

b)

Compiler

c)

Assembler

d)

Debugger

13.

I execute code line by line. Who am I?

a)

Compiler

b)

Linker

c)

Interpreter

d)

Variable

14.

I am a popular code editor made by Microsoft. Who am I?

a)

Sublime Text

b)

VS code

c)

WordPad

d)

Notepad

15.

To run a program in VS Code, we usually use:

a)

Terminal

b)

Debug Panel

c)

Explorer

d)

Extensions

16.

Which file do you usually run first in VS Code for a C program?

a)

readme.txt

b)

hello.cpp

c)

Main.c

d)

index.html

17.

Which button is used to run/debug code in VS Code?

a)

▶ (Play Button)

b)

❌ (Close Button)

c)

⏸ (Pause Button)

d)

💾 (Save Button)

18.

Which VS Code feature shows errors or warnings in code?

a)

Terminal

b)

Problems Panel

c)

Explorer

d)

Output

19.

VS Code is mainly used for:

a)

Video Editing

b)

Coding and Debugging

c)

Browsing the Internet

d)

Watching Movies

20.

Shortcut to open Command Palette in VS Code is:

a)

Ctrl + P

b)

Ctrl + Shift + P

c)

Ctrl + C

d)

Ctrl + V

21.

Which company developed Visual Studio?

a)

Google

b)

Microsoft

c)

Apple

d)

Oracle

22.

Which built-in tool helps in managing project versions in Visual Studio?

a)

Git

b)

SVN

c)

Dropbox

d)

OneDrive

23.

GitHub Copilot is powered by:

a)

Microsoft Azure only

b)

GitHub & OpenAI

c)

Google AI

d)

Amazon Web Services

24.

Visual Studio YouTube Channel is useful for:

a)

Gaming videos

b)

Beginner tutorials & tips

c)

Movie trailers

d)

Music streaming

25.

Books and online courses for Visual Studio can be found on:

a)

Udemy & Coursera

b)

TikTok

c)

Facebook

d)

Netflix